troubleshooting USB printer hangs in MDK 10 Discovery...
Straight_Man
Geeky, in my own wayNaples, FL Icrontian
This might also apply to other distros in part.
Here's my situation:
I have a Laser printer, it is hooked to a USB manual A\B switch. Linux loses the printer connect if I forget to flip the switch back to teh linux box before tryign to print. So, to avoid rebuilding the printer queue hot (with KDE up and running, printer on, no restart needed) when I forget to reset the dang switch after hooking the printer to the XP box with it, I would like to know if anyone has a way to get Linux to repoll the printer. I also lose any jobs that are hung in the queue sometimes, and need many times to empty the queue and resend jobs to queue fromt eh app used to print from-- AS WELL AS rebuilding the queue as default and as to printer driver used in Mandrake Control Center. I use CUPS, CUPS is sensitive to this, and other printer frontends do not have good drivers for my Laser. But what causes the printer dehook to stay dehooked until either jobs are dumped and resent and printer def is rebuilt is at USB<->CUPS or USB<->lpd levels. CUPS likes to manage queues, so does lpd, and lpq shows printer not ready while CUPS shows a port loss to printer when I forget to switch switch before printing. Because BOTH are happening almost simultaneously, I cannot figure out which or if boht are reacting to a USB non-presence and ignoring a hotplug rehook for USB printer. I know particualr driver runs printer right now. I helped bug report this driver, a LOT, over a 1.6 year period. Problem is not driver for printer per se.
So question is, is there a command to tell lpd to repoll printer queues for printer status, and to reset same for a USB printer???? Rgith now MCC can gen a rehook in effect by allowing me to literally wipe and rebuild printer defined, and then print a test page, but would like to know if there are soem abstruce things I could try from a console to force lower layers to suspend and rehook queue and repoll without doing this. I'll be happy to go into how I figured out this was so if wanted, this is a meaty thing that might provide a good thread that others could benefit from also, even if it gives devs a clue as to what is happening-- I will be in contact with Mandrake folks about this, definitely. But printing module devs and USB kernel devs are not able to troubleshoot this separately, and I know of no-one who is cross-knowledged in both USB kernel and low level USB bus handling and printing function dev right now-- so I would like input from other users-- I know experientially how the printer layers work, not how USB lower level stuff in the 2.6.6+ kernel tree is supposed to work. Since Mandrake has printer devs working still, thought I would work with Mandrake Discovery for starters.
Here's my situation:
I have a Laser printer, it is hooked to a USB manual A\B switch. Linux loses the printer connect if I forget to flip the switch back to teh linux box before tryign to print. So, to avoid rebuilding the printer queue hot (with KDE up and running, printer on, no restart needed) when I forget to reset the dang switch after hooking the printer to the XP box with it, I would like to know if anyone has a way to get Linux to repoll the printer. I also lose any jobs that are hung in the queue sometimes, and need many times to empty the queue and resend jobs to queue fromt eh app used to print from-- AS WELL AS rebuilding the queue as default and as to printer driver used in Mandrake Control Center. I use CUPS, CUPS is sensitive to this, and other printer frontends do not have good drivers for my Laser. But what causes the printer dehook to stay dehooked until either jobs are dumped and resent and printer def is rebuilt is at USB<->CUPS or USB<->lpd levels. CUPS likes to manage queues, so does lpd, and lpq shows printer not ready while CUPS shows a port loss to printer when I forget to switch switch before printing. Because BOTH are happening almost simultaneously, I cannot figure out which or if boht are reacting to a USB non-presence and ignoring a hotplug rehook for USB printer. I know particualr driver runs printer right now. I helped bug report this driver, a LOT, over a 1.6 year period. Problem is not driver for printer per se.
So question is, is there a command to tell lpd to repoll printer queues for printer status, and to reset same for a USB printer???? Rgith now MCC can gen a rehook in effect by allowing me to literally wipe and rebuild printer defined, and then print a test page, but would like to know if there are soem abstruce things I could try from a console to force lower layers to suspend and rehook queue and repoll without doing this. I'll be happy to go into how I figured out this was so if wanted, this is a meaty thing that might provide a good thread that others could benefit from also, even if it gives devs a clue as to what is happening-- I will be in contact with Mandrake folks about this, definitely. But printing module devs and USB kernel devs are not able to troubleshoot this separately, and I know of no-one who is cross-knowledged in both USB kernel and low level USB bus handling and printing function dev right now-- so I would like input from other users-- I know experientially how the printer layers work, not how USB lower level stuff in the 2.6.6+ kernel tree is supposed to work. Since Mandrake has printer devs working still, thought I would work with Mandrake Discovery for starters.
0
Comments
The desired command is "cupsenable <queuename>"