docs:scanners
Differences
This shows you the differences between two versions of the page.
| docs:scanners [2010-04-15 13:12] – My notes over scanners config Mateusz Korniak | docs:scanners [2010-04-15 14:37] (current) – All I needed to run two my scanners. Mateusz Korniak | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| < | < | ||
| </ | </ | ||
| - | Plug in scanner, check / | + | Plug in scanner, check /// |
| < | < | ||
| Line 29: | Line 29: | ||
| or run lsusb again and notice new device. | or run lsusb again and notice new device. | ||
| + | |||
| + | |||
| + | ==== Testing if sane recognizes scanner ==== | ||
| + | Run (first from user account and later via sudo) | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | One should see: | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | If there is also information | ||
| + | |||
| + | < | ||
| + | libusb requires write access to USB device nodes. | ||
| + | </ | ||
| + | meaning there is privilages problem | ||
| + | |||
| + | |||
| + | |||
| + | ==== Solving / | ||
| + | If device being scanner has root:root privilates: | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | regular users will not be able to use scanner device. | ||
| + | |||
| + | Option is adding new udev rule to file /// | ||
| + | |||
| + | Selection criteria can be found from issuing command (after using proper usb bus numbers 2.4 in example): | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | or monitoring udev events (with properties display) during device plugin | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | Most likely criteria would be SYSFS{idVendor}== and SYSFS{idProduct} so rule migh look like: | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | </ | ||
| + | Reload udev rules: | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | and unplug, plug device or trigger all rules again: | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | and verify results. | ||
| + | |||
| + | Note that we here try to use non-existing in PLD group ' | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | # owner: root | ||
| + | # group: root | ||
| + | user::rw- | ||
| + | user: | ||
| + | group::rw- | ||
| + | mask::rw- | ||
| + | other::r-- | ||
| + | </ | ||
| + | and device is accesible (rw) for user ' | ||
| + | |||
| + | Of course if above does not work, one can select any group ' | ||
| + | |||
| + | |||
| + | |||
| + | ==== Firmware files needed for scanner models ==== | ||
| + | Sometimes firmware file must be loaded to scanner before using it but required file(s) are not included with sane and must be downloaded from drivers/ | ||
| + | |||
| + | |||
| + | |||
| + | ==== Clients: xsane ==== | ||
docs/scanners.1271329933.txt.gz · Last modified: 2010-04-15 13:12 by Mateusz Korniak