PDA

View Full Version : Help with HP 4100c scanner?



tsg
07-27-2004, 04:00 AM
I have a HP 4100c scanner attached via USB to my system -- Kooka doesn't think there is a scanner attached. It seems like I should need to modify my hp.conf file, but it is a system file that can't be edited. What do I do? Any advice would be apreachiated.

Here is info on my system from running lspci:

0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
Flags: bus master, medium devsel, latency 32
Memory at d0000000 (32-bit, prefetchable) [size=64M]
Capabilities: <available only to root>

0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: d4000000-d7ffffff
Prefetchable memory behind bridge: d8000000-d9ffffff

0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0

0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 32
I/O ports at f000 [size=16]

0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at e000 [size=32]

0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
Flags: medium devsel, IRQ 9

0000:00:09.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
Subsystem: Linksys: Unknown device 0570
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at e400 [size=256]
Memory at db000000 (32-bit, non-prefetchable) [size=1K]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: <available only to root>

0000:00:0d.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V, AudioPCI128
Flags: bus master, slow devsel, latency 32, IRQ 11
I/O ports at e800 [size=64]
Capabilities: <availabl0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
Flags: bus master, medium devsel, latency 32
Memory at d0000000 (32-bit, prefetchable) [size=64M]
Capabilities: <available only to root>

0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: d4000000-d7ffffff
Prefetchable memory behind bridge: d8000000-d9ffffff

0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0

0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 32
I/O ports at f000 [size=16]

0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at e000 [size=32]

0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
Flags: medium devsel, IRQ 9

0000:00:09.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
Subsystem: Linksys: Unknown device 0570
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at e400 [size=256]
Memory at db000000 (32-bit, non-prefetchable) [size=1K]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: <available only to root>

0000:00:0d.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V, AudioPCI128
Flags: bus master, slow devsel, latency 32, IRQ 11
I/O ports at e800 [size=64]
Capabilities: <available only to root>

0000:01:00.0 VGA compatible controller: 3Dfx Interactive, Inc. Voodoo Banshee (rev 03) (prog-if 00 [VGA])
Subsystem: Creative Labs 3D Blaster Banshee VE
Flags: 66MHz, fast devsel, IRQ 12
Memory at d4000000 (32-bit, non-prefetchable) [size=32M]
Memory at d8000000 (32-bit, prefetchable) [size=32M]
I/O ports at d000 [size=256]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: <available only to root>
e only to root>

0000:01:00.0 VGA compatible controller: 3Dfx Interactive, Inc. Voodoo Banshee (rev 03) (prog-if 00 [VGA])
Subsystem: Creative Labs 3D Blaster Banshee VE
Flags: 66MHz, fast devsel, IRQ 12
Memory at d4000000 (32-bit, non-prefetchable) [size=32M]
Memory at d8000000 (32-bit, prefetchable) [size=32M]
I/O ports at d000 [size=256]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: <available only to root>


Thank you!

mzilikazi
07-28-2004, 08:57 PM
I have a HP 4100c scanner attached via USB to my system -- Kooka doesn't think there is a scanner attached. It seems like I should need to modify my hp.conf file, but it is a system file that can't be edited. What do I do?

I'm not even sure what Kooka is but there is no such thing as a file that can't be edited (well in Linux anyway). You just need root!

su
mcedit /path/to/hp.conf

Gluck!

rusty
07-29-2004, 01:04 PM
Does the OS see the scanner? Type usbview from a command line and see if your scanner appears.

Are you running from cd or from hard drive install.? If you are hd installed, you might want to check out xsane,another scanning package available through apt get.


This link has some information about usb and linux that might help:

http://www.linux-usb.org/USB-guide/x291.htm

tsg
07-30-2004, 06:27 AM
Evan as running as SU, I still can't modify the file -- I think its because the files are actually on the CD, which of course is not editable. I don't think the scanner is being recognized, but I'll try running usbview and see what is says. Thanks!

tsg
07-31-2004, 03:00 AM
I tried usbview and it only knows about my mouse, but not my scanner.

I tried copying the all the sane config files to a floppy and editing them there. That was sucessful, but I don't know how to tell the system to read the usb configuration from the floppy. I tried stuff like

scanadf --device-name hp:/mnt/floppy/sane.d

but it complained about invalid arguments.

Anyone have any more suggestions??? :?:

rusty
07-31-2004, 05:12 AM
I think what's important here is that usbview does not detect your scanner. If you could, give a more complete description of your hardware, motherboard, bios etc., and which version of knoppix in use.

Couple questions:

Does your scanner work under windows?

Can you post the output from (a root shell)


dmesg | grep usb

tsg
07-31-2004, 04:37 PM
My output from dmesg | grep usb is:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 19:48:59 Apr 17 2004
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xe000, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver usb-storage
usb.c: USB device 2 (vend/prod 0x45e/0x40) is not claimed by any active driver.
usbdevfs: remount parameter error
usb.c: registered new driver hiddev
usb.c: registered new driver hid
usb-uhci.c: interrupt, status 3, frame# 1468
input: USB HID v1.00 Mouse [Microsoft Microsoft Wheel Mouse OpticalŪ] on usb1:2 .0

So it seems to me it knows about the MS mouse, but not the scanner. I've tried starting the system with the scanner attached as well as starting the system and plugging in the scanner after with no different results.

My system is a celeron 400 with 128mb ram with a ZM6mb and a Creative Labs Banshee video. Its got a CD and a CD-RW.

I'm pretty sure the scanner does actually work because it did previously when I was running Windows 2000 -- its not supported under XP and I was hoping that Knoppix would be a good way to get use of it again while learning about Linux.

I appreachiate all the suggestions.

rusty
07-31-2004, 08:15 PM
Have you tried:


insmod scanner.o vendor=0xXXXX product=0xYYYY

your vendor =03f0
your product=0101

From: http://www.linux-usb.org/usb.id

Finding the scanner.o module might be tricky, mine is located at :

/lib/modules/2.4.22-xfs/kernel/drivers/usb on my hard drive installaton.

HTH

tsg
08-01-2004, 07:17 PM
OK -- so I made a change to my system and moved my ms to the serial port, so now the only usb device I have attached is my scanner

First I ran:
insmod /KNOPPIX/lib/modules/2.4.26/kernel/drivers/usb/scanner.o vendor=0x03F0 product=0x0101
which appeared to run successfully (well, at least it didn't complain)

then I ran:
dmesg | grep usb

which returned:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 19:48:59 Apr 17 2004
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xe000, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver usb-storage
usbdevfs: remount parameter error
usb.c: registered new driver usbscanner

Which appears to now recognise a usb scanner (but has a line about remount parameter error)

However, when I run:
scanadf --L
it reports:
scanadf: no SANE devices found

running usbview does not display the new device either.

Thank you for your help. Are there any other suggestions or am I at a dead end?

rusty
08-02-2004, 01:32 AM
Hmm, I have this nagging feeling that this is a cabling issue or something like that. Here's a couple of things:

Whats the output of
lsusb If your scanner doesn't show up on usbview it shouldn't here.

Also, try unplugging the power from the scanner and reconnecting after everything's booted up. I know this sounds lame. See if your mobo beeps when you reconnect.

I may have missed it, but what version of knoppix are you using? If you have the luxury of a high speed connection you might want to see if a different distro works better. Sometimes the usb software can make a difference (usbmgr vs. hotplug) . The 2.6 kernel is sposed to have better usb support as well.

tsg
08-02-2004, 05:58 AM
You may be on the right track -- maybe there is a problem with the cable or with the scanner itself.

I unplugged and unattached the scanner prior to boot. Then, after starting Knoppix I plugged the scanner in -- there was no resulting beep or noise of any kind. :cry: Then I ran insmod, but still received the same responses from usbview, scanadf, and even with lsusb.

I'm running Knoppix 3.4, which as far as I know is the latest version.

I'm starting to suspect that you may be right about it being a hardware problem, rather than a Knoppix problem....

rusty
08-02-2004, 01:45 PM
Does XP see the scanner from the control panel - system- devices? Even if it isn't sipported it should show up on the bus.
And check your BIOS settings to see if there are USB settings that might be affecting things.

Try booting knoppix with some cheatcodes noapci etc. see if something's getting in the way.

If your version supports it try booting with the 2.4 kernel, at he boot prompt type knoppix24...

Finally, take the thing to a different pc and see if it works.