Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200217 - Event Interface CONFIG_INPUT_EVDEV =y does not work with usb keyboard
Summary: Event Interface CONFIG_INPUT_EVDEV =y does not work with usb keyboard
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard: fixed in git head
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 18:10 UTC by Michele Schiavo
Modified: 2009-11-22 17:03 UTC (History)
4 users (show)

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


Attachments
.config (.config,45.93 KB, text/plain)
2007-11-24 18:23 UTC, Michele Schiavo
Details
emerge --info (emege-info.txt,4.74 KB, text/plain)
2007-12-13 22:06 UTC, Michele Schiavo
Details
Add another method of detecting the event device for keyboard. (splash-functions.diff,1.26 KB, patch)
2007-12-15 18:40 UTC, Michal Januszewski (RETIRED)
Details | Diff
/lib/splash/cache/profile (profile,18.86 KB, text/plain)
2007-12-15 20:42 UTC, Michele Schiavo
Details
my grub menu.lst (grub.conf,1.37 KB, text/plain)
2007-12-15 20:44 UTC, Michele Schiavo
Details
Fix the new method of detecting the event device. (splash-functions2.diff,461 bytes, patch)
2007-12-23 11:41 UTC, Michal Januszewski (RETIRED)
Details | Diff
A simple script that detects the keyboard event device. (evdeb.sh,962 bytes, text/plain)
2007-12-23 11:42 UTC, Michal Januszewski (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Schiavo 2007-11-24 18:10:50 UTC
boot with splash with usb keybord, F2 key is not working betwer silent and verbose.
With ps/2 keyborad is working.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-24 18:14:29 UTC
kernel version?
Comment 2 Michele Schiavo 2007-11-24 18:20:05 UTC
i open also this http://bugzilla.kernel.org/show_bug.cgi?id=9452
Comment 3 Michele Schiavo 2007-11-24 18:20:32 UTC
all until 2.6.23-r2
Comment 4 Michele Schiavo 2007-11-24 18:23:11 UTC
Created attachment 136900 [details]
.config
Comment 5 Michele Schiavo 2007-11-29 22:27:33 UTC
with evtest.c this appears :

ps/2 have also this
Event: time 1196375114.066081, type 4 (Misc), code 4 (ScanCode), value 3c



USB:
Event: time 1196375087.469517, type 1 (Key), code 60 (F2), value 1
Event: time 1196375087.469520, -------------- Report Sync ------------
^[OQEvent: time 1196375087.549505, type 1 (Key), code 60 (F2), value 0
Event: time 1196375087.549508, -------------- Report Sync ------------

PS2:
Event: time 1196375114.066081, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196375114.066085, type 1 (Key), code 60 (F2), value 1
Event: time 1196375114.066086, -------------- Report Sync ------------
^[OQEvent: time 1196375114.132478, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196375114.132482, type 1 (Key), code 60 (F2), value 0
Event: time 1196375114.132483, -------------- Report Sync ------------


Comment 6 Michele Schiavo 2007-11-29 22:49:32 UTC
the problem is in fbsplash
Comment 7 Michele Schiavo 2007-11-30 12:08:17 UTC
see this http://bugzilla.kernel.org/show_bug.cgi?id=9452
Comment 8 Michal Januszewski (RETIRED) gentoo-dev 2007-12-13 20:47:31 UTC
Could you please provide your `emerge --info`?  Also, in case you're not using splashutils 1.5.3.1, please upgrade.
Comment 9 Michele Schiavo 2007-12-13 22:06:13 UTC
Created attachment 138417 [details]
emerge --info
Comment 10 Michele Schiavo 2007-12-13 22:07:18 UTC
nothing news with last spashutils.

F2 seems not working with USB keyboard.

(no problem with PS/2 keyboard on same PC)
Comment 11 Michal Januszewski (RETIRED) gentoo-dev 2007-12-13 22:33:43 UTC
Could you please paste the contents of /sys/class/input/input<x>/name (where input<x> is the relevant evdev device for the USB keyboard)?

Comment 12 Michele Schiavo 2007-12-14 12:11:12 UTC
 pwd
/sys/class/input/event2
nocona event2 # cat *
13:66
cat: device: Is a directory
cat: power: Is a directory
cat: subsystem: Is a directory
MAJOR=13
MINOR=66


cat device/*
cat: device/capabilities: Is a directory
cat: device/device: Is a directory
cat: device/event2: Is a directory
cat: device/id: Is a directory
input:b0003v046DpC517e0110-e0,1,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,raml0,1,2,3,4,sfw
Logitech USB Receiver
usb-0000:00:1a.2-2/input0
cat: device/power: Is a directory
cat: device/subsystem: Is a directory
PRODUCT=3/46d/c517/110
NAME="Logitech USB Receiver"
PHYS="usb-0000:00:1a.2-2/input0"
UNIQ=""
EV=120003
KEY=1000000000007 ff800000000007ff febeffdfffefffff fffffffffffffffe
LED=1f
MODALIAS=input:b0003v046DpC517e0110-e0,1,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,raml0,1,2,3,4,sfw





Comment 13 Michal Januszewski (RETIRED) gentoo-dev 2007-12-15 18:40:44 UTC
Created attachment 138559 [details, diff]
Add another method of detecting the event device for keyboard.

Could you please apply this patch against your /sbin/splash-functions.sh and see whether this changes anything?  If it doesn't, try booting with 'splash=profile,<other_splash_options>' and attach your /lib/splash/cache/profile.
Comment 14 Michele Schiavo 2007-12-15 20:42:12 UTC
Created attachment 138576 [details]
/lib/splash/cache/profile
Comment 15 Michele Schiavo 2007-12-15 20:42:52 UTC
apply the patch but nothing.

Comment 16 Michele Schiavo 2007-12-15 20:44:16 UTC
Created attachment 138577 [details]
my grub menu.lst
Comment 17 Michal Januszewski (RETIRED) gentoo-dev 2007-12-16 09:24:58 UTC
what physical device does your /dev/input/event0 represent?

Also, please paste the contents of:
/dev/input/event0/name
/dev/input/event0/uevent
/dev/input/event0/capabilities/ev
Comment 18 Michele Schiavo 2007-12-16 22:04:41 UTC
there is nothing
ls  /dev/input/event*
/dev/input/event0  /dev/input/event1  /dev/input/event2  /dev/input/event3



ls  -al /dev/input/event
event0  event1  event2  event3  
nocona ~ # ls  -al /dev/input/event0 
crw------- 1 root root 13, 64 16 dic 15:00 /dev/input/event0
nocona ~ # ls  -al /dev/input/event1
crw------- 1 root root 13, 65 16 dic 15:00 /dev/input/event1
nocona ~ # ls  -al /dev/input/event2
crw------- 1 root root 13, 66 16 dic 15:00 /dev/input/event2
nocona ~ # 
Comment 19 Michal Januszewski (RETIRED) gentoo-dev 2007-12-19 21:54:46 UTC
I'm sorry, my mistake :)  What I meant was:

/sys/class/input/input0/name
/sys/class/input/input0/uevent
/sys/class/input/input0/capabilities/ev

Comment 20 Michele Schiavo 2007-12-20 19:45:48 UTC
 more input0/name 
Power Button (FF)
nocona input # more input1/name 
Power Button (CM)
nocona input # more input2/name 
Logitech USB Receiver
nocona input # more input3/name 
Logitech USB Receiver




more input0/uevent 
PRODUCT=19/0/2/0
NAME="Power Button (FF)"
PHYS="LNXPWRBN/button/input0"
EV=3
KEY=10000000000000 0
MODALIAS=input:b0019v0000p0002e0000-e0,1,k74,ramlsfw
nocona input # more input1/uevent 
PRODUCT=19/0/1/0
NAME="Power Button (CM)"
PHYS="PNP0C0C/button/input0"
EV=3
KEY=10000000000000 0
MODALIAS=input:b0019v0000p0001e0000-e0,1,k74,ramlsfw
nocona input # more input2/uevent 
PRODUCT=3/46d/c517/110
NAME="Logitech USB Receiver"
PHYS="usb-0000:00:1a.2-2/input0"
UNIQ=""
EV=120003
KEY=1000000000007 ff800000000007ff febeffdfffefffff fffffffffffffffe
LED=1f
MODALIAS=input:b0003v046DpC517e0110-e0,1,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D
,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,r
aml0,1,2,3,4,sfw
nocona input # more input3/uevent 
PRODUCT=3/46d/c517/110
NAME="Logitech USB Receiver"
PHYS="usb-0000:00:1a.2-2/input1"
UNIQ=""
EV=f
KEY=7fff04ac332f bf08444400000000 ff0001 1f848a37cc00 667bfadd71dfed 9e000000000
000 0
REL=1c3
ABS=100000000
MODALIAS=input:b0003v046DpC517e0110-e0,1,2,3,k71,72,73,74,77,80,82,83,85,86,87,8
8,89,8A,8B,8C,8E,8F,90,94,95,96,98,9A,9B,9C,9E,9F,A1,A3,A4,A5,A6,A7,A8,A9,AB,AC,
AD,AE,B1,B2,B5,B6,CA,CB,CE,CF,D0,D1,D2,D4,D5,D9,DB,DF,E2,E7,E8,E9,EA,EB,EC,100,1
10,111,112,113,114,115,116,117,162,166,16A,16E,173,178,179,17A,17B,17C,17D,17F,1
80,181,182,183,185,188,189,18C,18D,192,193,195,197,19A,1A0,1A1,1A2,1A3,1A4,1A5,1
A6,1A7,1A8,1A9,1AA,1AB,1AC,1AD,1AE,r0,1,6,7,8,a20,mlsfw




 more input0/capabilities/ev 
3
nocona input # more input1/capabilities/ev 
3
nocona input # more input2/capabilities/ev 
120003
nocona input # more input3/capabilities/ev 
f










Comment 21 Michele Schiavo 2007-12-20 19:46:27 UTC
If i disable Power Button (FF) from kernel it's a good idea for test this bug?
Comment 22 Michele Schiavo 2007-12-20 19:47:16 UTC
ll
totale 0
lrwxrwxrwx 1 root root 0 20 dic 20:43 event0 -> ../../devices/virtual/input/input0/event0
lrwxrwxrwx 1 root root 0 20 dic 20:43 event1 -> ../../devices/virtual/input/input1/event1
lrwxrwxrwx 1 root root 0 20 dic 20:43 event2 -> ../../devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0/input/input2/event2
lrwxrwxrwx 1 root root 0 20 dic 20:43 event3 -> ../../devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.1/input/input3/event3
lrwxrwxrwx 1 root root 0 20 dic 20:43 input0 -> ../../devices/virtual/input/input0
lrwxrwxrwx 1 root root 0 20 dic 20:43 input1 -> ../../devices/virtual/input/input1
lrwxrwxrwx 1 root root 0 20 dic 20:43 input2 -> ../../devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0/input/input2
lrwxrwxrwx 1 root root 0 20 dic 20:43 input3 -> ../../devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.1/input/input3
lrwxrwxrwx 1 root root 0 20 dic 20:43 mice -> ../../devices/virtual/input/mice
lrwxrwxrwx 1 root root 0 20 dic 20:43 mouse0 -> ../../devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.1/input/input3/mouse0
Comment 23 Michal Januszewski (RETIRED) gentoo-dev 2007-12-23 11:41:06 UTC
Created attachment 139173 [details, diff]
Fix the new method of detecting the event device.

Could you please apply this patch to your /sbin/splash-functions.sh and try again? (note that splash-functions.sh has to be patched with the previous patch as well in order for this one to work).
Comment 24 Michal Januszewski (RETIRED) gentoo-dev 2007-12-23 11:42:21 UTC
Created attachment 139174 [details]
A simple script that detects the keyboard event device.

Could you please run this script and include its output as a comment to this bug?
Comment 25 Michele Schiavo 2007-12-23 12:23:56 UTC
./evdeb.sh 
got event2 using method #3
Comment 26 Michele Schiavo 2007-12-23 12:38:34 UTC
It's working. !!!

good. 

F2 switch between silent and verbose.
Comment 27 Michele Schiavo 2007-12-23 12:38:51 UTC
Thank's
Comment 28 Michal Januszewski (RETIRED) gentoo-dev 2008-01-06 15:14:12 UTC
The problem should be fixed in 1.5.3.3.
Comment 29 Michele Schiavo 2008-01-08 20:36:39 UTC
it's solved on [ebuild   R   ] media-gfx/splashutils-1.5.3.3 
Comment 30 John 2009-08-25 08:01:13 UTC
Hi, I am having the same issue with splashutils 1.5.4.3, emerge --info follows:

(I checked the evdev flag in kernel .config, but no avail...)

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4-slacker x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-slacker-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 24 Aug 2009 12:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 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="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="nb no en en_GB en_US"
MAKEOPTS="-j5"
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/portage/local/layman/pd-overlay /usr/portage/local/layman/pro-audio /usr/local/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds 7zip X a52 aac aalib acl acpi administrator aim alsa amarok amd64 animgif apache2 arts artworkextra audacious background bacula-console berkdb bittorrent bluetooth bzip2 cairo caps ccache cdaudio cdb cdda cddb cdparanoia cdr cdrom cdsound cgi cjk cli consolekit cpufreq cracklib crypt css ctype cups cupsddk curl curlwrappers dbus dga diskio divx dolby-record-switch dolbyinrec dri dssi dts dv dvb dvbplayer dvbsetup dvd dvdnav dvdr dvdread editor emovix encode esd excel exif faillog fam fame fasttrack fat fbcon fbcondecor fbsplash ffmpeg firefox3 flac flash fontconfig fortran ftp gconf gd gdbm geoip gif gimp gimpprint gkrellm gmail gmedia gmp gnokii gnome gnutella gphoto2 gpm gs gstreamer gtk gtkhtml gutenprint gzip hal hash hddtemp http icecast icons iconv icq id3 id3tag ieee1394 imagemagick imap insecure-savers irc irmc isdnlog jabber jack java javascript jpeg jpeg2k kde kolab lame lash libcaca libsamplerate lilypond live lm_sensors logitech-mouse logrotate loop-aes lzo lzw mad magic matroska md5sum mhash mikmod mime mixer mjpeg mmkeys mmx mng modplug mozilla mp2 mp3 mp4 mpd mpeg mpeg2 mplayer msn msnextras mudflap multilib music musicbrainz mysql nas ncurses net netjack netmeeting netpbm network nfs nls no no_gf nptl nptlonly nsplugin ntfs nvidia obex odbc offensive office ogg ogg123 openal opengl openmp openstreetmap oscar oss pam pcre pda pdf perl php pidgin pipe player plotutils png postscript pppd print projectx python qt3 qt4 quicktime radio rar raw readline realmedia reflection reiserfs replytolist restrict-javascript rpm rss rtsp samba scanner screen sdl sdl-image sensord session shout sid silc skins slang sms sndfile snmp sockets sox spell spl sqlite srt sse sse2 sse3 ssl stream streamripper submenu subtitles svg svgz sysfs tcpd teletext tga tgif theora thumbnail thunderbird tidy tiff timidity tk totem transcode trayicon truetype tta tv tv_check tv_combiner tv_pick_cgi twolame type1 unicode usb userlocales uuencode v4l2 vcd vcdx vdr vhosts visualization vlm vorbis wav wavpack webkit wma wmf wmp wordperfect wxwindows x264 xanim xcb xcf xfce xfs xgetdefault xine xinerama xml xmlreader xmlrpc xmlwriter xmp xorg xosd xpm xscreensaver xspf xterm xterm-color xulrunner xv xvid xvmc yahoo yp yv12 zip zlib" ALSA_CARDS="hda-intel" 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 keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nb no en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 31 George Kadianakis (RETIRED) gentoo-dev 2009-08-25 19:29:13 UTC
(In reply to comment #30)
> Hi, I am having the same issue with splashutils 1.5.4.3

Did you try with media-gfx/splashutils-1.5.3.3? Did the issue occur in 1.5.3.3 too, for you?
Comment 32 Navid Zamani 2009-10-01 23:48:38 UTC
(In reply to comment #31)
> (In reply to comment #30)
> > Hi, I am having the same issue with splashutils 1.5.4.3
> Did you try with media-gfx/splashutils-1.5.3.3? Did the issue occur in 1.5.3.3
> too, for you?

Hey, I also have this problem with splashutils 1.5.4.3. Unfortunately I can’t answer that question for him, because there is only one version of splashutils (1.5.4.3) in portage. No 1.5.3.3. Could you provide the 1.5.3.3. ebuild?
Comment 33 Navid Zamani 2009-10-02 00:02:48 UTC
Oh, and  here, the strange thing is, that I can switch to „verbose mode“ by pressing the right Windows key and then the left one to get back. As if it were console 0… or 13…? Also there is a notable switch in display (not the resolution or refresh rate, but something else) on that verbose console, even way after the booting is done. Consoles 2-6 are the same. But console 1 has this switch. Very strange. My guess is, that the silent mode lays on the wrong console, and therefore the key press goes to the dead console 0/13 instead of the expected consoe 1, when in silent mode.
Comment 34 Michal Januszewski (RETIRED) gentoo-dev 2009-11-22 17:03:43 UTC
(In reply to comment #30)

Could you please run the script from comment #24 and show us its output?