You are not logged in.

#1 2010-06-23 15:23:55

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

[SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

After doing an upgrade (pacman -Syu), I can no longer use the following keys on my keyboard without unappreciated consequences:
- PgUp
- PgDown
- now, apparently, the Left arrow

When I use xev, I get two separate events for every one real keyboard event, with two keycodes.

For example, this is what happens when I press PgUp:

KeyPress event, serial 24, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850204, (679,556), root:(680,571),
    state 0x0, keycode 112 (keysym 0xffaf, KP_Divide), same_screen YES,
    XLookupString gives 1 bytes: (2f) "/"
    XmbLookupString gives 1 bytes: (2f) "/"
    XFilterEvent returns: False

KeyPress event, serial 24, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850204, (679,556), root:(680,571),
    state 0x0, keycode 99 (keysym 0xff55, Prior), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

MappingNotify event, serial 27, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 27, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850306, (679,556), root:(680,571),
    state 0x0, keycode 112 (keysym 0xffaf, KP_Divide), same_screen YES,
    XLookupString gives 1 bytes: (2f) "/"
    XFilterEvent returns: False

MappingNotify event, serial 27, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyRelease event, serial 27, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850306, (679,556), root:(680,571),
    state 0x0, keycode 99 (keysym 0xff55, Prior), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

I've checked xmodmap -pke, but I have no idea what it means:

keycode  99 = Prior NoSymbol Prior
keycode 112 = KP_Divide XF86_Ungrab KP_Divide XF86_Ungrab

Any help would be appreciated. Needless to say, this is pretty annoying when I'm trying to edit code and it searches my document instead of scrolling up, or capitalizes words (some vim feature I had previously never known about, and will most likely never use).

Last edited by secretrobotron (2010-06-24 15:09:05)

Offline

#2 2010-06-23 15:27:36

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

What's the point in cross-posting?  http://bbs.archlinux.org/viewtopic.php? … 42#p780042

That's a no no. See Forum Etiquettes

Last edited by Inxsible (2010-06-23 15:28:09)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-06-23 15:35:28

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

Because I realized it was in the wrong spot. Really, I should just delete the other one.

Offline

#4 2010-06-23 16:00:47

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

secretrobotron wrote:

Because I realized it was in the wrong spot. Really, I should just delete the other one.

You can't, but I guess a mod will come in and delete it.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2010-06-23 16:02:24

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

Haha Excellent. Any insight with respect to my problem?

Offline

#6 2010-06-23 16:06:36

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

Not an outright solution, but some pointers to what you can check on:

Are you using the latest xorg? Do you still have a xorg.conf file which loads keyboard drivers or do you hot-plug?

Do you by any chance have keybindings for those keys in your WM/DE which you may have forgotten?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2010-06-23 16:15:22

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

I'm pretty sure I'm using the latest xorg. I installed a fresh version of arch a couple months ago.

My xorg.conf has about six lines concerning keyboards, most of which are

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "XkbLayout"    "us"
EndSection

and the other being

InputDevice    "Keyboard0"

in the ServerLayout section.

Is there a newer way to do this? Perhaps omitting it altogether?

I'm using xmonad, and I checked my keybindings in xmonad.hs to see if I had anything hilarious. Alas, I found nothing.

Offline

#8 2010-06-23 16:24:45

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

secretrobotron wrote:

I'm pretty sure I'm using the latest xorg. I installed a fresh version of arch a couple months ago..

A couple of months is way too much in the past !!

xorg 1.8 came out late Sunday last week. If you upgrade, you might find a 100 odd Megs to download probably, if you haven't upgraded at all in 2 months.

And, yes the new xorg automatically loads the keyboard drivers. I mean, you can still use a xorg.conf but why bother?

Last edited by Inxsible (2010-06-23 16:26:09)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#9 2010-06-23 16:40:50

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

Hahaha my lazy practice aside (I do honestly upgrade more often than that), I'll try leaving the keyboard config out of xorg.conf, and see if that does anything at all.

Offline

#10 2010-06-24 13:40:56

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

Well, I cleared keyboard references from my xorg.conf, and nothing changed.

Any more ideas? Anyone?

Offline

#11 2010-06-24 14:08:53

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

So, using xev & xmodmap, I can find out exactly which two events get fired for certain keypresses, and eliminate their entries, which I've done.

Seems like a pretty hacky solution though, considering the fact that there are still two events with separate keycodes being fired for certain keys.

Offline

#12 2010-06-24 15:11:08

secretrobotron
Member
Registered: 2010-04-11
Posts: 47

Re: [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

Lots of searching eventually led me here:
http://bbs.archlinux.org/viewtopic.php?pid=756568

The xorg update includes a section in xorg.conf.d/10-evdev.conf that is a catch-all for keyboards.

Commenting it out fixes the problem.

Offline

Board footer

Powered by FluxBB