On Mon, 2005-11-21 at 10:06 -0500, Alan Stern wrote: > On Sun, 20 Nov 2005, Steve Bangert wrote: > > > Alan, > > > > I originally posted this message on usb-devel list but got no response, > > can you take a look at this please. I have a usbmon trace if that helps. > > (available on request) Steve > > I'm having trouble understanding what you wrote. > > > Since 2.4.0 there have been problems with my usb printer failing to > > print at times, when this happens if i reboot the box it still won't > > print, however if i reboot the box with the printer power off and then > > power up the printer after the OS is fully booted it will print (for a > > while) if i do a "cat [text file] > /dev/usb/usblp" i get nothing. > > In that run-on sentence you said: when you reboot you can't print, when
With the printer power left on. > you reboot you can print, and if you send a file to the printer with "cat" If i power up the printer after the system has booted I can then print. In summary, reboot with printer power on, printer inop, reboot with printer power off and then power up the printer after system is fully booted, and the printer will then work. > it doesn't print. It's hard to know what this means. > > > Currently I'm using Fc4 with the latest 2.6.14 errata kernel but this > > condition occurs on all kernels. Any suggestions? > > Focus on a simple test case. For example, turn the printer power off, > reboot, turn the printer power on, then use "cat" to send a file to the > printer. Does the file get printed? Does the "cat" program hang? If Yes the file gets printed, and no "cat" doesn't hang > "cat" does hang, what does Alt-SysRq-T show? What does the dmesg log show > starting from the time you turned on the printer? Here's relevant sections of dmesg from this mornings boot up drivers/usb/class/usblp.c: usblp_ioctl: cmd=0x84005001 (P nr=1 len=1024 dir=2) drivers/usb/class/usblp.c: usblp_control_msg: rq: 0x00 dir: 1 recip: 1 value: 0 idx: 0 len: 0x3ff result: 90 drivers/usb/class/usblp.c: usblp0 Device ID string [len=90]="MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus COLOR 740;CLS:PRINTER;DES:EPSON Stylus COLOR 740;" lp: driver loaded but no devices found drivers/usb/class/usblp.c: usblp_ioctl: cmd=0x84005001 (P nr=1 len=1024 dir=2) drivers/usb/class/usblp.c: usblp_control_msg: rq: 0x00 dir: 1 recip: 1 value: 0 idx: 0 len: 0x3ff result: 90 drivers/usb/class/usblp.c: usblp0 Device ID string [len=90]="MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus COLOR 740;CLS:PRINTER;DES:EPSON Stylus COLOR 740;" And here's the printer section of /proc/bus/usb/devices T: Bus=02 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#= 6 Spd=12 MxCh= 0 D: Ver= 1.00 Cls=07(print) Sub=01 Prot=02 MxPS=64 #Cfgs= 1 P: Vendor=04b8 ProdID=0001 Rev= 1.00 S: Manufacturer=EPSON S: Product=USB Printer C:* #Ifs= 1 Cfg#= 1 Atr=40 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 Steve > > Alan Stern > ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel