Package: libsane
Version: 1.0.19-23
Severity: important
Tags: patch
I've decided to file a new BR even though I suspect that this will resolve
quite a few open bugs both against libsane and scanning frontends.
My HP Scanjet 3300C worked perfectly before, but when I connected it to
my notebook today kooka refused to work. It _did_ list the scanner in its
initial scanner selection dialog, but in the main window it complained
sane was incorrectly installed.
The scanner is found:
$ scanimage -L
device `niash:libusb:005:011' is a Hewlett-Packard ScanJet 3300C flatbed scanner
But an actual scan fails:
$ scanimage >image.pnm
scanimage: open of device niash:libusb:005:011 failed: Device busy
Some digging showed:
# ls -l /dev/bus/usb/005/011
crw-rw-r-- 1 root root 189, 523 2009-04-09 14:14 /dev/bus/usb/005/011
Even though:
# udevadm test /class/usb_device/usbdev5.11
[...]
udev_node_add: creating device node '/dev/bus/usb/005/011',
major=189, minor=523, mode=0664, uid=0, gid=115
So clearly udev is confused.
After all that, the solution!
I noticed that the libsane udev rules are completely at the end:
[...]
80-drivers.rules
85-pcmcia.rules
90-hal.rules
91-permissions.rules
95-late.rules
libmtp7.rules
libnjb.rules
z60_alsa-utils.rules
z60_hdparm.rules
z60_libsane-extras.rules
z60_libsane.rules
z60_virtualbox-ose.rules
So, my theory was that the device gets created with default permissons
_before_ z60_libsane.rules gets executed. That turned out to be correct.
After renaming z60_libsane.rules to 60-libsane.rules, the device got
created with the correct group and kooka was happy:
# ls -l /dev/bus/usb/005/011
crw-rw-r-- 1 root scanner 189, 523 2009-04-09 14:14 /dev/bus/usb/005/011
It would be great if this could be fixed in a stable update too.
Cheers,
FJP
P.S. Note that udev 0.140 in unstable has again reordered rules and
moved them to /lib/udev. I think the rename to 60- will still work
though.
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-rjw (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libsane depends on:
ii adduser 3.110 add and remove users and groups
ii libavahi-client3 0.6.23-3lenny1 Avahi client library
ii libavahi-common3 0.6.23-3lenny1 Avahi common library
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libexif12 0.6.16-2.1 library to parse EXIF files
ii libgphoto2-2 2.4.1-3 gphoto2 digital camera library
ii libgphoto2-port0 2.4.1-3 gphoto2 digital camera port librar
ii libieee1284-3 0.2.11-5 cross-platform library for paralle
ii libjpeg62 6b-14 The Independent JPEG Group's JPEG
ii libsane-extras 1.0.19.11 API library for scanners -- extra
ii libtiff4 3.8.2-11 Tag Image File Format (TIFF) libra
ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii makedev 2.3.1-88 creates device files in /dev
ii udev 0.125-7 /dev/ and hotplug management daemo
Versions of packages libsane recommends:
pn avahi-daemon <none> (no description available)
ii sane-utils 1.0.19-23 API library for scanners -- utilit
Versions of packages libsane suggests:
pn hplip <none> (no description available)
pn hpoj <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]