effect of xmodmap ~/.Xmodmap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
x11-xserver-utils (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xorg
I just installed karmic 9.10.
I have a ~/.Xmodmap file in effect; it has been working fine in Jaunty. The first time I used it in Karmic, I got the usual prompt about whether I really wanted to use it, and of course I said yes. After that, it worked fine in Karmic. HOWEVER, when I run emacs, all of the effects of the .Xmodmap file disappear; the keys revert to the way they worked without the .Xmodmap, and that's true not only in the emacs window, but everywhere on the screen.
Here's my ~/.Xmodmap :
! Swap grave/asciitilde with Escape
keycode 9 = grave asciitilde grave asciitilde grave asciitilde
keycode 49 = Escape NoSymbol Escape NoSymbol Escape
! Set capslock to be control, and the righthand control key to be capslock
clear Lock
clear Control
keycode 66 = Control_R NoSymbol Control_R NoSymbol Control_R
keycode 105 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock
add Lock = Caps_Lock
add Control = Control_R
In /etc/X11/
lrwxrwxrwx 1 root root 55 Oct 30 15:12 80ubuntu-xmodmap -> /usr/local/
Here is /usr/local/
USRMODMAP=
if [ -x /usr/bin/xmodmap ]; then
if [ -f "$USRMODMAP" ]; then
xmodmap "$USRMODMAP"
fi
fi
I repeat: all this works fine until I start emacs. Then it all goes away. This did not happen under Jaunty; it's a surprise.
affects: | xorg (Ubuntu) → xserver-xorg-video-ati (Ubuntu) |
tags: | added: xmodmap |
tags: | removed: needs-xorglog |
tags: | removed: needs-lspci-vvnn |
Changed in x11-xserver-utils (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: | added: karmic |
I did a little more testing so I could tell you exactly how to reproduce the error. Turns out, emacs has nothing to do with it (sorry, I was confused). Now I think the problem is actually just another problem with the new gdm, because the problem occurs when I log out and then log back in.
Here are the steps to reproduce the problem:
(1) Set things up as shown above.
(2) Boot and log in. Everything works fine! Keys are just where the .Xmodmap file says they should be.
(3) Log out.
(4) Log back in again.
(5) Surprise! It's just as though the .Xmodmap file doesn't exist.