Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 209329

Summary: xf86-input-evdev-1.2.0 breaks keys in vmware-worksation-6.0.2.59824
Product: Gentoo Linux Reporter: Christian Schmidt <gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mephinet
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Schmidt 2008-02-08 08:56:10 UTC
Ever since the upgrade of xf86-input-evdev to version 1.2.0, using vmware-workstation results in the following misbehavior:

- in vmware, the cursor keys as well as ins, pos1, del, end, page up/down don't work
- in the host X11, the ctrl/alt/alt gr keys loose their function

For the host this is fixed by setting the xkb map again. No workaround for inside the virtual machine.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-08 09:00:26 UTC
emerge -pv xorg-server hal output; and xorg.conf please.
Comment 2 Christian Schmidt 2008-02-08 11:44:57 UTC
[~]>emerge --info
Portage 2.1.4.1 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24-gentoo x86_64)
=================================================================
System uname: 2.6.24-gentoo x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Timestamp of tree: Fri, 08 Feb 2008 04:16:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -march=nocona -fweb -mfpmath=sse -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -ggdb -march=nocona -fweb -mfpmath=sse -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer multislot parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_GB.UTF-8"
LINGUAS="en en_GB en_US de de_DE"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages/dnnote/64bit"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://echo.digadd.de/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa amd64 amr amrnb amrwb apache2 audacious avi bash-completion berkdb bluetooth bzip2 cdda cddb cdparanoia cdr cjk crypt cups dbus dga dri dts dvb dvd dvdr dvdread encode erandom exif fam ffmpeg firefox flac foomaticdb gd gdbm geoip gif gimp gphoto2 gpm gtk gtk2 gtkhtml hal hbci idn imagemagick imlib ipv6 jpeg jpeg2k libsamplerate lm_sensors logrotate lzo mad matroska midi mikmod mmx mmxext mp3 mp4 mpeg multislot ncurses nls no_wxgtk1 nptl nptlonly nsplugin odbc offensive ogg opengl pam pcre pdf pic png ppds qt-static quicktime rar readline rtc sdl sid slang snmp sse sse2 ssl ssse3 svg sysfs tetex theora threads tiff timidity truetype tta udev unicode usb userlocales vcd vorbis win64codecs wma wxwindows x264 xanim xattr xine xinetd xml xorg xosd xpm xprint xv xvid xvmc yv12 zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x 	ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 	trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" DVB_CARDS="ttpci" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US de de_DE" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Christian Schmidt 2008-02-08 11:45:38 UTC
[~]>emerge -pv xorg-server hal
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/hal-0.5.10  USE="acpi crypt -apm -debug -dell -disk-partition -doc -laptop (-selinux)" 0 kB 
[ebuild   R   ] x11-base/xorg-server-1.4.0.90-r3  USE="dri hal ipv6 sdl xorg xprint (-3dfx) -debug -dmx -kdrive -minimal (-nptl)" INPUT_DEVICES="evdev keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="nv nvidia vesa (-amd) -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev -fglrx -glint -i128 (-i740) -i810 (-impact) (-imstt) -mach64 -mga -neomagic (-newport) (-nsc) -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l (-vermilion) -vga -via -vmware -voodoo (-xgi)" 0 kB 
Comment 4 Christian Schmidt 2008-02-08 11:46:01 UTC
[~]>cat /etc/X11/xorg.conf
Section "ServerLayout"
	Identifier	"golf"
	Screen	0	"Standard" 	0 0
	InputDevice	"Mouse"		"CorePointer"
	InputDevice	"Keyboard"	"CoreKeyboard"
EndSection

Section "Files"
	FontPath	"/usr/share/fonts/misc:unscaled"
	FontPath	"/usr/share/fonts/Type1"
#	FontPath	"/usr/share/fonts/TTF"
	FontPath	"/usr/share/fonts/corefonts"
	FontPath	"/usr/share/fonts/freefonts"
	FontPath	"/usr/share/fonts/sharefonts"
	Fontpath	"/usr/share/fonts/terminus"
	Fontpath	"/usr/share/fonts/ttf-bitstream-vera"
	FontPath	"/usr/share/fonts/unifont"
	FontPath	"/usr/share/fonts/arphicfonts"
	FontPath	"/usr/share/fonts/baekmuk-fonts"
	FontPath	"/usr/share/fonts/cyrillic"
	FontPath	"/usr/share/fonts/dejavu"
	FontPath	"/usr/share/fonts/encodings"
	FontPath	"/usr/share/fonts/util"
	FontPath	"/usr/share/fonts/75dpi:unscaled"
	FontPath	"/usr/share/fonts/100dpi:unscaled"
	FontPath	"/usr/share/fonts/artwiz"
EndSection

Section "Module"
	Load		"extmod"
	Load		"dri"
	Load		"dbe"
	Load		"record"
	Load		"xtrap"
	Load		"glx"
	Load		"type1"
	Load		"freetype"
EndSection

Section "InputDevice"
	Identifier  	"Keyboard"
	Driver      	"evdev"
	Option		"xkb_model"	"evdev"
	Option		"xkb_layout"	"de"
	Option		"xkb_variant"	"nodeadkeys"
	Option		"Device"	"/dev/input/event3"
	Option		"AutoRepeat"	"250 30"
EndSection

Section "InputDevice"
	Identifier	"Mouse"
	Driver		"evdev"
	Option		"Device"	"/dev/input/event2"
EndSection

Section "DRI"
	Mode		0666
Endsection

#Section "Extensions"
#    Option "Composite" "Enable"
#EndSection

Section "Monitor"
	Identifier	"TFT"
	VendorName	"Dell"
	ModelName	"2407"
	Option		"DPMS"
EndSection

Section "Device"
	Identifier	"8800gtx"
	Driver		"nvidia"
	BusID		"PCI:1:0:0"
EndSection

Section "Screen"
	Identifier	"Standard"
	Device		"8800gtx"
	Monitor		"TFT"
	DefaultDepth	24
	SubSection "Display"
		Viewport	0 0
		Depth		24
		Modes		"1920x1200"
	EndSubSection
EndSection
Comment 5 Christian Schmidt 2008-02-08 11:54:07 UTC
Requested information added.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-08 15:08:44 UTC
You cannot configure keyboard like this in xorg.conf w/ hal-0.5.10

*** This bug has been marked as a duplicate of bug 200060 ***
Comment 7 Christian Schmidt 2008-03-19 22:12:52 UTC
Here's the solution once you configured everything correctly:

I put this in my ~/.vmware/config and it fixed the most important keys:

xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu

Thanks to Sascha Hlusiak for this one.
Comment 8 Ferry 2008-03-28 09:46:21 UTC
Strange thing is, I don't even use evdev and I have the same issue (atleast... I'm not aware that I"m using evdev...). The vmware config keymap thingy solves it tho' so no biggy, but it was broken with an update of Xorg or one of it's modules.

Infact, switching to evdev gave me similar issues under X itself, whereas with following config (which is also what I started with), issues only occur under vmware.


----SNIP----
Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection
----SNIP----