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.
IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8
$479.96
IBM 8247-22L S822L 2 CPUs 256GB 12x Drives SFF Power8 Linux Server
$749.00
Red Hat Enterprise Linux 5 Server - New and Sealed
$19.99
Asus ESC4000 G3 Barebones 0GB HDD Linux
$200.00
IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E
$799.96
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux
$880.25
IBM Power 9 S922 8-Core 3.4-3.9Ghz 128Gb DDR4 2U Linux Server - 9009-22a
$3439.96
IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE
$199.87
POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives
$179.99