Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184183 - media-gfx/splashutils-1.4.2.1 input device detection for F2 verbose key fails with USB keyboard
Summary: media-gfx/splashutils-1.4.2.1 input device detection for F2 verbose key fails...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-04 11:41 UTC by Mark Huijgen
Modified: 2007-08-11 13:36 UTC (History)
0 users

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


Attachments
Contents /proc/bus/input/devices (proc_bus_input_devices.txt,1.04 KB, text/plain)
2007-07-04 11:42 UTC, Mark Huijgen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Huijgen 2007-07-04 11:41:16 UTC
media-gfx/splashutils-1.4.2.1

In /sbin/splash-functions.sh there are 2 methods to detect a keyboard input device:
local t=$(grep -Hsi keyboard /sys/class/input/event*/device/driver/description | grep -o 'event[0-9]\+')

This one does not detect usb keyboards because the usbhid driver does not provide an description file (2.6.20-gentoo-r6 kernel). So it falls back to the alternate detection method, which would work if it weren't for other devices handled by the kbd driver:

# Try an alternative method of finding the event device. The idea comes
# from Bombadil <bombadil(at)h3c.de>. We're couting on the keyboard controller
# being the first device handled by kbd listed in input/devices.
t=$(/bin/grep -s -m 1 '^H: Handlers=kbd' /proc/bus/input/devices | grep -o 'event[0-9]*')

In my case the event0-3 are taken by ACPI and PNP buttons. This alternative method sets event0 as my keyboard device, but it is in fact:
N: Name="Power Button (FF)"
P: Phys=ACPI_FPB/button/input0

Even with a ps/2 keyboard attached event0 stays an ACPI button (but in this case the first method succeeds and the alternate method isn't used).

I will attach the contents of /proc/bus/input/devices to this report.
Comment 1 Mark Huijgen 2007-07-04 11:42:04 UTC
Created attachment 123867 [details]
Contents /proc/bus/input/devices

Contents /proc/bus/input/devices
Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2007-07-07 18:38:28 UTC
I added two new methods of detecting the keyboard in 1.4.3, both of which should be better than the previous ones. I think they should work in your case as well. Please reopen the bug if they don't.
Comment 3 Mark Huijgen 2007-07-09 08:28:25 UTC
Still doesn't work for me with an USB keyboard.

I have installed media-gfx/splashutils-1.4.3 but the file /sbin/splash-functions.sh with the detection functions is identical to the 1.4.2.1 release. I also checked splashutils-gentoo-1.0.4.tar.bz2, the file in there (splash-functions-bl1.sh) is also identical to the splashutils-gentoo-1.0.3.

So either the new detection didnt make it in the tar file, or I'm overlooking someting. My baselayout version is sys-apps/baselayout-1.12.9-r2.
Comment 4 Michal Januszewski (RETIRED) gentoo-dev 2007-07-09 20:55:51 UTC
Ah, you're using baselayout-1.  I just updated the splash plugin for baselayout-2 -- I'm sorry about that. I will do another release tomorrow or so and it will include updated splash-functions.sh.
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2007-08-11 13:36:00 UTC
Sorry, about the delay but I decided not to do the 1.4.4 release and go straight for 1.5 instead.  1.5 now includes the updated code for input device detection.