View previous topic :: View next topic |
Author |
Message |
snowbum Tux's lil' helper


Joined: 14 Mar 2004 Posts: 127 Location: peace
|
Posted: Sat Jul 10, 2004 2:49 am Post subject: USB printer no output |
|
|
I followed the printing guide on gentoo.org
I get this in /var/log/messages
Code: |
Jul 9 16:36:22 server usb 1-1: new full speed USB device using address 3
Jul 9 16:36:22 server drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x
0005
|
I try:
Code: |
echo "hello" > /dev/usb/lp0
|
and nothing happens.
I have an Epson Stylus C40UX - a pretty basic printer, and it work under windows.
Any ideas? Thanks. _________________ The sun shall be turned to darkness and the moon into blood... |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Sat Jul 10, 2004 11:22 am Post subject: |
|
|
snowbum,
Ignore this test. It only works with printers that can take in ASCII text and render it to the paper. First, a lot of printers want a line feed (at least) before putting ink on paper. cat a file that has a few lines of text .e.g. /etc/fstab.
Worse, more and more printers cannot cope with ASCII input and need the host PC to do the ASCII to raster image conversion. They can only print the page image. They are like winmodems, a large chunk of the processing is moved to the host.
The C40 works - just contine with the install. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
snowbum Tux's lil' helper


Joined: 14 Mar 2004 Posts: 127 Location: peace
|
Posted: Sat Jul 10, 2004 4:39 pm Post subject: |
|
|
I did the cat test it mentioned *with* line feeds and that failed. I posted that because I thought if that didn't work surely CUPS would not work. Indeed CUPS is installed and working. I accepts jobs properly. I use the gimp-print driver, which is supposedly the recommended one. The printer won't print. If it was a parallel printer, I start debug about with the port, but it's USB. Do you think I should have compiled the USB and USB printer drivers and mudules? I built the kernel before thinking of setting the that server as a print server. Though I did compile in USB and USB printing and so left it as such. Do you think it would make a difference if they were modules? It looks like they load correctly. I don't understand what it could be. Any ideas where I could look for error messages or how to debug this?
BTW, the USB interface is the old USB 1.1 (full speed? *not* 480mbps). I don't have high speed USB compiled into the kernel.
Many many thanks. _________________ The sun shall be turned to darkness and the moon into blood... |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Sat Jul 10, 2004 4:56 pm Post subject: |
|
|
snowbum,
Look in /proc/bus/usb/devices for your printer. if you want a pretty tree view.
If you don't have a /proc/bus/usb/devices file, or its empty, please post just the USB section of your kernel .config file.
Modules make debugging easier but built in works too. You do need the right bits and pieces in your kerenl. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
snowbum Tux's lil' helper


Joined: 14 Mar 2004 Posts: 127 Location: peace
|
Posted: Sat Jul 10, 2004 6:19 pm Post subject: |
|
|
Yes it does show up in /proc/bus/usb/devices like this:
Code: |
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.6 uhci_hcd
S: Product=Intel Corp. 82371AB/EB/MB PIIX4 USB
S: SerialNumber=0000:00:07.2
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04b8 ProdID=0005 Rev= 1.00
S: Manufacturer=EPSON
S: Product=USB Printer
S: SerialNumber=NY0220111090437130
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c004 Rev= 1.20
S: Manufacturer=Logitech
S: Product=USB-PS/2 Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 50mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=hid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
|
The USB section of my .config:
Code: |
#
# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y
#
# USB Device Class drivers
#
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_HP8200e is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set
#
# USB Multimedia devices
#
# CONFIG_USB_DABUSB is not set
#
# Video4Linux support is needed for USB Multimedia device support
#
#
# USB Network adaptors
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
#
# USB port drivers
#
# CONFIG_USB_USS720 is not set
#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_TIGL is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_TEST is not set
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
|
This is a server for my LAN, so the HID and such are not necessary. _________________ The sun shall be turned to darkness and the moon into blood... |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Sat Jul 10, 2004 6:43 pm Post subject: |
|
|
snowbum,
That all looks good. The other favoriate thing to go wrong is the /dev location when you set up the print queue at step Quote: | Code Listing 4.3: Installing a PPD driver | in the printing howto.
Look in /etc/cups/printers.conf I have
Code: | DeviceURI usb://HP/DeskJet%20960C | which works (%20= space) Other things that work are /dev/usb/lp0 but not /dev/usblp0 (missing slash)
what happens if you change the DeviceURI line to Code: | DeviceURI usb:/dev/usb/lp0 |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
|