kernel 2.6.x + hotplug + usb scanner - not work.
Hi folk.
I have problem with using my USB Epson 2400 photo scanner.
uname -r
2.6.6-rc1
lsusb | grep -i epson
Bus 004 Device 002: ID 04b8:011b Seiko Epson Corp. Perfection 2400 Photo
dpkg -l hotplug | grep ^i
ii hotplug 0.0.20040329-8 Linux Hotplug Scripts
dpkg -l | grep libusb | grep ^i
ii libusb-0.1-4 0.1.8-9 Userspace USB programming library
dpkg -l | grep sane | grep ^i
ii sane 1.0.11+cvs2004 scanner graphical frontends
ii libsane 1.0.13-4 API library for scanners
ii libsane-extras 1.0.13.1 API library for scanners -- extra backends
ii sane-utils 1.0.13-4 API library for scanners -- utilitie
mount | grep usb
usbfs on /proc/bus/usb type usbfs (rw)
sane-find-scanner | grep -i epson
found USB scanner (vendor=0x04b8 [EPSON], product=0x011b [EPSON Scanner]) at
libusb:004:002
scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
grep 0x011b /etc/hotplug/usb/*
/etc/hotplug/usb/libsane.usermap:libusbscanner 0x0003 0x04b8
0x011b 0x0000
0x0000 0x00 0x00 0x00 0x00
0x00
0x00 0x00000000
grep -v \# scanner /etc/sane.d/epson.conf
/etc/sane.d/epson.conf:usb /dev/usb/scanner0
ls -l /dev/usb/scanner0
crw-rw-rw- 1 root root 180, 48 Apr 2 21:12 /dev/usb/scanner0
cat /etc/hotplug/usb/libusbscanner | grep -v \#
if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
chown root:scanner "$DEVICE"
chmod 0660 "$DEVICE"
fi
cat /etc/hotplug/usb/libusbscanner | grep DEVICE
# DEVICE=/proc/bus/usb/BBB/DDD
chown root:scanner "$DEVICE"
chmod 0660 "$DEVICE"
/etc/init.d/hotplug stop
/etc/init.d/hotplug start
Starting hotplug subsystem:
input
net
pci
uhci-hcd: loaded sucessfully
uhci-hcd: already loaded
uhci-hcd: already loaded
ehci-hcd: loaded sucessfully
ignore pci display device on 05:02.0
usb
libusbscanner: loaded sucessfully
chown: failed to get attributes of `': No such file or directory
chmod: failed to get attributes of `': No such file or directory
libusbscanner: loaded sucessfully
chown: failed to get attributes of `': No such file or directory
chmod: failed to get attributes of `': No such file or directory
done
What must I do for using scanner?
I try to change owner/permission for /proc/bus/usb/"BBB"/"DDD" but this not
work.
I also adde users to scanner group.
I try using scanner as root and user - not work. Scanner is not detected.
Other question: what can I do that my system does some signal (beep or
message) about
new USB device? And how can I (or another user) mount/umount USB disks without
root
permissions. Hotplug does this?
Thanx.
--
Зарегистрируйте бесплатный почтовый ящик @inet.ua
Reply to: