1141cc406Sopenharmony_ciREADME for the USB hotplug scripts for sane-backends : 2141cc406Sopenharmony_ci------------------------------------------------------ 3141cc406Sopenharmony_ci 4141cc406Sopenharmony_ciIf you intend to use a USB scanner with libusb and older versions of Linux, you 5141cc406Sopenharmony_cishould install the hotplug package, and then take the following steps. For 6141cc406Sopenharmony_cicurrent Linux kernels, "udev" is state of the art, see the "udev" directory 7141cc406Sopenharmony_ciinstead. 8141cc406Sopenharmony_ci 9141cc406Sopenharmony_ci o Copy the libsane.usermap and libusbscanner files from this directory to 10141cc406Sopenharmony_ci /etc/hotplug/usb/ 11141cc406Sopenharmony_ci o If you use Linux 2.6.3 or older, add scanner to /etc/hotplug/blacklist so 12141cc406Sopenharmony_ci that the scanner.o kernel driver won't be loaded by hotplug. With later 13141cc406Sopenharmony_ci kernel versions there is no scanner module and therefore it's not necessary 14141cc406Sopenharmony_ci to use the blacklist. 15141cc406Sopenharmony_ci o Check if /etc/hotplug/usb/libsane.usermap already knows about your scanner. 16141cc406Sopenharmony_ci If your scanner is not in this list,add a line similar to the other ones 17141cc406Sopenharmony_ci using the vendor ID and the product ID of your scanner. Please contact the 18141cc406Sopenharmony_ci sane-devel mailing list in this case so the ids of your scanner can be added. 19141cc406Sopenharmony_ci o Make sure that the "scanner" group exists on your system and that every user 20141cc406Sopenharmony_ci who should be allowed to access the scanner is a member of that group. 21141cc406Sopenharmony_ci Alternatively, you can enable access for every user of your system in 22141cc406Sopenharmony_ci libusbscanner. 23141cc406Sopenharmony_ci 24141cc406Sopenharmony_ciThe vendor ID and product ID of your scanner can be obtained by running 25141cc406Sopenharmony_cisane-find-scanner (you might need to run it as root). 26141cc406Sopenharmony_ci 27141cc406Sopenharmony_ciPlease note that the scanner.o (or scanner.ko in Linux 2.6) kernel module is 28141cc406Sopenharmony_cinow deprecated and marked as obsolete in Linux 2.6. It is recommended to switch 29141cc406Sopenharmony_cito libusb. 30141cc406Sopenharmony_ci 31141cc406Sopenharmony_ciIf the hotplug support doesn't work for you once you have taken the steps 32141cc406Sopenharmony_cidescribed above, check that your kernel has been built with hotplug support. 33141cc406Sopenharmony_ciOtherwise, you'll need to rebuild your kernel. 34141cc406Sopenharmony_ci 35141cc406Sopenharmony_ci -- Julien BLACHE <jb@jblache.org>, Sat, 28 Feb 2004 10:01:02 +0000 36