Bluehost.com Web Hosting $6.95

PRINTING: samba / cups / lp0 problem

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 ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2005
Buzz Burrowes
 
Posts: n/a
Default PRINTING: samba / cups / lp0 problem

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
Reply With Quote
  #2 (permalink)  
Old 02-22-2005
Buzz Burrowes
 
Posts: n/a
Default Re: PRINTING: samba / cups / lp0 problem

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
Reply With Quote
  #3 (permalink)  
Old 02-24-2005
Buzz Burrowes
 
Posts: n/a
Default Re: PRINTING: samba / cups / lp0 problem

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0