[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



*- 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 0x1c00001,
>     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 0x1c00001,
>     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 0xa000001,
    root 0x36, subw 0xa000002, 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 0xa000001,
    root 0x36, subw 0xa000002, 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 0xa000001,
    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 0xa000001,
    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                              servis@purdue.edu
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------


Reply to: