Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cat test.txt > /dev/usb/lp0 fails.....need help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kipper
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 112

PostPosted: Wed May 14, 2003 10:03 pm    Post subject: cat test.txt > /dev/usb/lp0 fails.....need help Reply with quote

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
View user's profile Send private message
Supermule
Guru
Guru


Joined: 05 Mar 2003
Posts: 510
Location: /denmark/fyn

PostPosted: Wed May 14, 2003 10:13 pm    Post subject: Reply with quote

Just making sure :) - U know "cat <etc>" doesnt send linefeed to the printer right?
_________________
regards,
Supermule
Back to top
View user's profile Send private message
kipper
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 112

PostPosted: Wed May 14, 2003 11:00 pm    Post subject: Reply with quote

I was trying the cat command since it was suggested in the gentoo printing guide. :oops:
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
View user's profile Send private message
kipper
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 112

PostPosted: Wed May 14, 2003 11:17 pm    Post subject: Reply with quote

Once I configured cups correctly, it works beautifully.
Thanx.
Back to top
View user's profile Send private message
Supermule
Guru
Guru


Joined: 05 Mar 2003
Posts: 510
Location: /denmark/fyn

PostPosted: Thu May 15, 2003 5:25 am    Post subject: Reply with quote

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
View user's profile Send private message
ventricle
Guru
Guru


Joined: 04 Apr 2003
Posts: 305
Location: UK/Australia

PostPosted: Sat May 17, 2003 11:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
ventricle
Guru
Guru


Joined: 04 Apr 2003
Posts: 305
Location: UK/Australia

PostPosted: Sat May 17, 2003 11:41 pm    Post subject: Reply with quote

Got it working, had to mess around with webmin and cups interface to get the thing I wanted :)
_________________
[LRU]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum