Author Topic: Can't set up scanner HP scanjet 5200c (solved)  (Read 649 times)

Offline gor-dee

  • Jr. Member
  • **
  • Posts: 13
Can't set up scanner HP scanjet 5200c (solved)
« on: February 07, 2013, 06:13:23 AM »
Hi, I've been trying to set up an old but working HP scanjet 5200c scanner (USB) on PCLOS and I need help!

I don't often use a scanner but right now it would be useful. I have used the control center which detects the scanner........
”Hewlett Packard HP Scanjet 5200C is not in the scanner database, configure it manually?”
I click on “yes” and find Scanjet 5200C and click “ok” and get message that scanner has been configured and all is well.
I click “ok” and a little window with the X.org logo ( I think)pops up for a couple of seconds and disappears and I get message “There are no scanners which are available on your system”
Add a scanner manually gives the same result.

I've also tried......
Quote
[root@localhost ~]# sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x0401 [HP ScanJet 5200C]) at libusb:002:002
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
[root@localhost ~]# 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 been through the forums etc. and although there are many similar cases, nothing I've tried seems to make any difference. I think this may be a problem with permissions but surely it should see the scanner as root?

This is the contents of etc/udev/rules.d/60-libsane.rules (I've deleted most of the rules and highlighted  the 5200c in Red)

Quote
# This file was automatically created based on description files (*.desc)
# by sane-desc 3.5 from sane-backends 1.0.22 on Sun Jul 10 12:31:22 2011
#
# udev rules file for supported USB and SCSI devices
#
# The SCSI device support is very basic and includes only
# scanners that mark themselves as type "scanner" or
# SCSI-scanners from HP and other vendors that are entitled "processor"
# but are treated accordingly.
#
# To add a USB device, add a rule to the list below between the
# LABEL="libsane_usb_rules_begin" and LABEL="libsane_usb_rules_end" lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# If your scanner isn't listed below, you can add it as explained above.
#
# If your scanner is supported by some external backend (brother, epkowa,
# hpaio, etc) please ask the author of the backend to provide proper
# device detection support for your OS
#
# If the scanner is supported by sane-backends, please mail the entry to
# the sane-devel mailing list (sane-devel@lists.alioth.debian.org).
#
ACTION!="add", GOTO="libsane_rules_end"
ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
SUBSYSTEM=="usb_device", GOTO="libsane_usb_rules_begin"
SUBSYSTEM!="usb_device", GOTO="libsane_usb_rules_end"

# Kernel >= 2.6.22 jumps here
LABEL="libsane_create_usb_dev"

# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y
# If the following rule does not exist on your system yet, uncomment it
# ENV{DEVTYPE}=="usb_device", MODE="0664", OWNER="root", GROUP="root"

# Kernel < 2.6.22 jumps here
LABEL="libsane_usb_rules_begin"

# Hewlett-Packard ScanJet 4100C
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0101", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 4200C | Hewlett-Packard ScanJet 4200Cxi | Hewlett-Packard ScanJet 4200Cse
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0105", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 6200C | Hewlett-Packard ScanJet 6250C
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0201", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 3300c
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0205", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 4300c
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0305", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 5200C
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0401", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet 3400c
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0405", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 2100C
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0505", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 6300C | Hewlett-Packard ScanJet 6350C | Hewlett-Packard ScanJet 6390C
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0601", ENV{libsane_matched}="yes"

LABEL="libsane_scsi_rules_end"

LABEL="libsane_rules_end"

This is contents of etc/sane.d/hp.conf
Quote
# ***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
and finally etc/sane.d/dll.conf
Quote
# enable the next line if you want to allow access through the network:
net
abaton
agfafocus
apple
avision
artec
artec_eplus48u
as6e
bh
canon
canon630u
canon_dr
#canon_pp
cardscan
coolscan
#coolscan2
coolscan3
#dc25
#dc210
#dc240
dell1600n_net
dmc
epjitsu
#epson
epson2
fujitsu
#gphoto2
genesys
gt68xx
hp
hp3900
hpsj5s
hp3500
hp4200
hp5400
hp5590
hpljm1005
hs2p
ibm
kodak
kvs1025
kvs20xx
leo
lexmark
ma1509
magicolor
matsushita
microtek
microtek2
mustek
#mustek_pp
mustek_usb
mustek_usb2
nec
niash
#p5
pie
pint
pixma
plustek
#plustek_pp
#pnm
qcam
ricoh
rts8891
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
#st400
#stv680
tamarack
teco1
teco2
teco3
#test
u12
umax
#umax_pp
umax1220u
v4l
xerox_mfp
primascan

Any help appreciated, I'm just going round in circles ???
« Last Edit: February 24, 2013, 09:04:55 AM by gor-dee »

Offline gor-dee

  • Jr. Member
  • **
  • Posts: 13
Re: Can't set up scanner HP scanjet 5200c
« Reply #1 on: February 07, 2013, 06:29:11 AM »
P.S. HP Desktop with Intel core duo 6300 @ 1.86GHz

Latest version of PCLOS

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10697
  • MLUs Forever!
Re: Can't set up scanner HP scanjet 5200c
« Reply #2 on: February 07, 2013, 10:25:29 AM »
It appears there are two of you with similar problem .....  you on USB and the other on wireless .....  in both cases the scanner portion is not working, but the printer is.

http://www.pclinuxos.com/forum/index.php/topic,113105.msg965317.html
« Last Edit: February 07, 2013, 10:40:39 AM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline gor-dee

  • Jr. Member
  • **
  • Posts: 13
Re: Can't set up scanner HP scanjet 5200c
« Reply #3 on: February 07, 2013, 11:10:17 AM »
Hi Just 17,
Thanks for the reply but I don't think this is related.
Scanjet 5200C is an old flatbed stand alone scanner that uses sane "hp" backend (which is supposed to be fully supported). From my research into all this I believe HP all-in-ones use hpaio

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10697
  • MLUs Forever!
Re: Can't set up scanner HP scanjet 5200c
« Reply #4 on: February 07, 2013, 11:18:35 AM »
Oops!

Sorry  ;)

