LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-20-2005, 11:29 PM   #1
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
Problem Printing with HP 710c


I haven't been able to get my printer working after I installed Ubuntu on my system. The strange thing is I was able to get it working briefly, when I found some previous posts describing how to change some of the permissions, but then it hasn't worked since then. I tried looking for the permissions again, to see if they had somehow gotten changed again, I'm not sure if I've found all of them from before, but I think it was /dev/lp0 (set as 770, with my user part of the group) and /usr/lib/cups/daemon/cups-lpd (set as 755). I actually don't think it's the permissions now anyway because I also tried printing something as root and that doesn't work either.

I tried looking up some info in the logs,
From the last time I tried a test print /var/log/lpr.log reads:

Sep 20 22:01:45 localhost pnm2ppa[19166]: Starting print job
Sep 20 22:01:45 localhost pnm2ppa[19166]: Printing page 1 (PixMap)
Sep 20 22:01:50 localhost pnm2ppa[19166]: Finished rendering page 1
Sep 20 22:01:50 localhost pnm2ppa[19166]: Print job completed successfully.

though it obviously wasn't successful, as nothing happened with the printer

The same job in /var/log/cups/error_log reads:

I [20/Sep/2005:22:01:45 -0600] Adding start banner page "none" to job 15.
I [20/Sep/2005:22:01:45 -0600] Adding end banner page "none" to job 15.
I [20/Sep/2005:22:01:45 -0600] Job 15 queued on 'DeskJet-710C' by 'andy'.
I [20/Sep/2005:22:01:45 -0600] Started filter /usr/lib/cups/filter/pstops (PID 19157) for job 15.
I [20/Sep/2005:22:01:45 -0600] Started filter /usr/lib/cups/filter/foomatic-rip (PID 19158) for job 15.
I [20/Sep/2005:22:01:45 -0600] Started backend /usr/lib/cups/backend/parallel (PID 19159) for job 15.

Any suggestions about what's going on here?
 
Old 09-21-2005, 09:19 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If its a parallel port printer you need to have the 'lp' module loaded (check output of 'lspci'. Do 'modprobe lp' if it is not there.

In KDE you can also increase the CUPS debugging level (Control Center -> Printers -> Print Server -> Configuration -> Logs). Not sure what Ubuntu uses.
 
Old 09-21-2005, 11:12 PM   #3
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Original Poster
Rep: Reputation: 30
Didn't look like lp was anywhere is lspci, I tried doing modprobe lp, and nothing happened (same with modprobe -v lp). Could I be missing the module that modprobe is supposed to load? or would I get some kind of error if that was the case.

I use GNOME, so that method of changing the debugging won't work, I didn't see anything similar in the obvious place to adjust printer settings.
 
Old 09-22-2005, 01:11 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Sorry, my stupid mistake. Should be lsmod, not lspci.

Check 'lsmod' again after 'modprobe lp' to see if it is in the list.
 
Old 09-22-2005, 09:02 PM   #5
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Original Poster
Rep: Reputation: 30
When I did lsmod I have lp, as well as parport and parport_pc, which I've read can also be issues.
 
Old 09-22-2005, 10:08 PM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
You can do a crude test of the parallel port with

echo 'hello world' > /dev/lp0

which should get a reaction from the printer.

If permissions are wrong you could have all sorts of problems. I don't think printing as root will necessarily bypass these as it may be the CUPS daemon that needs access, not the user.

If you can use whatever print management tools Ubuntu provides you may be able to locate the problem by increasing the debugging level. CUPS also has a web interface at

http://localhost:631/admin

but I find the KDE printer admin more useful.
 
Old 09-23-2005, 08:54 PM   #7
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Original Poster
Rep: Reputation: 30
I went to the web interface and get asked for a password, tried both my user and root passwords and neither worked. When I click cancel I get a message saying "Administrative commands are disabled in the web interface for security reasons. Please use the GNOME CUPS manager (System > Administration > Printing)." All I can configure from there is the paper settings, and set drivers to use.

I still haven't found an easy way to change debugging in Gnome, but did find how to edit the configuration file to do it by hand, still all the same messages from my first post, and nothing else. Actually there was a change in behavior though, now when I do a test print it stays listed in the queue, and I have to cancel the job, but when I look at the logs, it's what I said before including "Print job completed successfully".

I tried
echo 'hello world' >dev/lp0
and got absolutely no response
 
Old 09-24-2005, 07:18 AM   #8
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I suspect a problem with the parallel port. On my box command 'dmesg | grep lp' gives following (among other stuff):

lp0: using parport0 (polling).
lp0: console ready

If you don't have this, or see some errors, that would be worth investigating. Also check the cable and connections. Try the printer with another OS or PC if you can.

A useful resource for parallel printers is the lp.general mailing list at www.linuxprinting.org.
 
Old 09-24-2005, 12:54 PM   #9
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Original Poster
Rep: Reputation: 30
We might be getting somewhere since I get different output there.

lp0: using parport0 (interrupt-driven).
lp0: ECP mode
lp0: ECP mode
lp0: ECP mode
lp0: ECP mode
lp0: ECP mode
lp0: ECP mode

I'm just starting to google to figure out what exactly this is meaning, but the difference at least gives me something to look for.

I've been able to get the same printer working when I had windows and mandriva on my old system, as well as when I boot with mepis on this one.
 
Old 09-24-2005, 03:07 PM   #10
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Original Poster
Rep: Reputation: 30
I got it working, by changing my parallel port mode to from ECP to normal.

Thanks for you help.
 
Old 04-08-2006, 08:20 AM   #11
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
"Administrative tasks have been disabled for security reasons. Please use Menu System > Administration > Printing."

That's impossible usign KDE especially if you use a distro like Kubuntu which only has kde!!!

just do the below...

Code:
adduser cupsys shadow 
/etc/init.d/cupsys restart
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing problem satimis Linux From Scratch 4 09-11-2005 11:58 AM
Cups Printing problem, Linux to Linux Printing problem folken718 Slackware 2 11-08-2004 10:10 AM
HP Deskjet 710c ? crapper Slackware 5 09-29-2004 02:46 PM
HP DeskJet 710C driver for linux Mr 47 Linux - Hardware 2 04-06-2004 07:32 PM
config kernel for hp 710c printer (parallel) qwijibow Linux - Hardware 2 11-12-2003 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration