MASTER: Printing via HPLIP does not work any more
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hplip (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
system-config-printer (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: system-
A usb connected printer can be configured fine manually but does not work when automatically detected.
In the first case the device uri used is
usb://hp/
while in the automatic case that fails the device uri is instead
hp:/usb/
Error messages the user.log are of the form
Sep 30 15:57:31 richard-desktop python: hp-makeuri[32595]: error: Error: Unknown/invalid device-uri field
Sep 30 15:57:31 richard-desktop python: hp-makeuri[32595]: error: Device not found
Richard Kleeman (kleeman) wrote : | #1 |
Tim Waugh (twaugh) wrote : | #2 |
What does 'hp-probe' say?
Richard Kleeman (kleeman) wrote : | #3 |
After automatic and manual configuration:
HP Linux Imaging and Printing System (ver. 2.7.7)
Printer Discovery Utility ver. 3.2
Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Device URI Model
-----
hp:/usb/
Found 1 printer(s) on the 'usb' bus
Till Kamppeter (till-kamppeter) wrote : | #4 |
Can you also run
lpinfo -l -v
Then do "lsusb" and you get something like
Bus XXX Device YYY: ID 03f0:ZZZZ Hewlett-Packard
For each line containing "Hewlett-Packard" do
hp-makeuri XXX:YYY
Post the output here.
Changed in hplip: | |
status: | New → Incomplete |
Changed in system-config-printer: | |
status: | New → Incomplete |
Richard Kleeman (kleeman) wrote : | #5 |
OK so I did this after the automatic configuration of the printer (not the manual)
lpinfo -l -v gives:
Device: uri = socket
class = network
info = AppSocket/HP JetDirect
device-id =
Device: uri = beh
class = network
info = Backend Error Handler
device-id =
Device: uri = canon:/dev/lp0
class = direct
info = Gutenprint Parallel Port #1
device-id =
Device: uri = epson:/dev/lp0
class = direct
info = Gutenprint Parallel Port #1
device-id =
Device: uri = hpfax
class = direct
info = HP Fax (HPLIP)
device-id =
Device: uri = hal:///
class = direct
info = hp photosmart 7550
device-id = MFG:hp;
Device: uri = usb://hp/
class = direct
info = hp photosmart 7550 USB #1
device-id = MFG:hp;
Device: uri = hp
class = direct
info = HP Printer (HPLIP)
device-id =
Device: uri = http
class = network
info = Internet Printing Protocol (http)
device-id =
Device: uri = ipp
class = network
info = Internet Printing Protocol (ipp)
device-id =
Device: uri = lpd
class = network
info = LPD/LPR Host or Printer
device-id =
Device: uri = parallel:/dev/lp0
class = direct
info = LPT #1
device-id =
Device: uri = cups-pdf:/
class = file
info = Print into PDF file
device-id = MFG:Generic;MDL:PDF file generator;
Device: uri = scsi
class = direct
info = SCSI Printer
device-id =
Device: uri = smb
class = network
info = Windows Printer via SAMBA
device-id =
Device: uri = socket:
class = network
info = Xerox Phaser 6350DP;PS5.0.0 192.168.0.100
device-id =
lsusb gives
Bus 005 Device 002: ID 04b8:011e Seiko Epson Corp. Perfection 1660 Photo
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 004: ID 03f0:3e02 Hewlett-Packard
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
and then
hp...
Richard Kleeman (kleeman) wrote : | #6 |
I notice that the uri reported by lpinfo is the one that the manual configure of the printer picks up (see first post).This is despite the automatic configuration already being in place....
dodgy_pro (dodgy-pro-deactivatedaccount) wrote : | #7 |
I have the same problem (it seems to be global with HP printers on Gutsy) and only thought to report it as bug today. Now I see there is already a report about it.
If you think we can help figuring out the bug, you can give us instructions on whatever you want us to mention. This is rather important, because an innovative tool coming with Gutsy seems not to be working correctly... And the final release is coming soon.
dodgy_pro (dodgy-pro-deactivatedaccount) wrote : | #8 |
I have described the problem in my words here: https:/
Till Kamppeter (till-kamppeter) wrote : | #9 |
dodgy_pro, can you also do the steps which I described in my previous comment?
For me this seems to be a bug in HPLIP. The printer is recognized by the standard USB backend but not by HPLIP (but it was recognized by HPLIP some days ago when the queue was created).
Don, Raghu, Aaron, can you look into this?
dodgy_pro (dodgy-pro-deactivatedaccount) wrote : | #10 |
hp-probe returns:
Device URI Model
-----
hp:/usb/
Found 1 printer(s) on the 'usb' bus.
_______
lpinfo -l -v returns:
Device: uri = socket
class = network
info = AppSocket/HP JetDirect
device-id =
Device: uri = beh
class = network
info = Backend Error Handler
device-id =
Device: uri = canon:/dev/lp0
class = direct
info = Gutenprint Parallel Port #1
device-id =
Device: uri = epson:/dev/lp0
class = direct
info = Gutenprint Parallel Port #1
device-id =
Device: uri = hal:///
class = direct
info = HP Deskjet 5900 series
device-id = MFG:HP;MDL:Deskjet 5900 series;
Device: uri = usb://HP/
class = direct
info = HP Deskjet 5900 series USB #1
device-id = MFG:HP;MDL:Deskjet 5900 series;
Device: uri = hpfax
class = direct
info = HP Fax (HPLIP)
device-id =
Device: uri = hp
class = direct
info = HP Printer (HPLIP)
device-id =
Device: uri = http
class = network
info = Internet Printing Protocol (http)
device-id =
Device: uri = ipp
class = network
info = Internet Printing Protocol (ipp)
device-id =
Device: uri = lpd
class = network
info = LPD/LPR Host or Printer
device-id =
Device: uri = parallel:/dev/lp0
class = direct
info = LPT #1
device-id =
Device: uri = cups-pdf:/
class = file
info = Print into PDF file
device-id = MFG:Generic;MDL:PDF file generator;
Device: uri = scsi
class = direct
info = SCSI Printer
device-id =
Device: uri = smb
class = network
info = Windows Printer via SAMBA
device-id =
_______
and finally hp-makeuri XXX:YYY returns:
CUPS URI: hp:/usb/
Till Kamppeter (till-kamppeter) wrote : | #11 |
This looks like that the "hp" CUPS backend has problems accessing the printer.
Can you all do the following tests:
1. Do
/usr/lib/
and post the output
2. Do
sudo aa-complain cupsd
/usr/lib/
and post the output.
3. Can you print after doing
sudo aa-complain cupsd
David Suffield (david-suffield) wrote : | #12 |
The syslog message "Sep 30 16:15:40 richard-desktop photosmart_
The udev 55-hpmud.rules file from 2.7.9 should fix this issue.
Till Kamppeter (till-kamppeter) wrote : | #13 |
Dave, can you post this file here, or a patch for 2.7.7, as we are after feature freeze and therefore we cannot upgrade to 2.7.9 any more. Thanks.
Changed in system-config-printer: | |
status: | Incomplete → Invalid |
Changed in hplip: | |
assignee: | nobody → david-suffield |
status: | Incomplete → In Progress |
Richard Kleeman (kleeman) wrote : | #14 |
Results of the 3 tests:
1. /usr/lib/
direct hp:/usb/
2. Results same as 1.
3. Printing still fails
Till Kamppeter (till-kamppeter) wrote : | #15 |
Richard, thank you. It turned out that the problem is in HPLIP and not in the AppArmor protection of CUPS. Please return your configuration to the original state with
sudo aa-enforce cupsd
dodgy_pro (dodgy-pro-deactivatedaccount) wrote : | #16 |
Let me post mine results:
1) direct hp:/usb/
2) Setting /etc/apparmor.
3) I can print after that, though I have already been able using the right URI given by the system when I ran a manual installation of the printer.
David Suffield (david-suffield) wrote : | #17 |
- C:\des\tmp\55-hpmud.rules Edit (870 bytes, text/plain)
I have attached a copy of the new 55-hpmud.rules file. The new rules file is product-id specific where the old one was not. It also sets the device node permissions to 0666. See the http://
Richard Kleeman (kleeman) wrote : | #18 |
I added this file (55-hpmud.rules) in /etc/udev/rules.d as root
and the problem is solved i.e. the automatically configured printer now works.
dodgy_pro does it work for you also (with the automatic configuration of the printer I mean)?
Richard Kleeman (kleeman) wrote : | #19 |
An editorial ;-) (sorry about the didactic tone):
It is bugs like this that can give a distro a bad name. If I plug in my common as dirt hp printer and the yellow dialog tells me it is configured and ready to go and then it doesn't work your typical user will be quite discouraged. There are 16 days left to Gutsy release, I agree with dodgy_pro this really needs fixing.....
Till Kamppeter (till-kamppeter) wrote : | #20 |
Richard, the fix is now provided by HP, so this one will get fixed. I have marked it a milestone for the Release Candidate of 7.10 now.
Changed in hplip: | |
assignee: | david-suffield → nobody |
importance: | Undecided → High |
Richard Kleeman (kleeman) wrote : | #21 |
Great thanks Till!
dodgy_pro (dodgy-pro-deactivatedaccount) wrote : | #22 |
I uninstalled all printers and removed them from the computer (USB).
I rebooted.
I connected my HP Deskjet 5940 to the USB.
After a few seconds I was given the tip that the printer was found and installed.
It had been recognised by both the System/
It worked flaulessly!...
Job is done and it really should have been done. Bug seems to be fixed. I will inform friends of mine who are also beta-testing Gutsy and had the same problem.
My only thought now, is why jobs are compiled continuously to the printer... I mean whatever I send for printing takes a job-number ever increasing (for instance I send a test page and it is printed as job... 45), but I cannot find how I reset the counting. If it is something worth considering, let us now please.
Thanks for the fix! It was important for the upcoming release of Ubuntu.
laksdjfaasdf (laksdjfaasdf) wrote : Re: Printing via HPLIP does not work any more | #23 |
- Selecting the only possible printer type Edit (23.7 KiB, image/png)
OK, bug #144974 was marked as duplicate so I post my errors here:
Have downloaded newest patches today, but problem IS stil there!
Description:
When I install my HP DeskJet 930C with system-
I have attached screenshots which show the problems.
laksdjfaasdf (laksdjfaasdf) wrote : | #24 |
laksdjfaasdf (laksdjfaasdf) wrote : | #25 |
- Opening HP Toolbox fails Edit (38.0 KiB, image/png)
As an end user I don't care if I need a hp:/ or a usb:/ URI for my printer! I just want to open HP Toolbox to see how much ink is still in my cartridge etc. This should be possible out the box without hacking in command line.
laksdjfaasdf (laksdjfaasdf) wrote : | #26 |
After running hp-setup as root in command line, I can open HP Toolbox which shows me the information I want.
BUT: That's not userfriendly!
Adding a hp:/... printer must be done by system-
etos@bk.ru (etos) wrote : Re: [Bug 147369] Re: Printing via HPLIP does not work any more | #27 |
Здравствуйте, felix.rommel.
Вы писали 3 октября 2007 г., 16:23:34:
felix.rommel> After running hp-setup as root in command line, I can open HP Toolbox
felix.rommel> which shows me the information I want.
felix.rommel> BUT: That's not userfriendly!
felix.rommel> Adding a hp:/... printer must be done by
felix.rommel> system-
felix.rommel> you have full features for HP printers with Toolbox etc. without hacking
felix.rommel> in command line!
ЗАЕБАЛИ!
--
С уважением,
Eduard mailto:<email address hidden>
etos@bk.ru (etos) wrote : | #28 |
Здравствуйте, felix.rommel.
Вы писали 3 октября 2007 г., 16:07:26:
felix.rommel> OK, bug #144974 was marked as duplicate so I post my errors here:
felix.rommel> Have downloaded newest patches today, but problem IS stil there!
felix.rommel> Description:
felix.rommel> When I install my HP DeskJet 930C with system-
felix.rommel> use HP toolbox to show my ink cartrigde etc. but get an error message.
felix.rommel> I have attached screenshots which show the problems.
felix.rommel> ** Attachment added: "Selecting the only possible printer type"
felix.rommel> http://
ЗАЕБАЛИ!
--
С уважением,
Eduard mailto:<email address hidden>
etos@bk.ru (etos) wrote : | #29 |
Здравствуйте, felix.rommel.
Вы писали 3 октября 2007 г., 16:08:02:
felix.rommel> ** Attachment added: "Selecting recommended driver"
felix.rommel> http://
ЗАЕБАЛИ!
--
С уважением,
Eduard mailto:<email address hidden>
etos@bk.ru (etos) wrote : | #30 |
Здравствуйте, felix.rommel.
Вы писали 3 октября 2007 г., 16:09:37:
felix.rommel> As an end user I don't care if I need a hp:/ or a usb:/ URI for my
felix.rommel> printer! I just want to open HP Toolbox to see how much ink is still in
felix.rommel> my cartridge etc. This should be possible out the box without hacking in
felix.rommel> command line.
felix.rommel> ** Attachment added: "Opening HP Toolbox fails"
felix.rommel>
felix.rommel> http://
ЗАЕБАЛИ!
--
С уважением,
Eduard mailto:<email address hidden>
etos@bk.ru (etos) wrote : | #31 |
Здравствуйте, Till.
Вы писали 3 октября 2007 г., 15:56:16:
Till Kamppeter> ** Summary changed:
Till Kamppeter> - system-
Till Kamppeter> + Printing via HPLIP does not work any more
ЗАЕБАЛИ!
--
С уважением,
Eduard mailto:<email address hidden>
oss_test_launchpad (oss-test-launchpad) wrote : | #32 |
So do you have to do anything to fix this or just update the computer?
Till Kamppeter (till-kamppeter) wrote : | #33 |
oss_test_launchpad, please use the attached 55-hpmud.rules file as described in Dave Suffield's comment
https:/
Till Kamppeter (till-kamppeter) wrote : | #34 |
felix.rommel, have you used the attached 55-hpmud.rules file as described in Dave Suffield's comment
https:/
laksdjfaasdf (laksdjfaasdf) wrote : | #35 |
@Eduard (<email address hidden>)
My linguistic knowledge is not the best, but as far as I understand you, you said: "He's a pain in my neck." Please correct me if I'm wrong.
In the future, please post in english, that everyone can understand you. Otherwise many people will have problems to understand your superb posts which are so important for the world.
Till Kamppeter (till-kamppeter) wrote : | #36 |
felix.rommel, please note also that system-
Till Kamppeter (till-kamppeter) wrote : | #37 |
For everyone who prefers testing the fix by installing Ubuntu packages instead of editing/replacing files, here are the new packages supposed to hit Gutsy soon:
http://
Changed in hplip: | |
status: | In Progress → Fix Committed |
Till Kamppeter (till-kamppeter) wrote : | #38 |
hplip (2.7.7.
* debian/rules, debian/
Updated UDEV rules for HPLIP to the ones of HPLIP 2.7.9. The current
rules do not work any more (LP: #147369)
-- Till Kamppeter <email address hidden> Wed, 3 Oct 2007 16:05:57 +0100
Changed in hplip: | |
status: | Fix Committed → Fix Released |
laksdjfaasdf (laksdjfaasdf) wrote : | #39 |
Thanks Till and Dave, the offered 55-hpmud.rules file fixes the error! I copied it manually to /etc/udev/rules.d and it works now.
My DeskJet 930C is detected correctly in system-
By the way - the newest drivers seem to fixed another problem with my printer. I thought hardware is damaged because it did not sound good when making line feeds and printout quality was not very good. But these problems seem to be fixed, too.
dodgy_pro (dodgy-pro-deactivatedaccount) wrote : PLEASE PAY ATTENTION | #40 |
Please pay attention!!!
We were all happy yesterday about the fix offered by David (http://
BUT! Today after the everyday update of my system, a new hplip was downloaded, which I expected to include the fix. It indeed included a "55-hpmud.rules" file, though it had some differences with the one offered here AND IT CAUSES NEW PROBLEMS for me at least.
The printer is correctly recognised and installed, but it only works through System/
The difference between the two files (the one given us here and the one taken through the update process) concern different permissions and owners ("root" instead of "lp" and "0664" instead of "0666"). I tried the old file and it works fine but the new does NOT!
Please check it out!
Till Kamppeter (till-kamppeter) wrote : | #41 |
Sorry, I tested only as the privileged user (is in group "lp"). I have repackaged now to use 666 permissions and tested as unprivileged user (not in group "lp"). Package is on the way to Gutsy.
Changed in hplip: | |
status: | Fix Released → Fix Committed |
Martin Pitt (pitti) wrote : | #42 |
No, it is absolutely wrong for the devices to be world writable. Users should not directly access them, this is reserved to the daemons (cupsys and hplip). On a related note, users shuold not be in group 'lp', so I wonder how that worked before. Printer administrators should be in 'lpadmin' only.
Changed in hplip: | |
status: | Fix Committed → Incomplete |
Martin Pitt (pitti) wrote : | #43 |
Current solution is to make the device nodes lp:scanner 0660, so that the mud library can access it.
Till Kamppeter (till-kamppeter) wrote : | #44 |
Doing the change proposed by pitti in the 55-hpmud.rules file, I can scan and see ink levels as unprivileged user (in group "scanner" but not in "lp"). Also printing as unprivileged user works for me. Also setting up print queues and Plug'n'Print work.
So I will upload HPLIP with these settings now.
Changed in hplip: | |
status: | Incomplete → In Progress |
Till Kamppeter (till-kamppeter) wrote : | #45 |
Note: This is a workaround for bug 149045. It works only under Ubuntu due to the use of the "scanner" group.
Till Kamppeter (till-kamppeter) wrote : | #46 |
New HPLIP packages for Gutsy are on their way. Get the packages here for immediate testing
http://
To get rid of hand-edited UDEV rule files do
sudo dpkg -P --force-depends hplip
before installing the new packages with
sudo dpkg -i *.deb
Changed in hplip: | |
status: | In Progress → Fix Committed |
Till Kamppeter (till-kamppeter) wrote : | #47 |
hplip (2.7.7.
* debian/
group "scanner", and permissions 0660 for the /dev/... files, so
that non-privileged users (not in "lp" group, but in "scanner"
group) can also access the HP printers. Simply using 0666
permissions is a security problem (LP: #147369).
-- Till Kamppeter <email address hidden> Thu, 4 Oct 2007 21:05:57 +0100
Changed in hplip: | |
status: | Fix Committed → Fix Released |
dodgy_pro (dodgy-pro-deactivatedaccount) wrote : | #48 |
This last fix seems to work flawlessly again. If everything is OK with the permissions given, as discussed, that should be the eternal solution to the problem. Thanks!
Richard Kleeman (kleeman) wrote : | #49 |
Tested on October 6 with fully updated gutsy system and works perfectly. Thanks Till.
Other messages include
Sep 30 16:15:40 richard-desktop photosmart_ 7550?serial= CN33I4116P7E: io/hpmud/musb.c 549: invalid product id string: Operation not permitted 7550?serial= CN33I4116P7E: io/hpmud/musb.c 1003: unable to open hp:/usb/ photosmart_ 7550?serial= CN33I4116P7E 7550?serial= CN33I4116P7E: INFO: open device failed; will retry in 30 seconds...
Sep 30 16:15:40 richard-desktop photosmart_
Sep 30 16:15:40 richard-desktop photosmart_