Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280011 - x11-drivers/nvidia-drivers-185.18.14: Keyboard not working either with kbd or evdev driver with 2.6.30 kernel
Summary: x11-drivers/nvidia-drivers-185.18.14: Keyboard not working either with kbd or...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-02 09:43 UTC by Jakub Sokołowski
Modified: 2011-10-30 23:15 UTC (History)
2 users (show)

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


Attachments
xorg.conf (xorg.conf,4.28 KB, text/plain)
2009-08-03 08:38 UTC, Jakub Sokołowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Sokołowski 2009-08-02 09:43:08 UTC
After updating nvidia drivers and kernel subsequently to versions 185.18.14(and higher) and 2.6.30 keyboard ceases to work.

Tried to recompile xorg with every possible combination of evdev and kbd drivers, also with and without hal support. Also played a lot with xorg.conf. No effects.

Xorg.0.log doesn't report anything wrong with kbd driver. Loads it and unloads it without any problem.

Reproducible: Always

Steps to Reproduce:
1. Compile yourself a 2.6.30 kernel
2. Install x11-drivers/nvidia-drivers-185.18.14 or higher
3. Start X

Actual Results:  
Keyboard not responding, not ever to sysrq combinations. After killing X with mouse keyboard doesn't work in console either.

Expected Results:  
Working keyboard?

Keyboard works for me so far only with combination of nvidia drivers version 185.18.14 and kernel in version 2.6.29-r4 and no evdev support.

I noticed also that after adding option:
Option	    "Device" "/dev/input/event2" # which is my keyboard device
To keyboard input section keyboard also stops to work.
Comment 1 Jakub Sokołowski 2009-08-02 10:44:48 UTC
Have some emerge --info

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.0
Timestamp of tree: Sun, 02 Aug 2009 07:00:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.mirror.pw.edu.pl http://gentoo.prz.rzeszow.pl rsync://gentoo.prz.rzeszow.pl/gentoo"
LANG="pl_PL.ISO-8859-2"
LC_ALL="pl_PL.ISO-8859-2"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en_GB"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.1/gentoo-portage"
USE="7zip X aac aalib acpi adns alsa asf aspell ass audio audiofile avi bash-completion bzip2 bzlib cairo calendar caps cdr cpdflib cups curl custom-cflags custom-optimization dbus dga dio divx divx4linux dri dvb dvd dvdr eds encode exif ffmpeg firefox flac ftp gdbm ggi gif glib glitz glx gmedia gmp gnutls gpm gtk gtk2 gtkhtml hal icc icc-pgo iconv id3tag ifp imap imlib inifile java6 joystick jpeg jpeg2k lame libg++ libwww lirc mad mmx mozilla mp2 mp3 mpeg mtp ncurses nls nptl nsplugin nss oav ogg openal opengl pcre pda pdf pdflib perl png ppds python qt3support quicktime rar readline samba sdl slang slp speex spell sqlite srt sse sse2 ssl svg svga theora truetype twolame type1 unicode usb v4l v4l2 vcd video vorbis wavelan win32codecs wireshark wmp x264 x86 xine xinerama xml xorg xprint xulrunner xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix file ioplug lfloat multi null shm dshare dsnoop empty extplug hooks iec958 ladspa linear meter mulaw plug rate route share 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en_GB" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia vga fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 CS Shyam Sundar 2009-08-02 18:46:47 UTC
Hi, try doing this:

emerge xf86-input-evdev

Edit xorg.conf and try inputing these values instead of kbd:

Section "InputDevice"
        Driver "evdev"
        Option "Device" "/dev/input/event4"
        Option "XkbLayout" "fr"
EndSection

