Package: xfree86-common
version: 4.3.0.dfsg.1-14sarge1
Hello!
There is a such a bug in X: Alt_R acts as Alt modifier, though
it does not exist in modifiers map.
Here I started xev, pressed right alt, then pressed "l",
then released it, and after all, released right alt:
--------- start xev output --------
KeyPress event, serial 18, synthetic NO, window 0xa00001,
root 0x38, subw 0x0, time 35520663, (113,98), root:(626,116),
state 0x0, keycode 113 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 bytes: ""
KeyPress event, serial 23, synthetic NO, window 0xa00001,
root 0x38, subw 0x0, time 35520956, (113,98), root:(626,116),
state 0x8, keycode 46 (keysym 0x6c, l), same_screen YES,
XLookupString gives 1 bytes: "l"
KeyRelease event, serial 23, synthetic NO, window 0xa00001,
root 0x38, subw 0x0, time 35521058, (113,98), root:(626,116),
state 0x8, keycode 46 (keysym 0x6c, l), same_screen YES,
XLookupString gives 1 bytes: "l"
KeyRelease event, serial 23, synthetic NO, window 0xa00001,
root 0x38, subw 0x0, time 35521205, (113,98), root:(626,116),
state 0x8, keycode 113 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 bytes: ""
------- end xev output -------
you see, state is 0x8, it is 1<<3, it means than Mod1, the 3th modifier
is active
But when I launch xmodmap I receive such a message
--------- start xmodmap output --------
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
--------- end xmodmap output --------
as xmodmap describes only Alt_L, Alt_L and Meta_L act as Mod1,
not Alt_R (who's code is 0x71 btw)
why?
when using XNextEvent I receive the same effect as in xev output:
right alt is treated as an Mod1 key
XGetModifierMapping says the same as xmodmap
Here's my XF86Config-4 file:
--------- start XF86Config-4 file --------
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades
*only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
Section "ServerFlags"
Option "RandR" "on"
EndSection
Section "Files"
FontPath "/usr/lib/X11/fonts/cyrilliÓ:unscaled"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
# Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us,ru(winkeys)"
Option "XkbOptions" "grp:shift_toggle,grp_led:scroll"
# Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "Auto"
# Option "Emulate3Buttons" "true"
Option "Buttons" "10"
Option "ZAxisMapping" "4 5"
EndSection
#Section "InputDevice"
# Identifier "Generic Mouse"
# Driver "mouse"
# Option "SendCoreEvents" "true"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "Emulate3Buttons" "true"
# Option "ZAxisMapping" "4 5"
#EndSection
Section "Device"
Identifier "nVidia Corporation NV11 [GeForce2 MX/MX 400]"
Driver "nv"
Option "NoLogo" "1"
Option "RandRRotation" "1"
Option "NoAccel" "true"
Option "SWCursor" "true"
# Option "Rotate" "CCW"
EndSection
Section "Monitor"
Identifier "SyncMaster"
HorizSync 30-61
VertRefresh 56-75
Option "DPMS"
Option "RandRRotation" "1"
# Option "Rotate" "CCW"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation NV11 [GeForce2 MX/MX 400]"
Monitor "SyncMaster"
DefaultDepth 24
#Option "RandRRotation"
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480" "768x1024"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480" "768x1024"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480" "768x1024"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480" "768x1024"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480" "768x1024"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480" "768x1024"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
# InputDevice "Generic Mouse"
EndSection
Section "DRI"
Mode 0666
EndSection
--------- end XF86Config-4 file --------
I use Debian 3.1, kernel 2.4.27-3-686
Thanks,
Ljoha