LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-24-2003, 09:35 AM   #1
Guust
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
Setting up Hp 5470c scanner with sane


Hi everyone,

I need some help setting up a scanner (HP scanjet 5470c USB interface) on my system (Mandrake 9.1 2.4.21-0.13mdk).

I have been following directions from the linuxformat magazine (LFX15 June2001) on setting up scanners using sane.

1) I downloaded and compiled/installed the sane backends and frontends (sane backends-1.0.12: hp5470c is supported as an alpha driver). OK so far :-)
2) then I tried scanimage --list devices, and got the following message:

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).

3) I tried sane-find-scanner:

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

# No USB scanners found. If you expected something different, make sure that
# you have loaded a driver for your USB host controller and have installed a
# kernel scanner module.

# Scanners connected to the parallel port or other proprietary ports can't be
# detected by this program.

Oops, what now.

4) My scanner is detected in /proc/bus/usb/devices as:
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=03f0 ProdID=1105 Rev= 0.00
S: Manufacturer=Hewlett-Packard
S: Product=HP Scanjet 5400C Series
S: SerialNumber=CN18D1I18ZBD
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 48mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=10(unk. ) Sub=01 Prot=00 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 1 Ivl=10ms

5) and I have usb support configured as a kernel module:

lsmod

...
hid 20900 0 (unused)
input 5664 0 [keybdev mousedev hid]
usb-uhci 24652 0 (unused)
usbcore 72992 1 [hid usb-uhci]
rtc 8060 0 (autoclean)

6) I found a USB-devices howto and made a device scanner0:

mknod /dev/usb/scanner0 c 180 48
chmod a+rw /dev/usb/scanner0

7) I checked to make sure I had libusb on my system:
rpm -qa | grep libusb
libusb0.1_4-0.1.6a-2mdk

but all to no result.

Can someone help me to check if I have installed a kernel scanner module? I don't know how to do that :-(.

Any further help would be highly appreciated....

Just let me know if you need more info on this. This scanner is the last device I have to get working on Linux. Constantly rebooting in Windows isn't much fun :-P

some more info:

lsusb
Invalid product/subclass spec at line 2650
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 1063:1555 Motorola Electronics Taiwan Ltd. [hex] MC141555 Hub
Bus 001 Device 004: ID 043e:4a4d LG Electronics USA Inc. Flatron 915FT Plus Monitor
Bus 001 Device 003: ID 03f0:1105 Hewlett-Packard ScanJet 5470c

dmesg
...
Real Time Clock Driver v1.10e
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 15:32:56 Mar 14 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 5 for device 00:07.2
PCI: Sharing IRQ 5 with 00:07.3
PCI: Sharing IRQ 5 with 00:09.0
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 5 for device 00:07.3
PCI: Sharing IRQ 5 with 00:07.2
PCI: Sharing IRQ 5 with 00:09.0
usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usbdevfs: remount parameter error
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,9), internal journal
Adding Swap: 586332k swap-space (priority -1)
hub.c: new USB device 00:07.2-1, assigned address 2
hub.c: USB hub found
hub.c: 5 ports detected
hub.c: new USB device 00:07.2-2, assigned address 3
usb.c: USB device 3 (vend/prod 0x3f0/0x1105) is not claimed by any active driver
.
hub.c: new USB device 00:07.2-1.5, assigned address 4
usb.c: USB device 4 (vend/prod 0x43e/0x4a4d) is not claimed by any active driver
.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
usb-uhci.c: interrupt, status 3, frame# 1435
hiddev0: USB HID v1.00 Pointer [LG Elec?ronics Inc. USB Mon?tor] on usb1:4.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
SCSI subsystem driver Revision: 1.00
...


Thanks in advance,

Guust

Last edited by Guust; 08-24-2003 at 10:49 AM.
 
Old 08-24-2003, 12:26 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Hmm... if the device is supported, it might take loading another USB module for it:

/sbin/modprobe scanner

Yeah, no kidding, there's one called scanner....

Cheers,

Finegan
 
Old 08-24-2003, 12:44 PM   #3
Guust
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
Hi Finegan,