Check that

libsane-hpaio

is installed
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline gor-dee

  • Jr. Member
  • **
  • Posts: 13
Re: Can't set up scanner HP scanjet 5200c
« Reply #5 on: February 07, 2013, 05:28:43 PM »
Mine is the old Scanjet!  (I do have hpaio but this scanner doesn't use it, it uses "hp" backend)

Offline tele

  • Full Member
  • ***
  • Posts: 198
Re: Can't set up scanner HP scanjet 5200c
« Reply #6 on: February 07, 2013, 11:17:25 PM »
Quote
scanner HP scanjet 5200c


hplip   (  From web->hplipopensource, drivers printers HP for Linux  )
Quote
Sorry, HP Scanjet single function scanners are not supported by HPLIP. For possible Linux support, please visit: http://www.sane-project.org/

http://hplipopensource.com/hplip-web/supported_devices/index.html

Supported  scanners for Linux:
http://www.sane-project.org/sane-mfgs.html

Status:    HP scanjet 5200c    |   Complete  |  hp (1.06)   |   sane-hp

We have sane-backends 1.0.22-3pclos2011 , maybe we need compile new drivers ?

XSane - XSane is a graphical scanning frontend. It uses the SANE-library to talk to scanners.
Repo: 0.998-1pclos2011 --> Web page:  xsane-0.998.tar.gz  = OK
http://www.xsane.org/

Sane
Repo: sane-backends 1.0.22-3pclos2011   -->  Web page:  SANE-Backends-1.0.23 : 2012-08-19  =  ?
http://www.sane-project.org/

Sane hp-backend
27-Mar-2004: hp-backend V 1.06 released
Bugfix for USB-scanners on Linux 2.6.x. This fixes a problem where the scans with 2.6.x-kernels have been very slow.
The HP scanner backend of SANE is based on the newhp backend by Geoffrey T. Dairiki. It has been added to the SANE package in SANE V1.00.
http://www.kirchgessner.net/sane.html


Can you try debug this problem ?
Read SANE_DEBUG_DLL in ENVIRONMENT in this link.
http://www.sane-project.org/man/sane-dll.5.html


PS:
 Please add web-links with supported hardware to wiki. :-)
« Last Edit: February 08, 2013, 03:33:10 AM by tele »
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Offline gor-dee

  • Jr. Member
  • **
  • Posts: 13
Re: Can't set up scanner HP scanjet 5200c
« Reply #7 on: February 08, 2013, 12:02:26 PM »
I've just been trying to install this scanner on and old PC with XP with no success so I'm thinking this is a hardware fault, sorry!
I'll post again if I get anywhere.

Offline atolboo

  • Full Member
  • ***
  • Posts: 235
Re: Can't set up scanner HP scanjet 5200c
« Reply #8 on: February 08, 2013, 12:16:45 PM »
I have a HP 5200C scanner and will come back on this subject later this evening ;)

Offline atolboo

  • Full Member
  • ***
  • Posts: 235
Re: Can't set up scanner HP scanjet 5200c
« Reply #9 on: February 08, 2013, 12:55:00 PM »
I have a HP 5200C scanner and ...
I made a mistake :'( , mine is a HP5400C scanner and the 5400C is scanning without any problem with Xsane.
Quote
bash-4.1$ lsusb | grep ScanJet
Bus 003 Device 002: ID 03f0:1005 Hewlett-Packard ScanJet 5400c
« Last Edit: February 08, 2013, 01:09:42 PM by atolboo »

Offline gor-dee

  • Jr. Member
  • **
  • Posts: 13
Re: Can't set up scanner HP scanjet 5200c
« Reply #10 on: February 24, 2013, 09:03:38 AM »
Hi, thanks to everyone who has tried to help but this was definitely a hardware problem.

I did find that these scanners (and also 5200c, 6200c, 6250c, 6300c, 6350c, or 6390c series) can suffer from a firmware problem that effects the USB bus.
see:

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=bus05618

However you will need to use Windows XP or older in order to re-flash the firmware and in my case, despite spending a long and frustrating afternoon on this it still didn't work. The following did work though........

1. Put a search in ebay for scanners advertised locally
2. Check any hits against Sane database
3. Bid on Epson 1660 photo Scanner
4. Buy Epson 1660 photo Scanner for 99p
5. Walk round the corner and collect scanner
6. Plug it in
 ;D