[cups.general] "USB port busy; will retry in 30 seconds..."
Hugh Esco
he at reclaimedcomputers.ca
Tue Jul 25 00:30:55 PDT 2006
I finally got around to restoring the printer today on my home network,
or at least trying to.
I used localhost:631 to set up a Samsung ML-1520 and sent a test page to
the printer. It came out fine.
Then I sent a real job there from a cli with lp file.ps. It fed out a
sheet of paper, but the content was run together and unreadable.
But before I went back to grab the print job, I also sent a couple of
other jobs to the printer.
With ten tests so far (real files from the command line and addition
test pages from the port 631 browser interface), only two sheets have
fed from the printer.
Any clues would be appreciated.
-- Hugh
uname -a
Linux rck-ltsp 2.6.8-3-686 #1 Sat Jul 15 10:32:25 UTC 2006 i686
GNU/Linux
a Debian stock kernel with:
lsmod | grep lp
usblp 13088 1
lp 11176 0
parport 41800 2 lp,parport_pc
usbcore 119044 5 usblp,uhci_hcd
sudo cat /etc/cups/printers.conf | grep -v ^#
Password:
<DefaultPrinter Samsung_1520>
Info postscript laser printer
Location Server Closet
DeviceURI usb:/dev/usb/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
sudo cat /etc/cups/cupsd.conf | grep -v ^# | grep -v '^ *$'
DefaultCharset notused
LogLevel debug
Printcap /var/run/cups/printcap
Port 631
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /jobs>
AuthType Basic
AuthClass User
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
sudo lsusb -vvv
Bus 001 Device 002: ID 04e8:3256 Samsung Electronics Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x04e8 Samsung Electronics Co., Ltd
idProduct 0x3256
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 7 Printer
bInterfaceSubClass 1 Printer
bInterfaceProtocol 2 Bidirectional
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3
iProduct 2
iSerial 1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x08
PortPwrCtrlMask 0x68
Hub Port Status:
Port 1: 0000.0103 power enable connect
Port 2: 0000.0100 power
The error log does not list the printer at /dev/usb/lp0:
D [24/Jul/2006:21:57:05 -0700] LoadDevices: Added device
"usb:/dev/usb/lp0"...
D [24/Jul/2006:21:57:05 -0700] LoadDevices: Added device
"usb:/dev/usb/lp1"...
Here is one of the jobs it processed:
grep 'Job 4' /var/log/cups/error_log
I [24/Jul/2006:16:41:54 -0700] Job 4 queued on 'Samsung_1520' by
'hesco'.
D [24/Jul/2006:22:32:21 -0700] [Job 4] perl: warning: Setting locale
failed.
D [24/Jul/2006:22:32:21 -0700] [Job 4] perl: warning: Please check that
your locale settings:
D [24/Jul/2006:22:32:21 -0700] [Job 4] LANGUAGE = (unset),
D [24/Jul/2006:22:32:21 -0700] [Job 4] LC_ALL = (unset),
D [24/Jul/2006:22:32:21 -0700] [Job 4] LANG = "en"
D [24/Jul/2006:22:32:21 -0700] [Job 4] are supported and installed on
your system.
D [24/Jul/2006:22:32:21 -0700] [Job 4] perl: warning: Falling back to
the standard locale ("C").
D [24/Jul/2006:22:32:21 -0700] [Job 4] Page = 595x842; 0,0 to 595,842
D [24/Jul/2006:22:32:21 -0700] [Job 4] slowcollate=0, slowduplex=0,
sloworder=0
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%BoundingBox: 0 0 612 792
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%Creator: Mozilla PostScript
module (rv:1.7.8/2006050310)
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%DocumentData: Clean8Bit
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%DocumentPaperSizes: Letter
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%Orientation: Portrait
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%Pages: (atend)
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%PageOrder: Ascend
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%EndComments
D [24/Jul/2006:22:32:21 -0700] [Job 4] 0 %%BeginProlog
D [24/Jul/2006:22:32:22 -0700] [Job 4] foomatic-rip version $Revision:
3.43.2.9 $ running...
D [24/Jul/2006:22:32:22 -0700] [Job 4] Parsing PPD file ...
D [24/Jul/2006:22:32:22 -0700] [Job 4] *cupsFilter:
"application/vnd.cups-postscript 0 foomatic-rip"
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option ColorSpace
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PageSize
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PageRegion
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option ImageableArea
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PaperDimension
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option Manualfeed
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option MediaType
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option Resolution
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option Economode
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option RET
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option Copies
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option Density
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option AllowReprint
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option Altitude
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option JamRecovery
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PageTimeout
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PowerSaveTime
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PowerSaving
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PageSizeJCL
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option PageSizePS
D [24/Jul/2006:22:32:22 -0700] [Job 4] Added option Font
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] Parameter Summary
D [24/Jul/2006:22:32:22 -0700] [Job 4] -----------------
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] Spooler: cups
D [24/Jul/2006:22:32:22 -0700] [Job 4] Printer: Samsung_1520
D [24/Jul/2006:22:32:22 -0700] [Job 4] PPD file:
/etc/cups/ppd/Samsung_1520.ppd
D [24/Jul/2006:22:32:22 -0700] [Job 4] Printer model: Samsung ML-1510
Foomatic/gdi (recommended)
D [24/Jul/2006:22:32:22 -0700] [Job 4] Job title: stdin
D [24/Jul/2006:22:32:22 -0700] [Job 4] File(s) to be printed:
D [24/Jul/2006:22:32:22 -0700] [Job 4] <STDIN>
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4]
================================================
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] File: <STDIN>
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4]
================================================
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] Reading PostScript input ...
D [24/Jul/2006:22:32:22 -0700] [Job 4] --> This document is
DSC-conforming!
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] -----------
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginProlog
D [24/Jul/2006:22:32:22 -0700] [Job 4] 0 %%EndProlog
D [24/Jul/2006:22:32:22 -0700] [Job 4] 0 %%Page: 1 1
D [24/Jul/2006:22:32:22 -0700] [Job 4] 0 %%Page: 1 1
D [24/Jul/2006:22:32:22 -0700] [Job 4] pw = 595.0, pl = 842.0
D [24/Jul/2006:22:32:22 -0700] [Job 4] PageLeft = 0.0, PageRight = 595.0
D [24/Jul/2006:22:32:22 -0700] [Job 4] PageTop = 842.0, PageBottom = 0.0
D [24/Jul/2006:22:32:22 -0700] [Job 4] PageWidth = 595.0, PageLength =
842.0
D [24/Jul/2006:22:32:22 -0700] [Job 4] 0 %%BeginPageSetup
D [24/Jul/2006:22:32:22 -0700] [Job 4] 0 %%EndPageSetup
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%EndProlog
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] -----------
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginSetup
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*PageRegion A4
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PageRegion=A4 --> Option
will be set by PostScript interpreter
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: PageSize=A4
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PageSize=A4 --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*Manualfeed Off
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Manualfeed=Off -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: Manualfeed=Off
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Manualfeed=Off -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature: *Economode
Off
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Economode=Off --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: Economode=Off
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Economode=Off --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*Resolution 600x600dpi
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Resolution=600x600dpi -->
Option will be set by PostScript interpreter
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature: *MediaType
Normal
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: MediaType=Normal -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: MediaType=Normal
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: MediaType=Normal -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature: *Density 3
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Density=3 --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: Density=3
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Density=3 --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*JamRecovery Yes
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: JamRecovery=Yes -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: JamRecovery=Yes
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: JamRecovery=Yes -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*AllowReprint Yes
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: AllowReprint=Yes -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: AllowReprint=Yes
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: AllowReprint=Yes -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature: *Altitude
Low
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Altitude=Low --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: Altitude=Low
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Altitude=Low --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature: *Copies 1
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Copies=1 --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: Copies=1
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: Copies=1 --> Setting
option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*PageTimeout 15
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PageTimeout=15 -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: PageTimeout=15
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PageTimeout=15 -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*PowerSaving On
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PowerSaving=On -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: PowerSaving=On
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PowerSaving=On -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginFeature:
*PowerSaveTime 5
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PowerSaveTime=5 -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%
FoomaticRIPOptionSetting: PowerSaveTime=5
D [24/Jul/2006:22:32:22 -0700] [Job 4] Option: PowerSaveTime=5 -->
Setting option
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%EndSetup
D [24/Jul/2006:22:32:22 -0700] [Job 4] Inserting PostScript code for
CUPS' page accounting
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] -----------
D [24/Jul/2006:22:32:22 -0700] [Job 4] New page: 1 1
D [24/Jul/2006:22:32:22 -0700] [Job 4] Inserting option code into
"PageSetup" section.
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%BeginPageSetup
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found: %%EndPageSetup
D [24/Jul/2006:22:32:22 -0700] [Job 4] End of page header
D [24/Jul/2006:22:32:22 -0700] [Job 4] Stopping search for page header
options
D [24/Jul/2006:22:32:22 -0700] [Job 4] Found:
D [24/Jul/2006:22:32:22 -0700] [Job 4] gsave
D [24/Jul/2006:22:32:22 -0700] [Job 4] --> Output goes directly to the
renderer now.
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] Starting renderer
D [24/Jul/2006:22:32:22 -0700] [Job 4] JCL: <job data>
D [24/Jul/2006:22:32:22 -0700] [Job 4]
D [24/Jul/2006:22:32:22 -0700] [Job 4] renderer PID kid4=9500
D [24/Jul/2006:22:32:22 -0700] [Job 4] renderer command: gs -q -dBATCH
-dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=gdi -sOutputFile=- - | perl
-p -e 's/PJL PAGE LETTER/PJL PAGE A4/; s/PJL PAGE (\S*) AUTO/PJL PAGE $1
AUTO/; s/PJL SET TONERSAVE = OFF/PJL SET TONERSAVE = OFF\r\n\@PJL SET
ECONOMODE = OFF/; s/PJL SET PAPERTYPE = NORMAL/PJL SET PAPERTYPE =
NORMAL/; s/PJL SET DENSITY = 1/PJL SET DENSITY = 3/; s/(\@PJL ENTER
LANGUAGE)/\@PJL SET RET = OFF\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET
JAMRECOVERY = ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET REPRINT =
ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET ALTITUDE = OFF\r\n$1/;
s/PJL COPIES = 1/PJL COPIES = 1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT
TIMEOUT = 15\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT POWERSAVE =
ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT POWERSAVETIME =
5\r\n$1/; '
D [24/Jul/2006:22:32:22 -0700] [Job 4] perl: warning: Setting locale
failed.
D [24/Jul/2006:22:32:22 -0700] [Job 4] perl: warning: Please check that
your locale settings:
D [24/Jul/2006:22:32:22 -0700] [Job 4] LANGUAGE = (unset),
D [24/Jul/2006:22:32:22 -0700] [Job 4] LC_ALL = (unset),
D [24/Jul/2006:22:32:22 -0700] [Job 4] LANG = "en"
D [24/Jul/2006:22:32:22 -0700] [Job 4] are supported and installed on
your system.
D [24/Jul/2006:22:32:22 -0700] [Job 4] perl: warning: Falling back to
the standard locale ("C").
D [24/Jul/2006:22:32:22 -0700] [Job 4] foomatic-gswrapper: gs '-dBATCH'
'-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=gdi'
'-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
D [24/Jul/2006:22:32:22 -0700] [Job 4] perl: warning: Setting locale
failed.
D [24/Jul/2006:22:32:22 -0700] [Job 4] perl: warning: Please check that
your locale settings:
D [24/Jul/2006:22:32:22 -0700] [Job 4] LANGUAGE = (unset),
D [24/Jul/2006:22:32:22 -0700] [Job 4] LC_ALL = (unset),
D [24/Jul/2006:22:32:22 -0700] [Job 4] LANG = "en"
D [24/Jul/2006:22:32:22 -0700] [Job 4] are supported and installed on
your system.
D [24/Jul/2006:22:32:22 -0700] [Job 4] perl: warning: Falling back to
the standard locale ("C").
D [24/Jul/2006:22:32:23 -0700] [Job 4] 0 %%Trailer
D [24/Jul/2006:22:32:23 -0700] [Job 4] Saw Trailer!
D [24/Jul/2006:22:32:23 -0700] [Job 4] Saw EOF!
D [24/Jul/2006:22:32:23 -0700] [Job 4]
D [24/Jul/2006:22:32:23 -0700] [Job 4] Closing renderer
More information about the cups
mailing list