Comment 3 Florian Streibelt 2009-08-02 23:14:11 UTC
(In reply to comment #2)

Hi,

in recent Xorg versions the abi changed. You need to rebuild all x11-drivers installed.

To get a list:

emerge portage-utils; qlist -I -C x11-drivers/   

then emerge them all again:
qlist -I -C x11-drivers/  | xargs emerge


Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2009-08-03 03:37:42 UTC
Arguably your /dev node for your keyboard can and will change. You really shouldn't hardcode it and should allow HAL to detect it. That being said, as Florian said, there was an ABI change that resulted in people having to follow the instructions at the end of the emerge of the xorg-server. Just follow his instructions and the problem will resolve itself. It's not actually related to nvidia-drivers at all.
Comment 5 Jakub Sokołowski 2009-08-03 07:16:22 UTC
Okey, I'll try this today, we'll see.

Just to recap. I should be using hal, so that also means I should be using evdev correct? Also, I should use the new kernel and then recompile all drivers?

Sounds like I already did that about 5 times in different combinations but I'll try again.
Comment 6 Jakub Sokołowski 2009-08-03 08:01:52 UTC
Did everything as I was supposed to.

Installed 2.6.30 kernel.
Recompiled xorg(1.5.3-r6) with hal and evdev support.
Recompiled all drivers(nvidia - 180.60) and removed not used anymore (keyboard and mouse)
Modified xorg.conf for keyboard to use evdev as CS Shyam Sundar in #2 said.

Still no working keyboard.
As I said, I already did this sor of thing in various other combinations.
Comment 7 Jakub Sokołowski 2009-08-03 08:08:01 UTC
I did notice something strange though this time. (Sorry for too much posts)

In Xorg.0.log I found this:
(**) Option "CoreKeyboard"
(**) Keyboard0: always reports core events
(EE) Keyboard0: No device specified.
(II) UnloadModule: "evdev"
(EE) PreInit returned NULL for "Keyboard0"
(II) config/hal: Adding input device ImExPS/2 Logitech Explorer Mouse
(**) ImExPS/2 Logitech Explorer Mouse: always reports core events
(**) ImExPS/2 Logitech Explorer Mouse: Device: "/dev/input/event4"
(II) ImExPS/2 Logitech Explorer Mouse: Found 5 mouse buttons
(II) ImExPS/2 Logitech Explorer Mouse: Found x and y relative axes
(II) ImExPS/2 Logitech Explorer Mouse: Configuring as mouse
(**) ImExPS/2 Logitech Explorer Mouse: YAxisMapping: buttons 4 and 5
(**) ImExPS/2 Logitech Explorer Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "ImExPS/2 Logitech Explorer Mouse" (type: MOUSE)
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event2"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device cx88 IR (Leadtek Winfast 2000XP
(**) cx88 IR (Leadtek Winfast 2000XP: always reports core events
(**) cx88 IR (Leadtek Winfast 2000XP: Device: "/dev/input/event3"
(II) cx88 IR (Leadtek Winfast 2000XP: Found keys
(II) cx88 IR (Leadtek Winfast 2000XP: Configuring as keyboard
(II) XINPUT: Adding extended input device "cx88 IR (Leadtek Winfast 2000XP" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"

It looks like the keyboard is starting without any problems but for some reason xorg decides that input device from my tuner should be a keyboard(I use lirc to make use of the tuner's remote).
Maybe that's the problem.
Comment 8 CS Shyam Sundar 2009-08-03 08:16:40 UTC
Jacub: Try setting 

Option      "Device" "/dev/input/event2"

Comment 9 Jakub Sokołowski 2009-08-03 08:22:11 UTC
I do have that setting in my xorg. It looks like this right now:

Section "InputDevice"
    Identifier "Keyboard0"
    Driver     "evdev"
    Option     "XkbLayout" "pl"
    Option     "Device"    "/dev/input/event2"
EndSection

Which shows that xorg doesn't even look there because as I showed in the log he ignores the configuration, discovers the keyboard on his own and set it's layout to 'us'.
Comment 10 CS Shyam Sundar 2009-08-03 08:30:38 UTC
Can you attach your xorg.conf
Comment 11 Jakub Sokołowski 2009-08-03 08:38:50 UTC
Created attachment 199995 [details]
xorg.conf
Comment 12 CS Shyam Sundar 2009-08-03 09:15:39 UTC
Hi, can you try removing that remote device. Make sure hald is also running.
Comment 13 Jakub Sokołowski 2009-08-03 09:30:08 UTC
At this moment I can't really unplug it manually but I'll try it later.

If there was some software way to make xorg ignore it that would be awesome. I'll look through some manuals for now, maybe there is something like that.