C3180 doesn't print with hp backend (with usb it does)
Hi there, I'm trying to get working my new Photosmart C3180 on Gentoo Linux (~amd64). Scanner works fine, but printing with the hp backend (CUPS) does not. When I try to print something, it's added into the queue with status "processing" and then nothing happens. In error_log isn't any error. Processes foomatic-rip, hpijs and gs just keep hanging until I send a SIGKILL to them. However, when I delete this printer generated using hp-setup from CUPS and add it manually so it uses the usb backend instead of the hp one, it works fine. Problem is that I can't use the usb backend, because /dev/usb/lp0 disappears everytime I print something (and it appers after reconnecting the USB cable, restarting the printer or reloading the usblp module, which is quite annoying), so I need to get this hp backend working _or_ something else that helps.
Any ideas?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
I have the *exact* same problem. (even the same printer) I also run Gentoo x86_64 testing branch. Cups 1.3.6 and hplip 2.7.12 I've started a forum topic on the Gentoo forums with all relevant information such as hp-check and hp-info. http://
Revision history for this message
|
#2 |
Yes, this is it, "Device communication error." in hp-info. I've got same software versions you have, I even tried hplip 2.8.2, but it still doesn't work.
Revision history for this message
|
#3 |
I've read through the Gentoo thread, it appears the printer is being detect and configured, but when printing there is an error?
Run :
/usr/lib/
What's the output?
Also run lsusb -v <bus:devid for printer> and post that as well.
Then lets put cups in debug mode; http://
Run the tail -f /var/log/
We'll start here...please keep in mind however that I don't have a gentoo system up and going and I can't test this myself. Just trying to help track it down.. :)
Aaron
Revision history for this message
|
#4 |
No error, it just doesn't work and CUPS says "processing".
# /usr/libexec/
direct hp:/usb/
lsusb:
------------
Bus 001 Device 016: ID 03f0:5611 Hewlett-Packard PhotoSmart C3180
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x03f0 Hewlett-Packard
idProduct 0x5611 PhotoSmart C3180
bcdDevice 1.00
iManufacturer 1 HP
iProduct 2 Photosmart C3100 series
iSerial 3 CN7B9C51Z504P9
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 131
bNumInterfaces 4
bConfigurat
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 3
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Interrupt
Synch Type None
Usage Type Data
bInterval 7
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigura
Device Status: 0x0001
Self Powered
-------
(debug) error_log after running the hp-testpage command:
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
I [03/Mar/
D [03/Mar/
I [03/Mar/
I [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
I [03/Mar/
I [03/Mar/
I [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
D [03/Mar/
hmm, this is wicked, do you see it?
"INFO: open device failed; will retry in 30 seconds..."
/dev/usb/lp0 exists before that and is removed after running hp-testpage (hp backend!)...
Revision history for this message
|
#5 |
David,
Actuallythe lp0 being removed is okay because hpijs removes lp. Please run:
ls -l /proc/bus/
and post the output.
A
Revision history for this message
|
#6 |
okay (it's 017 now, because I've restarted it):
-rw-rw-r-- 1 root usb 149 2008-03-03 18:33 /proc/bus/
(and I already tried to print under root, dave, anonymous...)
Revision history for this message
|
#7 |
Okay, also run
groups
and post that as well.
A
Revision history for this message
|
#8 |
This is a permissions issue. The spooler runs as lp even if you intiate the job as root.
Permissions should have been set correctly when print queue was setup. hmmm.
Change it to 666, then it should work fine.
Raghu
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of David Watzke
Sent: Monday, March 03, 2008 9:56 AM
To: Cauligi, Raghothama S
Subject: Re: [Question #26055]: C3180 doesn't print with hp backend (with usb it does)
Question #26055 on HPLIP changed:
https:/
Status: Needs information => Open
David Watzke gave more information on the question:
okay (it's 017 now, because I've restarted it):
-rw-rw-r-- 1 root usb 149 2008-03-03 18:33 /proc/bus/
(and I already tried to print under root, dave, anonymous...)
You received this question notification because you are a member of HP Linux Imaging and Printing, which is an answer contact for HPLIP.
Revision history for this message
|
#9 |
Well, it still doesn't work :-( Same error.
Revision history for this message
|
#10 |
I've followed all these steps as well. With the same exact results.
These are my groups:
Root:
root bin daemon sys adm disk wheel floppy dialout tape video
Main user:
daemon tty disk lp mem kmem wheel cron audio cdrom ftp sshd video games mysql cdrw apache usb users lpadmin portage haldaemon plugdev scanner
Revision history for this message
|
#11 |
We are thinking that Gentoo isn't or doesn't use the udev rules we provide in the hplip source. We add an hplip udev rule that makes the usb ports 666, user root, group lp. However the group on your system is usb. Cups needs to be running as a member of the same group for the usb and cups to talk correctly. Verify in the cupsd.conf file that the group is usb, then restart cups and see if that make any difference. It should simply be a line name group usb, etc.
Does this have any effect?
A
Revision history for this message
|
#12 |
The udev rule is installed but apparently overriden or something. I've tried to set "Group usb" in cupsd.conf but it's still the same... I've also tried "Group lp" and changing permissions in /proc but no luck there. It's strange.
Revision history for this message
|
#13 |
How about run:
lsmod | grep usblp
What's the output?
A
Revision history for this message
|
#14 |
Nothing, I don't use modules (if I don't have to); USB printer support is compiled into my kernel.
Revision history for this message
|
#15 |
Ah I see. I'm sorry this is quickly moving out of our area of support. I was looking over this document:
But it's rather dated and may not be valid any more.
There may be some Gentoo steps that need to be completed, apparently something isn't working correctly. Perhaps someone with more gentoo experience can suggest an idea.
Sorry I couldn't help more, although I hope this at least got you pointed in the right direction. Although when you do get it working if you don't mind I'd like to know what you did to correct this.
A
Revision history for this message
|
#16 |
Yeah, I'll probably have to install some Ubuntu in VMware and check out all the differences. This discussion certainly was a big help for me, because now I know where to look and all, so thank you very much. When I find out what's this all about, I'll drop a comment here.
Revision history for this message
|
#17 |
Great, if you don't mind I'm going to set this to info request for now, and you can update when you get a chance.
All the best and thanks for your support of HPLIP!
Aaron
Revision history for this message
|
#18 |
This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.
Revision history for this message
|
#19 |
Okay, so it seems that it finally works with the HP backend. Once I upgraded CUPS server from 1.3.x to 1.4.1 and re-added the printer through the CUPS web interface, it started to work fine. I don't know for sure if the upgrade was really relevant, because I haven't tried it in a while.
Revision history for this message
|
#20 |
Great thanks for the update!
Aaron
Can you help with this problem?
Provide an answer of your own, or ask David Watzke for more information if necessary.