I tried your advice. Scanner gets loaded (it shows up in lsmod) but sane-find-scanner gives the same output, no scanner found :-(

Do you have some more ideas?

thanks,

Guust
 
Old 08-24-2003, 12:51 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Hmm... sometimes USB modules will load without kicking errors, also, Sane likes to comment out the functionality of alpha or beta gear by default. So, check "dmesg" and post back anything useful from the module load. Then check through, yep... check this out, find your scanner .conf files... since you did a hand install, probably all in /usr/local/saned/ and take a look at the file hp.conf:

Code:
bob@thescreamingbrain:/usr/etc/sane.d$ more hp.conf
scsi HP
/dev/scanner
# uncomment this if you're using a usb scanner
# /dev/usb/scanner0
#   option connect-device
bob@thescreamingbrain:/usr/etc/sane.d$
So, you'll want to comment those in and then try to re-scan for scanners.

Cheers,

Finegan
 
Old 08-24-2003, 01:11 PM   #5
Guust
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
Finegan,

the scanner module seems to have loaded without error (from dmesg):
usb.c: registered new driver usbscanner
scanner.c: 0.4.10:USB Scanner Driver

I have been making changes in hp5400.conf. this is how it was:
# hp5400.conf
# See man sane-hp5400 for a description.
#
# HP 5400C
usb 0x03F0 0x1005
#
# HP 5470C
usb 0x03F0 0x1105
#
# Device filename to use for scanner access
#
# Uncomment the following line if autodetection fails
#
/dev/usb/scanner0

I added the line:
option connect-device

and restarted saned. No change, it still didn't find the scanner. The configuration file is in /usr/local/src/sane-backends-1.0.12/backend.

Is this normal? I compiled and installed from this directory and it got installed in /usr/local/lib/sane.

Also, I don't have a device /dev/scanner. Should this be a symlink to /dev/usb/scanner0? Or should I make the changes to hp.conf?

thanks,

Guust
 
Old 08-24-2003, 01:40 PM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Found another one, maybe this is it, although the info in the kernel config says hp53xx, it might also cover the 5400s:

/sbin/modprobe hpusbscsi

I'll check the Sane docs, might be a bit.

Cheers,

Finegan
 
Old 08-24-2003, 02:00 PM   #7
Guust
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
No luck there. It gets loaded fine, but still no scannersf found. I'll keep looking if I can find something here. Thanks for the help so far.

Guust
 
Old 08-24-2003, 03:33 PM   #8
Guust
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
Success at last.

What was missing...

1) added a line in /etc/fstab
none /proc/bus/usb usbfs defaults 0 0

2) did mount -r to mount this.

3) removed the scanner module with rmmod scanner

4) reloaded the scanner module as
modprobe scanner vendor=0x03f0 product=0x1105

5) sane-find-scanner reports:

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

found USB scanner (vendor=0x03f0, product=0x1105) at /dev/usb/scanner0
found USB scanner (vendor=0x03f0, product=0x1105) at /dev/usbscanner
# Your USB scanner was detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Scanners connected to the parallel port or other proprietary ports can't be
# detected by this program.

and I just finished my first scan whith xscanimage :-)

I finally got it working. I think I can only scan as root now, but I'll find a way around that.

Thanks for all the help,

Guust
 
Old 08-24-2003, 04:20 PM   #9
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Look into running saned in daemon mode, accessible from localhost so that joe user can get to it. It'll fire up saned on the fly with a request from xsane, it'll involve changing inetd.conf a little and making certain saned.conf (same place as hp.conf) has 127.0.0.1 in it, or the IP of the machine itself... actually, its all under the manpage for saned and I'm doing a bad job of regurgitating that.

Cheers,

Finegan
 
Old 08-24-2003, 04:23 PM   #10
Guust
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
I'll have a look at it in the morning. Thanks for the tip.

Guust
 
Old 10-30-2003, 02:53 AM   #11
dao
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
check /usr/src/linux-2.**/driver/usb/scanner.h

have a list about "pid vid"

if no you must add "pid vid" ,then compile kernel
 
Old 12-06-2003, 04:20 AM   #12
lynxgogo
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux SuSE 9.3 Pro 64-bit
Posts: 58

Rep: Reputation: 15
Problem with installing hp5470c redhat

Dear linux friends,

I've tried to install for some time now to install my hp5470c usb scanner under redhat 9.0 with sane.
I installed backends 1.0.13 (but maybe in the wrong place (is that possible?) tarball
X-sane 0.92 rpm
Can you install them together, i.e. rpm and tar ball?

In any case my frontend can't still my scanner. Should i install from scratch? And what would be the best way to remove it all?

If i try to fing the config of the hp5470c i can't reach further than this:

"[root@.... sane.d]# cat hp.conf
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"


greetings
Marcel van der Reijken (Netherlands)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing sane scanner software JeTa SUSE / openSUSE 3 03-29-2006 01:25 AM
sane /dev/scanner? jeru Linux - Hardware 3 10-22-2004 09:28 PM
sane over network - can't find scanner Smerk Linux - Networking 1 07-18-2004 03:56 AM
epson scanner drivers -not sane rockman Linux - Hardware 2 02-20-2004 11:53 PM
Help with SANE, parallel scanner sb73542 Linux - Software 0 07-31-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration