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!Originally Posted by tsg
su
mcedit /path/to/hp.conf
Gluck!
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!
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!Originally Posted by tsg
su
mcedit /path/to/hp.conf
Gluck!
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
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!
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???![]()
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)
Code:dmesg | grep usb
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.
Have you tried:
your vendor =03f0Code:insmod scanner.o vendor=0xXXXX product=0xYYYY
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
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?
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 ofIf your scanner doesn't show up on usbview it shouldn't here.Code:lsusb
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.

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$174.99
HP ZBook Firefly 14" G8 Mobile Workstation i5 11th Gen 16GB RAM 256 GB SSD No AC
$184.99
SGIN 17.3" Laptop Intel Quad-Core Up to 2.4 GHZ 8GB RAM 256GB SSD HD
$229.99
Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS
$259.98
Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011
$30.00
AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused
$395.95
AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY
$39.99
AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor
$245.99
Dell Optiplex 7050 Micro Core i5-7500 8 GB RAM 256GB SSD Microsoft Windows 11
$89.99
Home Assistant Server | 8GB RAM | 128GB SSD | Intel i5 Quad-Core | Dell OptiPlex
$159.99