Bug 128822 - xorg 7 evdev driver for keyboard - bad key mapping
Summary: xorg 7 evdev driver for keyboard - bad key mapping
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-08 13:03 UTC by Pavel Bazika
Modified: 2006-11-29 13:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
a workaround to auto-run setxkbmap (375 bytes, text/plain)
2006-11-14 21:07 UTC, Benjamin K. Stuhl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Bazika 2006-06-08 13:03:14 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.6 
OS:                Linux

When Xorg 7.1 evdev driver is used for keyboard, some keys doesn't work correctly in KDE. In twm with same X configuration these keys work fine.

The keys that aren't working are the arrows, Alt Gr, Insert, Delete, PgUp, PgDn, Home, End, Numeric Enter. When NumLock is switched off PgUp, PgDn, Home etc. on numeric keypad can be used, but it's not very confortable.

In kxkb shortcut assign application can be discovered, that some keys are not mapped properly - for example Alt Gr send numpad Enter signal, left arrow behaves like Win key. But some keys doesn't do anything.

When standard keyboard driver in X is used, everything works ok.
Comment 1 Thiago Macieira 2006-06-13 23:24:15 UTC
Do they work in a plain Qt application?
Comment 2 Pavel Bazika 2006-06-14 00:34:32 UTC
If you mean by the plain Qt application to run for example konqueror without KDE (from pure X (using failsafe session from kdm)), then I must report, that everything works fine.

Now I'll add full list of problematic keys with bad mappings discovered using kde key shortcuts editor:

KEY           BAD MAPPING
-------------------------
Alt Gr        KP_Enter
Right Ctrl    Page Down
Print Screen  Delete
Pause         - (doesn't react)
Insert        -
Home          Pause
Page Up       KP_Divide
Delete        -
End           Win + 
Page Down     Menu
Left          Alt +
Up            Print Screen
Down          Win +
Right         -
Left Win key  -
Right Win key -
Menu key      -
KP_Divide     Insert
KP_Enter      Down

Other keys are OK 
Comment 3 Pavel Bazika 2006-06-14 00:41:52 UTC
I must also apologize for bad information in my report - I've written that left arrow key sends win key, that's a mistake. Left arrow key sends Alt key and down arrow key sends Win key - the table in comment #2 is 100% right. Sorry
Comment 4 Thiago Macieira 2006-06-14 09:22:01 UTC
No, I meant an application that doesn't link to the KDE libraries, like Skype, Google Earth, Qt Designer or even "qtconfig".
Comment 5 Pavel Bazika 2006-06-14 23:43:06 UTC
So I've tried GIMP, Ethereal (both GTK) and XILINX ISE WebPack (don't know what library is used, but it's not qt nor gtk) - same results - bad key mapping with evdev driver, right key mapping with the classical one.
Comment 6 Thiago Macieira 2006-06-16 01:12:09 UTC
Not a KDE problem then. Your problem must be in some lower layer, like X11 itself.
Comment 7 Matthias 2006-10-24 04:22:35 UTC
Thiago Macieira is right. This problem can _mostly_ be fixed by setting the XkbModel to evdev (for example by adding the line   
option "XkbModel" "evdev"
into the keyboard section of your /etc/X11/xorg.conf)
However, one bug remains and it's _extremely_ annoying:
http://bugs.kde.org/show_bug.cgi?id=125559
Comment 8 Benjamin K. Stuhl 2006-11-14 19:37:34 UTC
The problem seems to be that something in the KDE keyboard configuration screws up the keycode mapping in the X server: if I load KDE from an xterm and then close it down again, the keyboard is screwed up until I run "setxkbmap -keycodes evdev".
Comment 9 Benjamin K. Stuhl 2006-11-14 21:07:02 UTC
Created attachment 18558 [details]
a workaround to auto-run setxkbmap

Here's a work-around until the actual bug is fixed: this .desktop runs
"setxkbmap -keycodes evdev -model evdev"; drop it in your ~/.kde/Autostart and
it will (largely) fix your keyboard after you restart KDE. You'll also need to
rebuild with my patch from bug 125559 to keep the up-key from triggering
KSnapshot.
Comment 10 Claus Hindsgaul 2006-11-29 13:02:29 UTC
I had excactly this problem. It took me some time to figure out, that I had to go to the locale settings in the Kontrolcenter and choose keyboard model "Evdev-managed keyboard" in order to make the keys you mention work.
Still, the "up arrow" is confused with "PrintScrn". But this is another story, explained and apparently fixed in bug 125559.