xmodmap: right alt remapped to right control has issues with shift
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xorg
I like to use xmodmap to remap the right alt key to control. What I find is that (starting in Ubuntu 10.04), pressing shift before I press the remapped right alt key causes the right alt key _not_ to activate with a modifier (it should be right control). Here's the sequence of key presses and the effects I see in xev:
<shift pressed>: keycode 62, shift_r
<with shift still held, right alt pressed>: keycode 108, no symbol
If I don't press shift first, I see this:
<right alt pressed>: keycode 108, control_r
Below is the xmodmap file I'm using to remap my keys. I also remap caps lock to control, and that key has no problems with shift. I load this file up with 'cat my-xmodmap | xmodmap -'.
>>>>>>>
! Map right alt to right control
keycode 108 = Control_R
! Map caps lock to control
keycode 66 = Control_L
clear Lock
clear mod1
add control = Control_L Control_R
add mod1 = Alt_L Alt_R Meta_L
<<<<<<<
As I mentioned, this worked fine in Ubuntu 9.10 and earlier.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xorg 1:7.5+5ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-24-generic i686
NonfreeKernelMo
Architecture: i386
Date: Tue Aug 3 23:30:53 2010
DkmsStatus:
nvidia-current, 195.36.24, 2.6.32-22-generic, i686: installed
nvidia-current, 195.36.24, 2.6.32-24-generic, i686: installed
nvidia-current, 195.36.24, 2.6.32-23-generic, i686: installed
MachineType: LENOVO 2222222
ProcCmdLine: root=UUID=
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: xorg
dmi.bios.date: 07/04/2008
dmi.bios.vendor: LENOVO
dmi.bios.version: 52KT43AUS
dmi.board.
dmi.board.name: LENOVO
dmi.board.vendor: LENOVO
dmi.board.version: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 2222222
dmi.product.
dmi.sys.vendor: LENOVO
system:
distro: Ubuntu
codename: lucid
architecture: i686
kernel: 2.6.32-24-generic
affects: | xorg (Ubuntu) → nvidia-graphics-drivers (Ubuntu) |
Hi Bryce, are you sure this is related to the Nvidia graphics driver? IIRC it was also happening on my Intel graphics based laptop, but my laptop's busted right now and I can't confirm that unfortunately.