Re: Another try - help to fix arrow keys in X

1999-09-07 Thread Kent West
Brian Servis wrote:
 
 *- On  3 Sep, Kent West wrote about Re: Another try - help to fix arrow keys 
 in X
snip about some keys not working in X
 
  So it looks like your keymap is all messed up.  Are you running xmodmap

  snip

 If you are not modifying the defaults in any way as you stated then I
 can only guess that your keycodes/xfree86 file is corrupt in some way.
 I grepped all the files in /usr/X11R6/lib/X11/xkb/keycodes for DOWN and
 none showed a keycode of 116 for DOWN.  You might try reinstalling the
 xlib6g package(that contains the keycodes) and see if that fixes it.
 
 Strange,
 
 --
 Brian
 -
 Mechanical Engineering  [EMAIL PROTECTED]
 Purdue University   http://www.ecn.purdue.edu/~servis
 -


WHOO-HOO!!! Yee-haa! Arrow go up; arrow go down; etc etc etc.

Apparently the FBDev (frame buffer device) X server (which I need for my
unsupported Rage128 card) doesn't work with the XKEYBOARD extension. I
uncommented the XkbdDisable line in my /etc/X11/XF86Config file and
now my keys work.

Man! That was a toughie!

Thanks for all your help!


Re: Another try - help to fix arrow keys in X

1999-09-05 Thread Kent West
Brian Servis wrote:
 
 *- On  3 Sep, Kent West wrote about Re: Another try - help to fix arrow keys 
 in X
  Brian Servis wrote:
 
snip about some keys not working in X
 
  So it looks like your keymap is all messed up.  Are you running xmodmap
  or anything at the start of your xsession?  Try using xev again and
  walking through all your keys, maybe you will see a pattern. You could
  also try using xkeycaps for the same purpose.
 
 
  Key   Keycode according to /usr/X11R6/lib/X11/xkb/keycodes/xfree86
  ---   --- 
  Up111 98
  Down  116 104
  Left  113 100
  Right 114 102
  Ins   118 106
  Del   119 107
  Home  110  97
  End   115 103
  PgUp  112  99
  PgDn  117 105
  PrtScrn   107 111
  SrlLck 78  78
  Pause 127 110
  NumLck 77  77
  / 106 112
 [snip]
  Enter 104 108
 
   ^^^
  This is what I have on my system.
 
 If you are not modifying the defaults in any way as you stated then I
 can only guess that your keycodes/xfree86 file is corrupt in some way.
 I grepped all the files in /usr/X11R6/lib/X11/xkb/keycodes for DOWN and
 none showed a keycode of 116 for DOWN.  You might try reinstalling the
 xlib6g package(that contains the keycodes) and see if that fixes it.
 
 Strange,
 
 --
 Brian
 -
 Mechanical Engineering  [EMAIL PROTECTED]
 Purdue University   http://www.ecn.purdue.edu/~servis
 -

My /usr/X11R6/lib/X11/xkb/keycodes shows the DOWN key to be 104 also. I
started X with startx 2mesg.txt and then looked in msg.txt and
everything looked fine:
(**) XKB: keycodes: xfree86
(**) XKB: types: default
(**) XKB: compat: default
(**) XKB: symbols: us(pc101)
(**) XKB: geometry: pc
(**) XKB: model: pc104
(**) XKB: layout: us
(**) XKB: keymap: xfree86(us_microsoft) (overrides other XKB settings)

Yet I still have no arrow keys, etc. I tried changing the setting that
specified us_microsoft to just us, and I tried commenting out that
line altogether, but it didn't make a difference.

I tried uninstalling/reinstalling xlib6g as mentioned, and that made no
difference.

Something I noticed by accident today: In the several Debian boxes that
I've set up, I've never been able to start X as root; I always get a
Unauthorized to connect to server type message. However, on this box I
was able to start X with no problem. This may or may not be related.

Also, if it matters, I had to resort to using the Frame Buffer Device
video setup in order to get X to work with my unsupported Rage128 card.
I wouldn't think that would matter, but I don't know.

I've had so many problems getting this machine working I'm about ready
to wipe the drive and start from scratch. I really don't want to do
that, because Linux is not supposed to require rebuilds. (Yes, I'm
blowing off steam now)

Thanks for the suggestions; hopefully someone can provide me a solution
before I wipe the drive.


Re: Another try - help to fix arrow keys in X

1999-09-03 Thread Kent West
Richard E. Hawkins wrote:
 
 kent kalled,
 Anyone know how to fix my non-functioning arrow keys, page-up/down
 keys,
  etc in X? They work fine in the console mode. Not having these keys is
  pretty crippling.
 
 The first step is to use xev, which will tell you what events are happening.  
 If you post what it tells you keys are, someone (maybe me, more likely not :) 
 probably knows what they mean.
 
 Launch xev (in the xcontrib package), point to it's window with the mouse, 
 and hit the problematic keys.  Post the output.
 
 rick
 
 --

When I press the up arrow, these two stanzas are generated:

KeyPress event, serial 21, synthetic NO, window 0x1c1,
root 0x26, subw 0x0, time 9805031, (87,77), root:(253,263),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 characters:  

KeyRelease event, serial 24, synthetic NO, window 0x1c1,
root 0x26, subw 0x0, time 9805116, (87,77), root:(253,263),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 characters:  


Re: Another try - help to fix arrow keys in X

1999-09-03 Thread Brad
-BEGIN PGP SIGNED MESSAGE-

On Thu, 2 Sep 1999, Kent West wrote:

 Richard E. Hawkins wrote:
  
  The first step is to use xev, which will tell you what events are
 happening.  If you post what it tells you keys are, someone (maybe me,
 more likely not :) probably knows what they mean.
  
  Launch xev (in the xcontrib package), point to it's window with the
 mouse, and hit the problematic keys.  Post the output.

Please keep line lengths  76 characters. See how ugly that looks above?
You can hardly tell what's being quoted...

 When I press the up arrow, these two stanzas are generated:
 
 KeyPress event, serial 21, synthetic NO, window 0x1c1,
 root 0x26, subw 0x0, time 9805031, (87,77), root:(253,263),
 state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
 XLookupString gives 0 characters:  
 
 KeyRelease event, serial 24, synthetic NO, window 0x1c1,
 root 0x26, subw 0x0, time 9805116, (87,77), root:(253,263),
 state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
 XLookupString gives 0 characters:  

The important part is keycode 111 (keysym 0xff61, Print). For some reason,
your up arrow is returning the same code that my Print Screen key returns!
It should probably be returning keycode 98 (keysym 0xff52, Up) instead.

I wouldn't know how to fix it though...


- -- 
  finger for PGP public key.

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN88icb7M/9WKZLW5AQEx8QP9E7O75fnyOEiWGobktuvNq0rGLL7CmXF2
K6YDSBW8++kvgtmpDBUs6QTBwAjYO17OOaWDw3/dtAgBGBJ33xz47WpMIYGmbLrW
owk39Z9rMGMjD3GKj2bMS30OYEj+x9BenBED53MoZvfL0LTeWhHK+AgIyq/0xbsJ
i8wTYH92Lck=
=O8LZ
-END PGP SIGNATURE-


Re: Another try - help to fix arrow keys in X

1999-09-03 Thread Brian Servis
*- On  2 Sep, Kent West wrote about Re: Another try - help to fix arrow keys 
in X
 Brian Servis wrote:
 
 *- On 23 Mar, Kent West wrote about Another try - help to fix arrow keys in 
 X
  Another try
 
  Anyone know how to fix my non-functioning arrow keys, page-up/down keys,
  etc in X? They work fine in the console mode. Not having these keys is
  pretty crippling.
 
 the keys).  Perhaps you have the wrong keyboard layout defined in your
 XF86Config file.  What do you have in there under the Keyboard section?
 
 
 Section Keyboard
ProtocolStandard
AutoRepeat  500 5
LeftAlt Meta
RightAltMeta
ScrollLock  Compose
RightCtlControl
XkbKeycodes xfree86
 #   XkbTypesdefault
 #   XkbCompat   default
 #   XkbSymbols  us(pc101)
 #   XkbGeometry pc
 #   XkbRulesxfree86
XkbModelpc104
XkbLayout   us
XkbKeymapxfree86(us)
 EndSection
 

Mine for a microsoft layout keyboard is simply:

Section Keyboard
ProtocolStandard
XkbKeymap   xfree86(us_microsoft)
EndSection

I don't see anything really strange in yours.  Try trimming it down to
just the XkbKeymap.

-- 
Brian 
-
Mechanical Engineering  [EMAIL PROTECTED]
Purdue University   http://www.ecn.purdue.edu/~servis
-


Re: Another try - help to fix arrow keys in X

1999-09-03 Thread Brian Servis
*- On  2 Sep, Kent West wrote about Re: Another try - help to fix arrow keys 
in X
 Richard E. Hawkins wrote:
 
 kent kalled,
 Anyone know how to fix my non-functioning arrow keys, page-up/down
 keys,
  etc in X? They work fine in the console mode. Not having these keys is
  pretty crippling.
 
 The first step is to use xev, which will tell you what events are happening. 
  If you post what it tells you keys are, someone (maybe me, more likely not 
 :) probably knows what they mean.
 
 Launch xev (in the xcontrib package), point to it's window with the mouse, 
 and hit the problematic keys.  Post the output.
 
 rick
 
 --
 
 When I press the up arrow, these two stanzas are generated:
 
 KeyPress event, serial 21, synthetic NO, window 0x1c1,
 root 0x26, subw 0x0, time 9805031, (87,77), root:(253,263),
 state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
 XLookupString gives 0 characters:  
 
 KeyRelease event, serial 24, synthetic NO, window 0x1c1,
 root 0x26, subw 0x0, time 9805116, (87,77), root:(253,263),
 state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
 XLookupString gives 0 characters:  
 

For me:

Up Arrow gives,

KeyPress event, serial 21, synthetic NO, window 0xa01,
root 0x36, subw 0xa02, time 21187561, (49,43), root:(91,139),
state 0x0, keycode 98 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 characters:  

KeyRelease event, serial 21, synthetic NO, window 0xa01,
root 0x36, subw 0xa02, time 21187709, (49,43), root:(91,139),
state 0x0, keycode 98 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 characters:  

Print Screen gives,

KeyPress event, serial 18, synthetic NO, window 0xa01,
root 0x36, subw 0x0, time 23147644, (105,61), root:(186,695),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 characters:  

KeyRelease event, serial 21, synthetic NO, window 0xa01,
root 0x36, subw 0x0, time 23147753, (105,61), root:(186,695),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 characters:  

So it looks like your keymap is all messed up.  Are you running xmodmap
or anything at the start of your xsession?  Try using xev again and
walking through all your keys, maybe you will see a pattern. You could
also try using xkeycaps for the same purpose.

-- 
Brian 
-
Mechanical Engineering  [EMAIL PROTECTED]
Purdue University   http://www.ecn.purdue.edu/~servis
-


Re: Another try - help to fix arrow keys in X

1999-09-03 Thread Kent West
Brian Servis wrote:


  snip about some keys not working in X

 
 Mine for a microsoft layout keyboard is simply:
 
 Section Keyboard
 ProtocolStandard
 XkbKeymap   xfree86(us_microsoft)
 EndSection
 
 I don't see anything really strange in yours.  Try trimming it down to
 just the XkbKeymap.
 
 --
 Brian
 

