Re: Horrible X11 Problems on OS X (iBook)
Re: Horrible X11 Problems on OS X (iBook)
- Subject: Re: Horrible X11 Problems on OS X (iBook)
- From: Martin Costabel <email@hidden>
- Date: Thu, 23 Dec 2004 11:53:29 +0100
Stephen Sebeny wrote:
[]
So, thanks again to everyone who responded, its truly appreciated. And
hopefully given the details above someone out there will know for sure how
to lock-in the effect of the DISPLAY=:0.0 statement and make its effect
permanent. (fingers-crossed!) Thanks!
Well, this one is easy: You put the following line into your ~/.bashrc
or your ~/.profile
[ -z $DISPLAY ] && export DISPLAY=:0
It is cautious and sets DISPLAY only if it is not already set. For good
measure, you might also want to add /usr/X11R6/bin to your PATH so that
you don't get the "xterm: command not found" error any more:
export PATH="$PATH:/usr/X11R6/bin"
Actually, you don't really need this except for convenience. There is a
command that does all this for you, namely: Starting X11.app if it is
not yet running, setting DISPLAY, and adding /usr/X11R6/bin to PATH.
This is "/usr/bin/open-x11". Thus you would run
open-x11 xterm&
Otherwise, your problem remains mysterious. You more or less
demonstrated that it can only be a hardware problem, but I cannot
imagine one that would give this strange behavior.
One more test would be to look at what X11 sees when you type 'ls
RETURN'. Run
open-x11 xev
place your pointer inside the xev window and type it. You should see
(apart from some geometry garbage) the key codes, and each of it twice,
as "KeyPress event" and as "KeyRelease event":
state 0x0, keycode 45 (keysym 0x6c, l), same_screen YES,
XLookupString gives 1 bytes: "l"
state 0x0, keycode 9 (keysym 0x73, s), same_screen YES,
XLookupString gives 1 bytes: "s"
state 0x0, keycode 44 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: "
Is this the same in your case?
--
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden