xmodmap -e 'clear lock' does weird things

Alan Coopersmith Alan.Coopersmith at Sun.COM
Mon Aug 3 17:48:10 PDT 2009


That should only clear the lock modifier - and does so for me on Xorg 1.6.3 on
OpenSolaris, but on Xorg master I see the same behaviour you do, with the other
modifiers remapped down to the first three.   Looks like a bug introduced since
the Xorg 1.6 branch - probably in core server, since I'm using kbd driver and
assume you're using evdev.

	-alan-

Sergei Trofimovich wrote:
> Tried to rebind CapsLock to Mod3 modifier.
> Gentoo
> amd64
> Xorg master
> 
> After issuing
> $ xmodmap -e 'clear lock'
> all modifiers go weird and stop working correctly.
> I tried to paste this to file and give it ot xmodmap - the same effect, as in [1]
>   !
>   ! - map capslock to meta key
>   !
>   remove Lock = Caps_Lock
>   add Mod3 = Caps_Lock
> 
> Am I doing something grong?
> 
> Thanks!
> [1]:
> $ xmodmap -pm
> xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
> 
> shift       Shift_L (0x32),  Shift_R (0x3e)
> lock        Caps_Lock (0x42)
> control     Control_L (0x25),  Control_R (0x69)
> mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
> mod2        Num_Lock (0x4d)
> mod3      
> mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
> mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)
> 
> $ xmodmap -e 'clear lock'
> $ xmodmap -pm
> xmodmap:  up to 9 keys per modifier, (keycodes in parentheses):
> 
> shift       Shift_L (0x32),  Shift_R (0x3e),  Alt_L (0x40),  Alt_R (0x6c),  Super_L (0x85),  Super_R (0x86),  Meta_L (0xcd),  Super_L (0xce),  Hyper_L (0xcf)
> lock        Control_L (0x25),  Alt_L (0x40),  ISO_Level3_Shift (0x5c),  Control_R (0x69),  Alt_R (0x6c),  Mode_switch (0xcb),  Meta_L (0xcd)
> control     Num_Lock (0x4d),  ISO_Level3_Shift (0x5c),  Super_L (0x85),  Super_R (0x86),  Mode_switch (0xcb),  Super_L (0xce),  Hyper_L (0xcf)
> mod1      
> mod2      
> mod3      
> mod4      
> mod5
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xorg-devel mailing list
> xorg-devel at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-devel

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering



More information about the xorg-devel mailing list