LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   HP 6300C scanner (in USB mode) and Debian - PITA (https://www.linuxquestions.org/questions/debian-26/hp-6300c-scanner-in-usb-mode-and-debian-pita-455766/)

Malibyte 06-17-2006 04:02 PM

HP 6300C scanner (in USB mode) and Debian - PITA
 
Hi all -

I have a Debian Sid system (AMD64). I'm trying to get an HP 6300C scanner (via USB; it has both USB and SCSI interfaces) working. The appropriate SANE packages are installed.

/etc/sane.d/hp.conf looks like this:
Code:

#scsi HP
# Uncomment the following if you have "Error during device I/O" on SCSI
#  option dumb-read
#
# The usual place for a SCSI-scanner on Linux
#/dev/scanner
#
# USB-scanners supported by the hp-backend
# HP ScanJet 4100C
#usb 0x03f0 0x0101
# HP ScanJet 5200C
#usb 0x03f0 0x0401
# HP ScanJet 62X0C
#usb 0x03f0 0x0201
# HP ScanJet 63X0C
usb 0x03f0 0x0601
#
# Uncomment the following if your scanner is connected by USB,
# but you are not using libusb
# /dev/usb/scanner0
# option connect-device

The system sees the scanner:
Code:

[root@kenobi: ~]$ lsusb
Bus 003 Device 006: ID 067b:3507 Prolific Technology, Inc. PL3507 ATAPI6 Bridge
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 09ae:2005 Tripp Lite
Bus 001 Device 003: ID 03f0:0601 Hewlett-Packard ScanJet 6300c
Bus 001 Device 001: ID 0000:0000

sane-find-scanner, does:
Code:

[root@kenobi: ~]$ sane-find-scanner
<snip>
 
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x0601 [HP ScanJet 6300C]) at libusb:001:003

  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.


However, scanimage definitely can't find it:
Code:

[root@kenobi: ~]$ 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).

I've Googled this to death, read the manpages and the HOWTOs. I can't find an answer to this that actually shows me what to do. In several cases, Google searches looked promising, but then the poster found out how to do it on his own but didn't give any details.

SANE's project homepage says this scanner is fully supported.

So...anyone else have any bright ideas???

TIA -- Bob

Malibyte 06-18-2006 12:15 AM

OK, well, I commented out all of the other backends in /etc/sane.d/dll.conf, then rebooted the box, and though scanimage -L is still spotty (it did actually see it once), I can now run xsane (but only as root).

A mortal user gets the "no devices available" box.

A dump of /proc/bus/usb/devices yields:

Code:

<snip>
.
.
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0601 Rev= 1.00
S:  Manufacturer=Hewlett-Packard
S:  Product=HP ScanJet 6300C
S:  SerialNumber=
C:* #Ifs= 1 Cfg#= 1 Atr=60 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=  1 Ivl=250ms
.
.

Looking at permissions:
Code:

(1)
[root@kenobi: ~]$ nano /etc/udev/rules.d/025_libsane.rules
<snip>
.
.
# Hewlett-Packard|ScanJet 6300C
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="0601", MODE="664", GROUP="scanner"
.
.

(2)
[root@kenobi: ~]$ lsl /proc/bus/usb/001/005
-rw-rw-r-- 1 root scanner 57 Jun 17 21:51 /proc/bus/usb/001/005

So, the group "scanner" has read-write permissions on the device, and my user is included in the group "scanner".

But xsane will still only find it if launched by the root user.

What am I missing here in able to allow my regular user to access the scanner? I assume, since it's using libusb, I don't have to specify another device file for it to use. Nevertheless, I created a symlink from /dev/scanner to /dev/usb/scanner0. However, all of the /dev/usb/scanner* device nodes have 666 permissions, so THAT shouldn't be an issue either.

Thanks...Bob


All times are GMT -5. The time now is 04:07 PM.