I had to also have the Protocol line or I got an error about no
keyboard device. I tried both the (us) and (us_microsoft) xkbkeymap;
neither made any difference.

Thanks anyway.


Re: Another try - help to fix arrow keys in X

1999-09-03 Thread Kent West
Brian Servis wrote:

  snip about some keys not working in X
 
 So it looks like your keymap is all messed up.  Are you running xmodmap
 or anything at the start of your xsession?  Try using xev again and
 walking through all your keys, maybe you will see a pattern. You could
 also try using xkeycaps for the same purpose.
 
 --
 Brian

Key Keycode
--- ---
Up  111
Down116
Left113
Right   114
Ins 118
Del 119
Home110
End 115
PgUp112
PgDn117
PrtScrn 107
SrlLck   78
Pause   127
NumLck   77
/   106
*63
779
880
981
483
584
685
187
288
389
090
.91
+86
Enter   104 

I don't have an .Xmodmap file in my home directory, nor do I have an
.Xsession or .Xinit, etc file. I do have a .xsession-errors file and an
.Xauthority file, but those are the only X-related files I see in my
home directory.

The /etc/X11/Xmodmap is apparently completely commented out (I'm
assuming the ! character at the start of a line is a comment
character).

The /etc/X11/Xsession.options file only has five lines:
allow-failsafe
allow-user-modmap
allow-user-resources
allow-user-xsession
use-ssh-agent

The /etc/X11/Xsession file has the following lines that may/may not be
relevant:

optionfile=/etc/X11/Xsession.options
sysmodmap=/etc/X11/Xmodmap
usrmodmap=$HOME/.Xmodmap
startup=$HOME/.xsession
  .
  .
  .
if [ -x /usr/bin/X11/xmodmap ]; then
  if [ -f $usrresources ]' then
xrdb -merge $usrresrouces
  fi
fi

if [ -x /usr/bin/X11/xmodmap ]; then
  if grep -qs ^allow-user-modmap $optionfile; then
if [ -f $usrmodmap ]; then
  xmodmap $usrmodmap
fi
  fi
fi


Hopefully someone can see a clue here.


Re: Another try - help to fix arrow keys in X

1999-09-03 Thread Brian Servis
*- On  3 Sep, Kent West wrote about Re: Another try - help to fix arrow keys 
in X
 Brian Servis wrote:
 
   snip about some keys not working in X
  
 So it looks like your keymap is all messed up.  Are you running xmodmap
 or anything at the start of your xsession?  Try using xev again and
 walking through all your keys, maybe you will see a pattern. You could
 also try using xkeycaps for the same purpose.
 

 Key   Keycode according to /usr/X11R6/lib/X11/xkb/keycodes/xfree86
 ---   --- 
 Up111 98
 Down  116 104
 Left  113 100
 Right 114 102
 Ins   118 106
 Del   119 107
 Home  110  97
 End   115 103
 PgUp  112  99
 PgDn  117 105
 PrtScrn   107 111
 SrlLck 78  78
 Pause 127 110
 NumLck 77  77
 / 106 112
[snip]
 Enter 104 108
 
  ^^^
 This is what I have on my system.

If you are not modifying the defaults in any way as you stated then I
can only guess that your keycodes/xfree86 file is corrupt in some way.
I grepped all the files in /usr/X11R6/lib/X11/xkb/keycodes for DOWN and
none showed a keycode of 116 for DOWN.  You might try reinstalling the
xlib6g package(that contains the keycodes) and see if that fixes it.

Strange,

-- 
Brian 
-
Mechanical Engineering  [EMAIL PROTECTED]
Purdue University   http://www.ecn.purdue.edu/~servis
-


Another try - help to fix arrow keys in X

1999-09-02 Thread Kent West
Another try

Anyone know how to fix my non-functioning arrow keys, page-up/down keys,
etc in X? They work fine in the console mode. Not having these keys is
pretty crippling.

Thanks!


Re: Another try - help to fix arrow keys in X

