XkbSetMap error from xkbcomp
Submitted by Charles Lindsey
Assigned to Xorg Project Team
Description
Created attachment 120753 Attempts to reconfigure middle button of Logitech T400 mouse
I have a (seemingly) simple xkb file (attached) which when compiled with
$ xkbcomp -w 10 -i 10 logitechT400.xkb ':0'
gives
Error: success in unknown
Couldn't write keyboard description to :0
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 135 (XKEYBOARD)
Minor opcode of failed request: 9 (XkbSetMap)
Value in failed request: 0x8010202
Serial number of failed request: 12
Current serial number in output stream: 14
My expertise in .xkb files is zero, but googling shows similar error messages arising since 2001, with no satisfactory solution. The file seems simple enough to be worth following (whether or not it actually solves what I am trying to do).
My setup is Ubuntu 14.04, and xinput shows
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech Unifying Device. Wireless PID:4026 id=10 [slave pointer (2)]
⎜ ↳ 2.4G Receiver id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ HID 0430:0005 id=9 [slave keyboard (3)]
(yes, the button on the mouse actually appears as a Keypress with Keycode 133!) which is why I am specifying device 10, but exactly the same result appears with device 6. Device 9 is my Real keyboard.
Comments on my .xkb file would be welcome, but even if it is stupid it should not be producing error messages like that.
If it cannot be reproduced, let me know what else to try. I have a locally compiled xkbcomp, but running gdb on it showed nothing apparently wrong, and that it entered XkbSetMap with plausible arguments.
Attachment 120753, "Attempts to reconfigure middle button of Logitech T400 mouse":
logitechT400.xkb