View previous topic :: View next topic |
Author |
Message |
kipper Tux's lil' helper
Joined: 20 Apr 2002 Posts: 112
|
Posted: Wed May 14, 2003 10:03 pm Post subject: cat test.txt > /dev/usb/lp0 fails.....need help |
|
|
I think the subject says it all. I have a canon S100SP usb printer. I have compiled the usb printer support as a module ( printer.o). My usb system is working as I have a digital camera and usbmouse both working without issue. When I unplug and plug the printer back in, dmesg shows the following
Quote: | usb.c: USB disconnect on device 00:11.2-2 address 4
printer.c: usblp0: removed
hub.c: new USB device 00:11.2-2, assigned address 5
printer.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1065
|
However, if I type
#cat test.txt > /dev/usb/lp0 nothing happens, and yes, test.txt does exist
It looks like the printer is not being initialized or "woken up" from sleep mode.
Any help will be appreciated.
Thanks,
kipper |
|
Back to top |
|
|
Supermule Guru
Joined: 05 Mar 2003 Posts: 510 Location: /denmark/fyn
|
Posted: Wed May 14, 2003 10:13 pm Post subject: |
|
|
Just making sure - U know "cat <etc>" doesnt send linefeed to the printer right? _________________ regards,
Supermule |
|
Back to top |
|
|
kipper Tux's lil' helper
Joined: 20 Apr 2002 Posts: 112
|
Posted: Wed May 14, 2003 11:00 pm Post subject: |
|
|
I was trying the cat command since it was suggested in the gentoo printing guide.
Quote: | # touch test.txt
# echo "Hello World" > test.txt
# cat test.txt > /dev/usb/lp0
Alternatively, for parallel port printers:
# cat test.txt > /dev/lp0 |
I'll try to configure it in CUPS and see what happens |
|
Back to top |
|
|
kipper Tux's lil' helper
Joined: 20 Apr 2002 Posts: 112
|
Posted: Wed May 14, 2003 11:17 pm Post subject: |
|
|
Once I configured cups correctly, it works beautifully.
Thanx. |
|
Back to top |
|
|
Supermule Guru
Joined: 05 Mar 2003 Posts: 510 Location: /denmark/fyn
|
Posted: Thu May 15, 2003 5:25 am Post subject: |
|
|
Glad to help....
But you're right about the manual...it should mention that the printer awaits the linefeed before actually printing the file _________________ regards,
Supermule |
|
Back to top |
|
|
ventricle Guru
Joined: 04 Apr 2003 Posts: 305 Location: UK/Australia
|
Posted: Sat May 17, 2003 11:35 pm Post subject: |
|
|
Code: | usb.c: USB disconnect on device 00:02.1-3 address 2
printer.c: usblp0: removed
hub.c: new USB device 00:02.1-3, assigned address 3
printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
|
I get this when I unplug and replug it in, but I can't get the printer to put out a page from either cat > .... or via the cups web interface.
Is there something I need to do that I might be missing? It says this in cups: Code: | Description: Epson
Location: Home
Printer State: idle, accepting jobs.
Device URI: usb:/dev/usb/lp0 |
_________________ [LRU] |
|
Back to top |
|
|
ventricle Guru
Joined: 04 Apr 2003 Posts: 305 Location: UK/Australia
|
Posted: Sat May 17, 2003 11:41 pm Post subject: |
|
|
Got it working, had to mess around with webmin and cups interface to get the thing I wanted _________________ [LRU] |
|
Back to top |
|
|
|