On 09/07/2010 12:22 PM, TW wrote:
>>>     The pgdn key on my laptop doesn't work right.  On Firefox, if I press 
>>> the key, I get the menu that comes up when you right-click.  In vim, when I 
>>> press 
>>> the key, the screen flashes and then I'm in the insert mode.
>>>
>> Most laptops allow you to plug in an external keyboard.  If you do that, 
>> do you get the same symptoms?
>>
>> Is this a US keyboard?
> 
>       Thanks, Bruce.  I plugged in an external keyboard, and the usb keyboard 
> works 
> fine.  My keyboards are US, based on the layout I found here --> 
> http://en.wikipedia.org/wiki/Keyboard_layout#United_States.
> 
>       Here's the different outputs from showkey -a:
> 
>       *Laptop keyboard (pgdn)
>               Press any keys - Ctrl-D will terminate this program
> 
>                        27 0033 0x1b
>                       91 0133 0x5b
>                       50 0062 0x32
>                       57 0071 0x39
>                       126 0176 0x7e
>                       27 0033 0x1b
>                       91 0133 0x5b
>                       54 0066 0x36
>                       126 0176 0x7e
>                       4 0004 0x04
> 
>       *USB keyboard
>               Press any keys - Ctrl-D will terminate this program
>                       27 0033 0x1b
>                       91 0133 0x5b
>                       54 0066 0x36
>                       126 0176 0x7e
>                       4 0004 0x04
> 
>       My laptop keyboard still does the wrong thing.
> 
>       I'm can't say that I know exactly what I'm looking at, but, I think I 
> see 
> some of the keys being shown twice???  Thank you.
> 

Could be a scroll lock, num lock, or function lock issue, but if not and
if you only want to correct it in Xorg, use xev to figure out what the
keycode is.  Correct is 117 on US keyboard:

KeyPress event, serial 33, synthetic NO, window 0x2600001,
    root 0x70, subw 0x0, time 986235885, (937,248), root:(939,356),
    state 0x11, keycode 117 (keysym 0xff56, Next), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x2600001,
    root 0x70, subw 0x0, time 986236003, (937,248), root:(939,356),
    state 0x11, keycode 117 (keysym 0xff56, Next), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

I haven't used it since I got rid of my tablet and it's weird keys lid
and rotate keys, but I looked and I think that just add something like
'xkbcomp -e "keycode 117 = Page_Down"' to your .bashrc, replacing "117"
with what your xev output says your pgdn key is would work for Xorg.

-- DJ Lucas


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to