← Back to team overview

desktop-packages team mailing list archive

[Bug 287215] Re: xmodmap settings not getting honored when keyboard devices are hotplugged

 

Can someone suggest how to fix this properly? I'm happy spend the time
understanding some code and sending a patch.

My reproduction:
- my ~/.xprofile has the following line which turns caps into a Control_L key: `xmodmap ~/.Xmodmap`[1]
- I have a bluetooth keyboard for my 14.04LTS ubuntu machine
- when I walk away from the machine, I turn off my keyboard (to preserve battery/charge)
- when I come back and unlock my screen, my config is reset (ignoring my previous `xmodmap` calls)

Also, wow(!), the 7th anniversary of this bug is coming up :)

[1]:
https://github.com/jzacsh/dotfiles/blob/411572a68ead36ab240bad9e6a550188f19023d1/.config/xmodmaprc#L15-L17

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/287215

Title:
  xmodmap settings not getting honored when keyboard devices are
  hotplugged

Status in xorg-server package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: xserver-xorg-input-evdev

  I use xmodmap to map the caps lock key to the meta key with the
  following in my ~/.Xmodmap:

    !
    ! - map capslock to meta key
    !
    remove Lock = Caps_Lock
    add Mod3 = Caps_Lock

  This works correctly on Intrepid on my lenovo T61's built-in keyboard.
  When I plug in a USB keyboard, caps lock is not mapped to meta, though
  it still is mapped that way on the built-in keyboard. If I then re-run
  xmodmap on my .Xmodmap, caps lock on the USB keyboard gets mapped
  correctly; however, unplugging and re plugging in the USB keyboard
  results in its caps lock key being reset to the unmapped state.

  This worked correctly on hardy.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/287215/+subscriptions