Unable to unmap Lock modifier using xmodmap
Binary package hint: x11-xserver-utils
This problem is happening under GNOME, KDE, and Openbox window manager sessions.
I've deleted any ~/.Xmodmap files, so these sessions are not modifying the xmodmap prior to my execution of the described commands.
Steps to reproduce:
1. Start a new X login session. It doesn't seem to matter which desktop environment is selected, as this bug is reproducible under KDE, GNOME, and Openbox.
2. Open a terminal.
3. Type one of the following commands:
$ xmodmap -e 'clear Lock'
$ xmodmap -e 'remove Lock = Caps_Lock'
An error message similar to the following is displayed:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 118 (X_SetModifierM
Value in failed request: 0x17
Serial number of failed request: 11
Current serial number in output stream: 11
The serial number values vary but the other information is consistent.
1) Release info:
$ lsb_release -rd
Description: Ubuntu 10.04 LTS
2) Package version:
$ apt-cache policy x11-xserver-utils
*** 7.5+1ubuntu2 0
3) Expected result
Prior to my recent upgrade to Lucid (Ubuntu release 10.04), I was able to unmap the Lock modifier without problems. As a vim user I find it quite useful to map the [CapsLock] key to Escape, and prefer to disable the Lock modifier entirely: as I rarely write anything in all caps, I seldom have any use for it, and an accidental activation of it can cause minor confusion when editing files in Vim.
My previous ~/.xmodmap file used the "clear Lock" directive to disable the Lock modifier. Upon rebooting after upgrading to Lucid I discovered that this functionality was no longer activated, ie that the Caps Lock key continues to control the Lock modifier's state.
I expected it to be activated and for the Caps Lock key to not affect the Lock modifier state.
4) What happened instead:
The Caps Lock key continued to control the Lock modifier's state. The error message given above was output in response to an xmodmap command to clear or remove that functionality.
Also: please note that my exclusion of gdm debugging information was not so much due to privacy concerns as because I haven't run it in months. Although this install is an Ubuntu install, I installed the kubuntu-desktop metapackage some time ago, and so am using kdm rather than gdm. In any case this seems unlikely to be affecting xmodmap functionality.
DistroRelease: Ubuntu 10.04
Package: x11-xserver-utils 7.5+1ubuntu2
Uname: Linux 2.6.32-21-generic x86_64
Date: Wed May 5 19:03:06 2010
MachineType: Hewlett-Packard HP Pavilion tx2000 Notebook PC
dmi.product.name: HP Pavilion tx2000 Notebook PC
|Changed in x11-xserver-utils (Ubuntu):|
|status:||New → Confirmed|