Comment 24 for bug 524774

Revision history for this message
intuited (intuited) wrote :

I've started using a different machine recently, and was initially not experiencing this bug. I'm running xfce under 10.10. IIRC I originally installed xubuntu on this box but have also installed the ubuntustudio package as well as kubuntu-desktop and possibly ubuntu-desktop. Anyway this erroneous behaviour with xmodmap, specifically

    $ xmodmap -e 'clear Lock'
    X Error of failed request: BadValue (integer parameter out of range for operation)
      Major opcode of failed request: 118 (X_SetModifierMapping)
      Value in failed request: 0x17
      Serial number of failed request: 8
      Current serial number in output stream: 8

started when I added the Keyboard Layouts applet to a panel. I added the Canadian Multilingual keyboard to the initial default of US. The switcher combo was set to Alt+CapsLock. At this point I had already run this xmodmap script

    !Remap Caps_Lock as Escape
    remove Lock = Caps_Lock
    keysym Caps_Lock = Escape

which switches CapsLock and Escape. This had been working normally up until this point, but IIRC the keyboard setup reverted to the default after I accepted the Keyboard Layouts preferences. When I tried to re-run my script, I got the above-quoted error message.

I've filed an `upstream bug report`_ which, it would appear, is not a duplicate.

.. _upstream bug report: https://bugs.freedesktop.org/show_bug.cgi?id=31436