Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307777 - multimedia-keys crash x11-base/xorg-server (using Dell keyboard)
Summary: multimedia-keys crash x11-base/xorg-server (using Dell keyboard)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-04 16:09 UTC by Christian Merkle
Modified: 2010-04-13 06:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xerrors (Xerror.txt,18.54 KB, text/plain)
2010-03-04 16:11 UTC, Christian Merkle
Details
xorg.conf (xorgconf.txt,3.45 KB, text/plain)
2010-03-04 17:10 UTC, Christian Merkle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Merkle 2010-03-04 16:09:29 UTC
I'm using a Dell keyboard (connected via USB) with extra multimedia keys (control volume, back, forward, homepage etc.). Pressing of of these keys, the X Server will crash:

Backtrace:
0: /usr/bin/X(xorg_backtrace+0x26) [0x4eb916]
1: /usr/bin/X(xf86SigHandler+0x39) [0x48f769]
2: /lib/libc.so.6(+0x324c0) [0x7f44b58794c0]
3: /usr/bin/X() [0x45d9a2]
4: /usr/bin/X(GetKeyboardValuatorEvents+0x362) [0x45df42]
5: /usr/bin/X(GetKeyboardEvents+0x17) [0x45e027]
6: /usr/bin/X(xf86PostKeyboardEvent+0x6f) [0x47a28f]
7: /usr/lib64/xorg/modules/input//evdev_drv.so(+0x49bf) [0x7f44b1b289bf]
8: /usr/bin/X() [0x48f855]
9: /usr/bin/X() [0x4713e6]
10: /lib/libpthread.so.0(+0xf400) [0x7f44b7712400]
11: /lib/libc.so.6(__select+0x13) [0x7f44b5913ee3]
12: /usr/bin/X(WaitForSomething+0x1db) [0x4e94eb]
13: /usr/bin/X(Dispatch+0xa0) [0x44b260]
14: /usr/bin/X(main+0x3aa) [0x43156a]
15: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f44b5865ba6]
16: /usr/bin/X() [0x430a09]

This happens in twm, xdm and KDE 4.4 .

x11-drivers/xf86-input-evdev = 1.6.5-r1
x11-drivers/xf86-input-evdev = 2.3.2 (also tried 2.3.1)










Reproducible: Always




 emerge --info
Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.33 x86_64)
=================================================================
System uname: Linux-2.6.33-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 04 Mar 2010 13:30:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20.51.0.6
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uoi.gr/mirror/OS/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit 64bit X a52 aac acl acpi addressbook alsa amarok amd64 ao apache2 bash-completion berkdb big-tables bitmap-fonts bluetooth branding bzip2 cairo calendar caps cdda cddb cli clucene cluster consolekit cracklib crypt ctype cups cxx dbus demo demos designer-plugin dri dts dvd dvdr dvdread ebook emboss enblend encode epson evo exif facebook fam ffmpeg firefox flac fontconfig fortran ftp fts3 gcj gd gdbm geoip geolocation gif gimp glitz gmp gnokii gphoto2 gpm gps gs gsm gtk hal hash hdaps hddtemp history ical iconv ieee1394 imagemagick imap inifile inotify ipod ipv6 irc irda j2me jabber java javamail jpeg kde kipi lame latin1 lcms ldap libnotify lightning lm_sensors mad mhash mikmod mmx mng modules mozdevelop mp3 mp4 mp4live mpeg mplayer mudflap multilib multimedia mysql ncurses nls npp nptl nptlonly nsplugin nvidia obex ogg old-daemons opengl openmp oscar pam pcre pdf perl php plasma png pnm ppds pppd ps pstricks python qt-webkit qt3support qt4 qtdesigner quicktime rar rdesktop readline redland reflection ruby samba sdl session sift simplexml sms spell spl sqlite sse sse2 sse3 ssl startup-notification suid svg symlink sysfs tcpd test-programs threads thunar tidy tiff tokenizer truetype truetype-fonts tv type1-fonts unicode usb v4l2 vcd vdpau vim vim-syntax vim-with-x vorbis wav webkit wmf wordperfect x264 xcb xcomposite xine xinerama xml xorg xosd xulrunner xv xvid zip zlib" 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 mmap_emul 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christian Merkle 2010-03-04 16:11:21 UTC
Created attachment 222041 [details]
xerrors
Comment 2 Christian Merkle 2010-03-04 17:10:23 UTC
Created attachment 222047 [details]
xorg.conf
Comment 3 Fredrik Larsson 2010-03-18 12:39:45 UTC
I too have this exact same problem, and very similar setup.

* Dell keyboard attached via USB.
* nVidia card with TwinView enabled.
* Same backtrace in /var/log/Xorg.0.log.old
Comment 4 Fredrik Larsson 2010-03-18 12:51:37 UTC
Apparently an interim workaround has been found and a bug has been filed at freedesktop.org ...

https://bugs.freedesktop.org/show_bug.cgi?id=26332

I have not tested this yet.
Comment 5 Fredrik Larsson 2010-03-19 14:22:37 UTC
To get it to work I needed to emerge ...
[I--] [  ] x11-drivers/xf86-input-keyboard-1.4.0 (0)
[I--] [  ] x11-drivers/xf86-input-mouse-1.5.0 (0)
...and add the following sections to my xorg.conf:
Section "InputDevice"
    Identifier     "Keyboard1"
    Driver         "kbd"
    Option         "AutoRepeat" "500 30"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "dellusbmm"
    Option         "XkbLayout" "se"
EndSection

Section "InputDevice"
    Identifier     "Mouse1"
    Driver         "mouse"
    Option         "Protocol" "Auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

I also added the ServerFlags as suggested in the freedesktop.org bugzilla.
Everything works now.

Seems this is an upstream problem/bug and maybe we should close this bugzilla ?
Comment 6 Christian Merkle 2010-03-19 14:37:29 UTC
I will check your solution and give you feedback after the weekend.
Comment 7 Christian Merkle 2010-03-19 15:53:37 UTC
The following workaround solves the problem for me:

Add this to your xorg.conf:
========================
Section "ServerFlags"
     Option "AutoAddDevices" "off"
     Option "AutoEnableDevices" "off"
     Option "AllowEmptyInput" "off"
EndSection
========================

use xmodmap with this config:

========================
keycode 234 = XF86Back
keycode 233 = XF86Forward
keycode 232 = XF86Stop
keycode 231 = XF86Refresh
keycode 130 = XF86HomePage
keycode 236 = XF86Mail
keycode 198 = XF86MyComputer
keycode 161 = XF86Calculator
keycode 160 = XF86AudioMute
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 162 = XF86AudioPlay
keycode 129 = XF86AudioMedia
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 178 = XF86HomePage
========================

Source: https://bugs.freedesktop.org/show_bug.cgi?id=26332#c5

I sure, this is an upstream bug.
Comment 8 tazinblack 2010-04-13 06:12:59 UTC
same problem here an amd64 with same keyboard
Comment 9 tazinblack 2010-04-13 06:29:49 UTC
(In reply to comment #8)
> same problem here an amd64 with same keyboard
> 

if you are using gnome, you also have to switch the keyboard from evdev-managed keyboard to dell usb multimedia keyboard inside gnome with ->system->settings->keyboard