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

2.6, HotPlug, libusb e scanner...



Uso testing con kernel 2.6, e visto che dopo qualche mese mi serviva
nuovamente lo scanner, mi sono messo a configurarlo.

Ho seguito le istruzioni dei vari README.Debian, ma ho incontrato un
problema con HotPlug.

/usr/share/doc/libsane/README.Debian.gz dice:

 If you intend to use a USB scanner with libusb, you should install the hotplug
 package, and then take the following steps :
  o add scanner to /etc/hotplug/blacklist so that the scanner.o kernel driver
    won't be loaded by hotplug.
  o edit /etc/hotplug/usb/libsane.usbmap, and add a line similar to the one
    given at the top of the file, replacing 0xVVVV and 0xPPPP with the vendor ID
    and the product ID of your scanner, respectively.
 The vendor ID and product ID of your scanner can be obtained by running
 sane-find-scanner (you might need to run it as root).

ovviamente /etc/hotplug/usb/libsane.usbmap non esiste, e non è chiaro
in che formato va creato... alla fine ho trovato un esempio in:

/usr/share/doc/libsane/plustek/Plustek-USB.txt.gz

e alla fin fine funziona tutto perfettamente, peccato che il device
dello scanner (/proc/bus/usb/BBB/DDD) resti root.root 600, mentre che
root.scanner 660. Morale della favola lo scanner funziona solo da root.

Ho visto che esiste /etc/hotplug/usb/libusbscanner, ho provato a
copiarlo anche in /etc/hotplug.d/usb/ ma nisba.


Probabilmente non capisco qualcosa ma... cosa?! ;-)))


Grazie a chi mi saprà illuminare. ;)

-- 
  Please note that free software should be interpreted as free speach
  while most seem to interprete it as free lunch.
						(Hugo van der Kooij)



Reply to: