Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209263 - x11-drivers/linuxwacom-0.7.8_p3: missing file /lib/udev/check_driver
Summary: x11-drivers/linuxwacom-0.7.8_p3: missing file /lib/udev/check_driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Auty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-07 15:34 UTC by Jesus Chumillas
Modified: 2008-02-12 00:35 UTC (History)
2 users (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 Jesus Chumillas 2008-02-07 15:34:24 UTC
File /lib/udev/check_driver (referenced by /etc/udev/rules.d/60-wacom.rules) is not installed by ebuild. This script will check if the device has bound to the wacom kernel driver, and if it has not, will try to remedy that. In some cases (with USB mouses) the incorrect driver is bounded to device. 

Reproducible: Always




Contents of file /lib/udev/check_driver:
******************** CUT ***************************************
#!/bin/sh
#

wanted=$1
devpath=$2
bustype=$3

device=$(basename $(readlink /sys/$devpath/device))
driver=$(basename $(readlink /sys/$devpath/device/driver))

if [ x"$driver" != x"$wanted" ]; then
    echo -n "$device" > /sys/$devpath/device/driver/unbind
    echo -n "$device" > /sys/bus/$bustype/drivers/$wanted/bind
fi
*********************** CUT *****************************************
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2008-02-08 21:50:47 UTC
I added the check_driver script in linuxwacom-0.7.8_p3-r1. Please test and report back!
Comment 2 Jesus Chumillas 2008-02-09 07:43:55 UTC
Thanks!
Works very well. New Output from /var/log/messages:

Feb  9 08:40:19 LinuxQUAD usb 4-2: new low speed USB device using uhci_hcd and address 3
Feb  9 08:40:19 LinuxQUAD usb 4-2: configuration #1 chosen from 1 choice
Feb  9 08:40:19 LinuxQUAD input: WACOM CTE-640-U V4.0-3 as /class/input/input8
Feb  9 08:40:20 LinuxQUAD logger: device 4-2:1.0 is bound to the usbmouse driver
Feb  9 08:40:20 LinuxQUAD logger: must rebind
Feb  9 08:40:20 LinuxQUAD input: Wacom Graphire4 6x8 as /class/input/input9
Feb  9 08:40:20 LinuxQUAD logger: device 4-2:1.0 is bound to the wacom driver
Feb  9 08:40:20 LinuxQUAD logger: no need to rebind


Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2008-02-10 07:15:40 UTC
I'm confused about why this is in FILESDIR. It's not a file provided by upstream?
Comment 4 Mike Auty (RETIRED) gentoo-dev 2008-02-10 10:27:40 UTC
I think it was provided by Debian, as I believe that's where the udev rules came from.  I don't think it's specific to linuxwacom, but it seems a little much for a whole ebuild to separate it out.  Another solution would be to remove the catchall line at the end of the udev file I guess?
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2008-02-11 04:46:40 UTC
Is there some effort to get both udev rules and this script upstream, then?
Comment 6 Robert Buchholz (RETIRED) gentoo-dev 2008-02-12 00:35:35 UTC
(In reply to comment #5)
> Is there some effort to get both udev rules and this script upstream, then?

I mailed the Debian maintainer about why or why not, let's see.