1999-09-02 Thread Brian Servis
*- On 23 Mar, Kent West wrote about Another try - help to fix arrow keys in X
 Another try
 
 Anyone know how to fix my non-functioning arrow keys, page-up/down keys,
 etc in X? They work fine in the console mode. Not having these keys is
 pretty crippling.
 
 Thanks!
 
 

What does xev say about them? (put the cursor over the window and hit
the keys).  Perhaps you have the wrong keyboard layout defined in your
XF86Config file.  What do you have in there under the Keyboard section?

-- 
Brian 
-
Mechanical Engineering  [EMAIL PROTECTED]
Purdue University   http://www.ecn.purdue.edu/~servis
-


Re: Another try - help to fix arrow keys in X

1999-09-02 Thread Richard E. Hawkins
kent kalled,
Anyone know how to fix my non-functioning arrow keys, page-up/down 
keys,
 etc in X? They work fine in the console mode. Not having these keys is
 pretty crippling.

The first step is to use xev, which will tell you what events are happening.  
If you post what it tells you keys are, someone (maybe me, more likely not :) 
probably knows what they mean.

Launch xev (in the xcontrib package), point to it's window with the mouse, and 
hit the problematic keys.  Post the output.

rick

-- 



Re: Another try - help to fix arrow keys in X

1999-09-02 Thread Kent West
Brian Servis wrote:
 
 *- On 23 Mar, Kent West wrote about Another try - help to fix arrow keys in 
 X
  Another try
 
  Anyone know how to fix my non-functioning arrow keys, page-up/down keys,
  etc in X? They work fine in the console mode. Not having these keys is
  pretty crippling.
 
  Thanks!
 
 
 
 What does xev say about them? (put the cursor over the window and hit
 the keys).  Perhaps you have the wrong keyboard layout defined in your
 XF86Config file.  What do you have in there under the Keyboard section?
 
 --
 Brian
 -
 Mechanical Engineering  [EMAIL PROTECTED]
 Purdue University   http://www.ecn.purdue.edu/~servis
 -


Now that's a nifty little program.

The Event Tester window had a smaller window within it; neither the
Even Tester window nor the inner window showed anything when I pressed
the keys, but the xterm from which I started xev showed a lot of stuff
everytime I'd move the mouse or click the mouse or click any of the
keys. When I'd press the up arrow, the resulting text was a keypress
event and a keyrelease event. I'd copy  paste it here, but I haven't
figured out how to consistently get copy  paste to work; in this case
it's from an xterm window to Netscape Messenger's Composer window, but
that's another issue.


Re: Another try - help to fix arrow keys in X

1999-09-02 Thread Kent West
Brian Servis wrote:
 
 *- On 23 Mar, Kent West wrote about Another try - help to fix arrow keys in 
 X
  Another try
 
  Anyone know how to fix my non-functioning arrow keys, page-up/down keys,
  etc in X? They work fine in the console mode. Not having these keys is
  pretty crippling.
 
  Thanks!
 
 
 
 What does xev say about them? (put the cursor over the window and hit
 the keys).  Perhaps you have the wrong keyboard layout defined in your
 XF86Config file.  What do you have in there under the Keyboard section?
 

I'm sorry; I didn't finish answering your question. Here's the keyboard
section from my XF86Config file:

Section Keyboard
   ProtocolStandard
   AutoRepeat  500 5
   LeftAlt Meta
   RightAltMeta
   ScrollLock  Compose
   RightCtlControl
   XkbKeycodes xfree86
#   XkbTypesdefault
#   XkbCompat   default
#   XkbSymbols  us(pc101)
#   XkbGeometry pc
#   XkbRulesxfree86
   XkbModelpc104
   XkbLayout   us
   XkbKeymapxfree86(us)
EndSection

IIRC, originally there weren't any comments in here, but I looked at
another XF86Config file that didn't have those entries, so I commented
them out hoping that'd make a difference. It didn't.