Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318181 - xorg-server-1.8.0 - no keyboard, no mouse
Summary: xorg-server-1.8.0 - no keyboard, no mouse
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 17:50 UTC by Adam Purkrt
Modified: 2011-11-29 22:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Purkrt 2010-05-02 17:50:52 UTC
After upgrade to xorg-server 1.8, the server cannot detect neither keyboard nor mouse.

I have
* evdev compiled in the kernel (CONFIG_INPUT_EVDEV)
* /etc/init.d/udev started
* /etc/X11/xorg.conf.d contains 10-evdev.conf
* INPUT_DEVICES="evdev" in /etc/make.conf

I have tried
1) /etc/X11/xorg.conf with
Section "ServerFlags"
        Option  "AutoEnableDevices" "true"
        Option  "AutoAddDevices" "true"
Endsection

2) no xorg.conf (but still having /etc/x11/xorg.conf.d/10-evdev.conf in place)

The X server is not stuck. When I do startx, it starts three xterms and a clock and when the xterms are terminated (through ssh), the server stops as well.
Comment 1 Adam Purkrt 2010-05-02 17:53:37 UTC
localhost X11 # emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.1-r0, 2.6.33-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E4600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 01 May 2010 10:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs"
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.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb bluetooth bzip2 cairo cdparanoia cdr cleartype cli consolekit cracklib crypt cups cxx dbus dhcpcd divx dri dvd dvdnav dvdr dvi encode exif ffmpeg fontconfig fortran gdbm gnome gnome-keyring gpm gstreamer gtk iconv ipv6 java jpeg jpeg2k mmx mmxext mng modules mp3 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin obex ogg opengl openmp openssl pam pcre pdf perl png policykit pppd python qt-dbus qt4 raw readline reflection resolvconf sdl session spl sse sse2 sse3 ssl ssse3 svg symlink sysfs tcpd theora thunar tiff udev unicode video vorbis wma wmf x264 xcomposite xinerama xml xorg xv xvid 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Adam Purkrt 2010-05-02 17:55:57 UTC
udev seems to be working fine:
localhost # udevadm info --export-db | grep Keyboard
E: ID_MODEL=USB_Keyboard
E: ID_MODEL_ENC=USB\x20Keyboard
E: ID_SERIAL=CHICONY_USB_Keyboard
E: HID_NAME=CHICONY USB Keyboard
E: NAME="CHICONY USB Keyboard"
S: input/by-id/usb-CHICONY_USB_Keyboard-event-kbd
E: ID_MODEL=USB_Keyboard
E: ID_MODEL_ENC=USB\x20Keyboard
E: ID_SERIAL=CHICONY_USB_Keyboard
E: DEVLINKS=/dev/char/13:67 /dev/input/by-id/usb-CHICONY_USB_Keyboard-event-kbd /dev/input/by-path/pci-0000:00:1d.0-usb-0:2:1.0-event-kbd
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-05-02 17:58:58 UTC
Please post the output of 

  egrep "WW|EE" /var/log/Xorg.0.log
Comment 4 Adam Purkrt 2010-05-02 18:01:14 UTC
localhost X11 # egrep "WW|EE" /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1382.119] (II) Loading extension MIT-SCREEN-SAVER
[  1382.875] (WW) Warning, couldn't open module dri
[  1382.875] (EE) Failed to load module "dri" (module does not exist, 0)
[  1382.879] (WW) Warning, couldn't open module dri2
[  1382.879] (EE) Failed to load module "dri2" (module does not exist, 0)
[  1382.910] (WW) Warning, couldn't open module fbdev
[  1382.910] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  1382.929] (WW) Falling back to old probe method for vesa
[  1383.203] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
Comment 5 Adam Purkrt 2010-05-02 18:01:50 UTC
I've also tried to reemerge xf86-input-evdev, to no avail.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-05-02 18:12:35 UTC
Well if you would read emerge messages more carefully you would have found the following advice after emerging xorg-server finished:

 * You must rebuild all drivers if upgrading from <xorg-server-1.8
 * because the ABI changed. If you cannot start X because
 * of module version mismatch errors, this is your problem.

 * You can generate a list of all installed packages in the x11-drivers
 * category using this command:
 *      emerge portage-utils; qlist -I -C x11-drivers/
Comment 7 Adam Purkrt 2010-05-02 18:23:35 UTC
Yeah but the problem is not that I cannot start Xserver - I can, but it is unusable, since I cannot use neither mouse nor keyboard. As I have written, I have recompiled xf86-input-evdev. I've rebuilt the other drivers

qlist -I -C x11-drivers/

too and it's still not working.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-05-02 18:48:32 UTC
please attach your xorg.conf file in case you have one...
Comment 9 Adam Purkrt 2010-05-02 18:54:59 UTC
(In reply to comment #8)
> please attach your xorg.conf file in case you have one...
> 

I'm using the following xorg.conf (and also trying without xorg.conf at all, but it makes no difference in my case)

xorg.conf:

Section "ServerFlags"
#       Option  "AllowEmptyInput" "true"
        Option  "AutoEnableDevices" "true"
        Option  "AutoAddDevices" "true"
EndSection

Section "Device"
        Identifier      "Configured Video Device"
        Driver  "nvidia"
#       Driver  "nv"
#       Option "AccelMethod" "EXA"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Option "DPI" "96x96"
#       Option  "NoVirtualSizeCheck"
#       Option  "UseEDIDFreqs" "FALSE"
#       Option  "UseEDIDDpi" "FALSE"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
        DefaultDepth    24
#       SubSection "Display"
#               Depth           24
#               Modes           "1920x1200"
#       EndSubSection
EndSection

Section "Module"
#       Load "dri"
#       Load "glx"
#       Load "evdev"
#       Load "kbd"
EndSection
Comment 10 Rafał Mużyło 2010-05-02 21:01:41 UTC
Better yet, attach full xorg log from such freeze.
Comment 11 Adam Purkrt 2010-05-03 07:53:23 UTC
It works now! In the full Xorg log there was a note saying

(II) The server relies on udev to provide the list of input devices.
     If no devices become available, reconfigure udev or disable AutoAddDevices.

So I changed xorg.conf, this is the critical section:

Section "ServerFlags"
       Option "AutoAddDevices" "false"
EndSection


And it works. Thanks everybody for help.
Comment 12 Rafał Mużyło 2010-05-08 00:57:39 UTC
As I repeatedly wrote on the forum,
'"AutoAddDevices" "false"' is nearly never a fix,
if it makes anything work, it's only cause something is
broken somewhere on dbus/hal/xf86-input-evdev line.
Comment 13 Ira Snyder 2010-07-24 21:44:40 UTC
I've just run into this bug when upgrading an otherwise stable amd64 system to use x11-base/xorg-server-1.8.2. I get no keyboard and no mouse. My /var/log/Xorg.0.log has no mention of evdev at all.

I have rebuilt all of the Xorg drivers. There are no problems loading any drivers.

The "workaround" of using AutoAddDevices "false" works, but seems like a total hack. Is there any other information I can provide to help fix this bug for real?
Comment 14 Rafał Mużyło 2010-07-28 00:36:34 UTC
@comment 13
1. try emerging xf86-input-evdev 
2. bugzilla is not a place for asking support questions, forum is
Comment 15 Alessandro Surace 2011-11-29 22:56:44 UTC
I agree with @comment 13.

That is only a workaround.
This could be a real bug.