Bug 767325

Summary: Changed keycodes break custom .Xmodmap
Product: [openSUSE] openSUSE 12.2 Reporter: Christian Boltz <suse-beta>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P3 - Medium    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 12.2   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Boltz 2012-06-15 17:38:44 UTC
Some keycodes seem to have changed between openSUSE 12.1 and current Factory.

Keycode 117 was the "menu" key (next to AltGr) in 12.1, but now is the code for PageDown. The "menu" key now has keycode 135.
There might also be other keycode changes, but fortunately my .Xmodmap is short enough, so I didn't notice more changes ;-)

Needless to say that the keycode change caused some "funny effects"[tm] with my .Xmodmap after updating from 12.1 to Factory.

Are the keycode changes intentional or a bug?
- if they are a bug, please fix/revert them
- if they are intentional, I propose to add a note to the release notes. We can even recycle the text from openSUSE 11.2, see bug 551727 ;-)
Comment 1 Stefan Dirsch 2012-06-15 19:12:49 UTC
Sounds more like a dup of bnc#551727. Could it be that you still used the "keyboard" driver with openSUSE 12.1 due to still using an old xorg.conf (and now switched to "evdev" driver by no longer using any xorg.conf).
Comment 2 Christian Boltz 2012-06-15 19:55:09 UTC
I'm still using an (old) xorg.conf, but I had to do some changes when updating 12.1 to Factory. (I also have a quite new keyboard and mouse, but they worked on 12.1 without changing xorg.conf.)

The changes I did after the 12.1 -> Factory update are:

--- xorg.conf-dualhead  2011-04-30 13:40:57.000000000 +0200
+++ xorg.conf   2012-06-13 11:44:26.000000000 +0200
@@ -68,7 +68,7 @@ 
 Section "ServerFlags"
-  Option       "AutoAddDevices" "off"
+  Option       "AutoAddDevices" "on"
   Option       "AutoAddDevices" "off"
     Option         "AllowMouseOpenFail" "on"
    [...]

(hmm, that duplicated AutoAddDevices is strange, but it isn't new)

This change in AutoAddDevices was needed because the USB keyboard didn't work on Factory.

@@ -134,40 +134,40 @@ 
-Section "InputDevice"
-    Identifier     "Mouse[5]"
-    Driver         "synaptics"
-    Option         "AccelFactor" "0.01"
- [... whole section removed ...]
Comment 3 Stefan Dirsch 2012-06-15 20:14:12 UTC
This confirms it. AutoAddDevices "on" (our and upstream default) means "evdev" driver, AutoAddDevices "off" means using the keyboard driver specified in xorg.conf (very likely "keyboard").

You get different keycodes with "keyboard" and "evdev" driver.

==> Closing as duplicate

*** This bug has been marked as a duplicate of bug 551727 ***