This is a discussion on PRINTING: samba / cups / lp0 problem within the Linux General forums, part of the Linux Forums category; Mandrake Linux 10.1, cups 1.1.23, printer connected as "Device URI: parallel:/dev/lp0" I am ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Mandrake Linux 10.1, cups 1.1.23, printer connected as "Device URI:
parallel:/dev/lp0" I am having trouble with my printer. I am trying to share my HP deskjet connected to my new Linux box (Linux newbie... sorry), and it works... almost. If I boot my Linux box, and try to print from my Window XP machine the print job goes off ok, but nothing prints. When I check the cups print manager (via web browser) I see the job in the queue, but when I check the printer section I see the printer is currently shown as... "Printer not connected; will retry in 30 seconds...". Now, if I go on to my Linux box, log in, launch mandrake's control center (mcc as root), select the hardware tab, and double click printers, a couple of things happen... 1) I see the following text in the terminal window from which I launched mcc... ERROR: Module lp does not exist in /proc/modules ERROR: Module parport_pc does not exist in /proc/modules ERROR: Module parport does not exist in /proc/modules 2) The printer immediatly starts printing the job I sent from the XP machine. 3) printerdrake shows the printer 4) refreshing the cups web interface shows the printer as... "Printer State: idle, accepting jobs." When I go look in the message log I can find this series of entries which seems to correspond to the printer coming back to life... Feb 21 21:33:07 localhost printerdrake[4024]: running: rmmod parport_pc Feb 21 21:33:07 localhost printerdrake[4024]: running: rmmod parport Feb 21 21:33:07 localhost printerdrake[4024]: running: /sbin/modprobe parport_pc Feb 21 21:33:07 localhost kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP] Feb 21 21:33:07 localhost kernel: parport0: Printer, HEWLETT-PACKARD DESKJET 930C Feb 21 21:33:07 localhost kernel: lp0: using parport0 (polling). Any insight would be GREATLY appreciated. Thanks, Buzz |
|
|||
|
Buzz Burrowes wrote:
> Now, if I go on to my Linux box, log in, launch mandrake's control > center (mcc as root), select the hardware tab, and double click > printers, a couple of things happen... > .... but bottom line the printer starts working. More detail I just pulled from syslog... Feb 22 00:51:27 localhost printerdrake[3652]: running: rmmod lp Feb 22 00:51:28 localhost printerdrake[3652]: running: rmmod parport_pc Feb 22 00:51:28 localhost printerdrake[3652]: running: rmmod parport Feb 22 00:51:28 localhost printerdrake[3652]: running: /sbin/modprobe parport_pc Feb 22 00:51:28 localhost kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP] Feb 22 00:51:28 localhost kernel: parport0: Printer, HEWLETT-PACKARD DESKJET 930C Feb 22 00:51:28 localhost printerdrake[3652]: running: /sbin/modprobe lp Feb 22 00:51:28 localhost kernel: lp0: using parport0 (polling). Feb 22 00:51:28 localhost kernel: lp0: console ready Feb 22 00:51:28 localhost printerdrake[3652]: created directory /dev/usb (and parents if necessary) Feb 22 00:51:28 localhost last message repeated 15 times Feb 22 00:51:29 localhost printerdrake[3652]: running: lpstat -p HPDeskJet930C1 Feb 22 00:51:29 localhost printerdrake[3652]: running: lpstat -l -p -v Somewhere in the middle of that the printer starts printing the jobs in the cups queue. I'm guessing about the time the kernel sees parport0. So... how do I get the kernel to see this correctly at boot time? Thanks, Buzz |
|
|||
|
Just in case someone has the same problem...
I solved this by creating a script in /etc/rc.d/init.d that executed these lines... /sbin/rmmod lp /sbin/rmmod parport_pc /sbin/rmmod parport /sbin/modprobe parport_pc /sbin/modprobe lp I then used chkconfig to run this script on all boot levels. Seems to have done the trick... parallel port printer is now available immediately upon boot up. Buzz |