[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xsane...



Jean-Luc Coulon (f5ibh) a écrit :

par défaut, libsane créé le fichier /etc/sane.d/hotplug/libsane.db qui comporte la définition des différents scanners connus.

Ce fichiers créé le device avec root:scanner et 0660

Exemple : mon scanner Epson 1640SU Photo

[jean-luc@tangerine] % lsusb
Bus 005 Device 002: ID 0402:5635 ALi Corp.
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04b8:010a Seiko Epson Corp. Perfection 1640SU
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

[jean-luc@tangerine] % ls -l /proc/bus/usb/002/002
-rw-rw----  1 root scanner 50 2005-05-05 13:03 /proc/bus/usb/002/002

[jean-luc@tangerine] % sane-find-scanner
[ ... ]
found USB scanner (vendor=0x04b8 [EPSON], product=0x010a [Perfection1640]) at libusb:002:002
[ ... ]

[jean-luc@tangerine] % scanimage -L
device `epson:libusb:002:002' is a Epson Perfection1640 flatbed scanner

Peut-être fau-il remettre à jour les ids ? (update-usbids, la même chose pour les ids pci : update-pciids, en root)
Jean-Luc

Mon fichier /etc/sane.d/hotplug/libsane contient
# Epson Corp.|Stylus CX3650
0x04b8    0x080e    root:scanner    0660

J'ai lancé les 2 commandes update indiquées.
J'allume mon scanner et

$ sane-find-scanner
...
found USB scanner (vendor=0x04b8 [EPSON], product=0x080e [USB MFP]) at libusb:002:003
...
# lsusb
Bus 002 Device 003: ID 04b8:080e Seiko Epson Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 045e:0047 Microsoft Corp. IntelliMouse Explorer 3.0
Bus 001 Device 001: ID 0000:0000
# ls -l /proc/bus/usb/002/003
-rw-rw----  1 root camera 73 2005-05-05 13:27 /proc/bus/usb/002/003

Merci quand même pour ces infos.
C'est vrai que mon scanner fonctionne bien, mais c'est tout de même surprenant ce groupe camera alors que cela devrait être scanner.



Reply to: