Bug 12500 - xmodmap doesn't work with vanilla-sources-2.6.23
Summary: xmodmap doesn't work with vanilla-sources-2.6.23
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/Keyboard (show other bugs)
Version: 7.2 (2007.02)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-20 08:25 UTC by Bernd Steinhauser
Modified: 2007-09-25 15:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Bernd Steinhauser 2007-09-20 08:25:23 UTC
I've upgraded my kernel to 2.6.23-rc7 and I experienced, that xmodmap doesn't 
work anymore. It starts fine, but then seems to exit immediately.
xmodmap .Xmodmap -v
!
! executing work queue
!
        keycode 0xec = F21
        keycode 0xb2 = F22
        keycode 0xae = F23
        keycode 0xb0 = F24
        keycode 0xa0 = F25
        keycode 0x90 = XF86AudioPrev
        keycode 0xa2 = XF86AudioPlay
        keycode 0x99 = XF86AudioNext
        keycode 0x7a = F20

After this, the keys do not work.
The only change, that has been made was the upgrade of the kernel.
This does happen for the evdev driver (my mouse has a "key", that
is the last line) and for the kbd driver (the other keycodes).
I've already recompiled xmodmap (if that would be necessary).
Unfortunately I've got no other debug output. Would a strace 
output help?
A downgrade to 2.6.22 does bring it back immediately.
I've tried 2.6.23-rc2, -rc6 and -rc7.
Comment 1 Brice Goglin 2007-09-22 04:15:09 UTC
I would be surprised to see the kernel version have such a direct impact. For the record, we have a Debian bug report [1] saying that xmodmap does not work anymore when called from .xsession while it works when called later manually. Do you experience something like this? Maybe the kernel changes a little bit the behavior of the Xserver during its startup, causing .xsession to not work the same?

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443044
Comment 2 Bernd Steinhauser 2007-09-22 04:50:17 UTC
(In reply to comment #1)
> I would be surprised to see the kernel version have such a direct impact. For
> the record, we have a Debian bug report [1] saying that xmodmap does not work
> anymore when called from .xsession while it works when called later manually.
> Do you experience something like this? Maybe the kernel changes a little bit
> the behavior of the Xserver during its startup, causing .xsession to not work
> the same?
> 
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443044
> 
I was quite surprised myself. ;)
Actually I don't have a ~/.xsession file.
When I do run xmodmap manually (like above), it doesn't change anything.
But I will try later what happens, if I modifiy (/etc/X11/Sessions/Xsession)
to not load any usermodmaps. 
All that I can say, is, that the kernel certainly has an affect on this.
When I use 2.6.22* everything is perfect, when I use 2.6.23* it doesn't work.
BTW, I don't have Xorg 7.3. I do have a few packages from Xorg 7.3, but this
started to happen before I upgraded (partially) to 7.3.
Also I use xorg-server-1.3 (because of the ati drivers, which won't work with
xorg-server-1.4).

Comment 3 Bernd Steinhauser 2007-09-25 15:06:59 UTC
I found out, that I had CONFIG_SYSFS_DEPRECATED set in my kernel config,
which caused the problem. I unset it now and it works again.

So this bug report is actually invalid, since it isn't really a xmodmap problem.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.