Hello... I just picked up a used Scanjet 4p (which the previous owner says worked fine). I connected it to a recent SuSE 8.2 box (SCSI = Buslogic BT-946C). All I can get out of it is: scanimage: open of device hp:/dev/scanner failed: Error during device I/O Some googling showed me how to turn on some debugging, which leads SANE to dump out all kinds of crap, like: balin:/etc/sane.d # scanimage -d hp:/dev/scanner [sanei_debug] Setting debug level of hp to 1. [hp] hp_read_config: hp backend v0.96 starts reading config file [hp] hp_read_config: processing line <scsi HP> [hp] hp_read_config: processing line [hp] hp_read_config: attach scsi HP [hp] scl_inq: read failed (Error during device I/O) [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O [hp] sanei_hp_device_new: SCL reset failed [hp] hp_read_config: processing line <# uncomment this if you're using a usb scanner> [hp] hp_read_config: processing line <# /dev/usb/scanner0> [hp] hp_read_config: processing line <# option connect-device> [hp] hp_read_config: attach /dev/scanner [hp] scl_inq: read failed (Error during device I/O) [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O [hp] sanei_hp_device_new: SCL reset failed [hp] hp_read_config: reset to default config [hp] scl_inq: read failed (Error during device I/O) [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O [hp] sanei_hp_device_new: SCL reset failed scanimage: open of device hp:/dev/scanner failed: Error during device I/O Other debugging flags reveal snippets like: [hp] scsi_inquire: sending INQUIRE [hp] scsi_new: sending TEST_UNIT_READY [hp] scsi_flush: writing 2 bytes: [hp] 0x0000 1B 45 .E [hp] scsi_flush: writing 7 bytes: [hp] 0x0000 1B 2A 73 32 35 37 45 .*s257E [hp] scl_inq: read failed (Error during device I/O) [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O [hp] sanei_hp_device_new: SCL reset failed [hp] scsi_close: closing fd 4 [hp] hp_read_config: reset to default config [hp] hp_get_dev: New device /dev/scanner, connect-scsi, scsi-request=1 [hp] sanei_hp_device_new: /dev/scanner [hp] scsi_inquire: sending INQUIRE [hp] scsi_new: sending TEST_UNIT_READY [hp] scsi_flush: writing 2 bytes: [hp] 0x0000 1B 45 .E [hp] scsi_flush: writing 7 bytes: [hp] 0x0000 1B 2A 73 32 35 37 45 .*s257E [hp] scl_inq: read failed (Error during device I/O) [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O [hp] sanei_hp_device_new: SCL reset failed [hp] scsi_close: closing fd 3 This is a more-or-less stock SuSE 8.2 box, with most of the updates installed. Thanks for any help that anybody can offer.. -Nick
* Nick LeRoy
Hello...
I just picked up a used Scanjet 4p (which the previous owner says worked fine). I connected it to a recent SuSE 8.2 box (SCSI = Buslogic BT-946C). All I can get out of it is:
scanimage: open of device hp:/dev/scanner failed: Error during device I/O [snip much]...
I have a 4c that works beautifully, never a problem. I believe that 'hp:/dev/scanner' is wrong. I use 'scanimage -d hp:/dev/sg0' altho '-d hp:/dev/sg0' is not necessary. Check /etc/hp.conf Mine has: pat@wahoo:~> cat /etc/sane.d/hp.conf scsi HP /dev/sg0 scanimage -L gives: pat@wahoo:~> scanimage -L device 'Hp:/dev/sg0' is a Hewlett-Packard C2520A flatbed scanner pat@wahoo:~> ls -l /dev/sg0 crw-rw-rw- 1 pat disk 21, 0 2002-09-09 15:24 /dev/sg0 Did you set your scanner with Yast2? -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
On Monday 26 May 2003 6:17 pm, Patrick Shanahan wrote:
* Nick LeRoy
[05-26-03 17:40]: Hello...
I just picked up a used Scanjet 4p (which the previous owner says worked fine). I connected it to a recent SuSE 8.2 box (SCSI = Buslogic BT-946C). All I can get out of it is:
scanimage: open of device hp:/dev/scanner failed: Error during device I/O
[snip much]...
I have a 4c that works beautifully, never a problem.
I believe that 'hp:/dev/scanner' is wrong. I use 'scanimage -d hp:/dev/sg0' altho '-d hp:/dev/sg0' is not necessary.
I made a soft link from /dev/sg1 -> /dev/scanner..
Check /etc/hp.conf
Mine has: pat@wahoo:~> cat /etc/sane.d/hp.conf scsi HP /dev/sg0
Very similar
scanimage -L gives: pat@wahoo:~> scanimage -L device 'Hp:/dev/sg0' is a Hewlett-Packard C2520A flatbed scanner
pat@wahoo:~> ls -l /dev/sg0 crw-rw-rw- 1 pat disk 21, 0 2002-09-09 15:24 /dev/sg0
balin:/etc/sane.d # sane-find-scanner found SCSI processor "HP C1130A 3614" at /dev/scanner
Did you set your scanner with Yast2?
YAST hated it, and refused to do anything useful. :-(
addendum...
also try as root: hwinfo --scanner
balin:/etc/sane.d # hwinfo --scanner 02: SCSI 02.0: 10c00 Scanner [Created at scsi.230] Unique ID: +XM_.UCs64PmZ7FC Hardware Class: scanner Model: "HP C1130A" Vendor: "HP" Device: "C1130A" Revision: "3614" Driver: "BusLogic" Device File: /dev/sg1 Config Status: cfg=no, avail=yes, need=no Thanks for the help so far... -Nick
* Nick LeRoy
On Monday 26 May 2003 6:17 pm, Patrick Shanahan wrote:
* Nick LeRoy
[05-26-03 17:40]: [much snip] addendum...
also try as root: hwinfo --scanner
balin:/etc/sane.d # hwinfo --scanner 02: SCSI 02.0: 10c00 Scanner [Created at scsi.230] Unique ID: +XM_.UCs64PmZ7FC Hardware Class: scanner Model: "HP C1130A" Vendor: "HP" Device: "C1130A" Revision: "3614" Driver: "BusLogic" Device File: /dev/sg1 Config Status: cfg=no, avail=yes, need=no ^^^^^^
pat@wahoo:~> su1 hwinfo --scanner 01: SCSI 06.0: 10c00 Scanner [Created at scsi.229] Unique ID: YM6w.Ijt7M6aH9w3 Hardware Class: scanner Model: "HP C2520A" Vendor: "HP" Device: "C2520A" Revision: "3503" Driver: "aic7xxx" Device File: /dev/sg0 Config Status: cfg=yes, avail=yes, need=no ^^^^^^^ I would try Yast2 again. -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
On Monday 26 May 2003 7:56 pm, Patrick Shanahan wrote:
Config Status: cfg=no, avail=yes, need=no
Config Status: cfg=yes, avail=yes, need=no ^^^^^^^
I would try Yast2 again.
Patrick, Thanks for your input so far. YaST correctly identifies that I have an HP-C1130A, but then gives me _no_ options in the "Select Vendor" / "Select Model" areas. So, I initially thought that it was a YaST problem. However, further investiagtion leads me to believe that there's something bigger going wrong, which is why I posted here for help. Notice the "[hp] scl_errcheck: Can't read SCL error stack: Error during device I/O" error messages in my initial posting; I don't think this is just a YaST config problem. I'd _love_ to be proven wrong, however... -Nick
* Nick LeRoy
YaST correctly identifies that I have an HP-C1130A, but then gives me _no_ options in the "Select Vendor" / "Select Model" areas. So, I initially thought that it was a YaST problem.
However, further investiagtion leads me to believe that there's something bigger going wrong, which is why I posted here for help. Notice the "[hp] scl_errcheck: Can't read SCL error stack: Error during device I/O" error messages in my initial posting; I don't think this is just a YaST config problem. I'd _love_ to be proven wrong, however...
Do you get the results from: scanimage -d hp:/dev/sg1 ?? It might ?? possibly ?? be a permissions problem. -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
* Nick LeRoy
I just picked up a used Scanjet 4p (which the previous owner says worked fine). I connected it to a recent SuSE 8.2 box (SCSI = Buslogic BT-946C). All I can get out of it is:
scanimage: open of device hp:/dev/scanner failed: Error during device I/O
... [much snip] addendum... also try as root: hwinfo --scanner ie: wahoo:/home/pat # hwinfo --scanner 01: SCSI 06.0: 10c00 Scanner [Created at scsi.229] Unique ID: YM6w.Ijt7M6aH9w3 Hardware Class: scanner Model: "HP C2520A" Vendor: "HP" Device: "C2520A" Revision: "3503" Driver: "aic7xxx" Device File: /dev/sg0 Config Status: cfg=yes, avail=yes, need=no ** notice 'Device File: /dev/sg0' -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
participants (2)
-
Nick LeRoy
-
Patrick Shanahan