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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-20-2005, 11:29 PM
|
#1
|
Member
Registered: Jul 2005
Distribution: Arch
Posts: 489
Rep:
|
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?
|
|
|
09-21-2005, 09:19 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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.
|
|
|
09-21-2005, 11:12 PM
|
#3
|
Member
Registered: Jul 2005
Distribution: Arch
Posts: 489
Original Poster
Rep:
|
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.
|
|
|
09-22-2005, 01:11 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
Sorry, my stupid mistake. Should be lsmod, not lspci.
Check 'lsmod' again after 'modprobe lp' to see if it is in the list.
|
|
|
09-22-2005, 09:02 PM
|
#5
|
Member
Registered: Jul 2005
Distribution: Arch
Posts: 489
Original Poster
Rep:
|
When I did lsmod I have lp, as well as parport and parport_pc, which I've read can also be issues.
|
|
|
09-22-2005, 10:08 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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.
|
|
|
09-23-2005, 08:54 PM
|
#7
|
Member
Registered: Jul 2005
Distribution: Arch
Posts: 489
Original Poster
Rep:
|
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
|
|
|
09-24-2005, 07:18 AM
|
#8
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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.
|
|
|
09-24-2005, 12:54 PM
|
#9
|
Member
Registered: Jul 2005
Distribution: Arch
Posts: 489
Original Poster
Rep:
|
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.
|
|
|
09-24-2005, 03:07 PM
|
#10
|
Member
Registered: Jul 2005
Distribution: Arch
Posts: 489
Original Poster
Rep:
|
I got it working, by changing my parallel port mode to from ECP to normal.
Thanks for you help.
|
|
|
04-08-2006, 08:20 AM
|
#11
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Rep:
|
"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
|
|
|
All times are GMT -5. The time now is 06:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|