View previous topic :: View next topic |
Author |
Message |
ipic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/TV Stars/tealc1.jpg)
Joined: 29 Dec 2003 Posts: 433 Location: UK
|
Posted: Fri Jul 27, 2007 10:49 pm Post subject: {SOLVED]Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails |
|
|
I have a working CUPS/hplip setup using Code: | net-print/hplip-1.7.4a-r1
net-print/cups-1.2.10-r1 | I have tried to upgrade to hplip-2.7.6, but the new hpijs component refuses to connect to the printer, giving the following in /var/log/syslog: Code: |
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 512: invalid product id string: Operation not permitted
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 512: invalid product id string: Operation not permitted
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 966: unable to open hp:/usb/Deskjet_5700?serial=HU4BP1Y021049T
|
The printer is an HP Deskjet 5740, I have tried ppd files from both these places: Code: |
/usr/share/cups/model/foomatic-ppds/HP/HP-DeskJet_5740-hpijs.ppd.gz
and
/usr/share/ppd/HP/HP-DeskJet_5740-hpijs.ppd.gz | both give same error.
There is a big change in hplip with this upgrade, it no longer uses a deamon, and /etc/init.d/hplip has gone. So I did an unmerge of hplip before doing the new version emerge. I also stopped cups while emerging, and also recompiled cups. None of these attempts changed the outcome.
Of course, when I downgrade to hplip-1.7.4a-r1 it starts working again.
It seems from the bugzilla entry (https://bugs.gentoo.org/show_bug.cgi?id=183022)
for the upgrade that they all think its fine, and there are no big issues posted on the HP site. So I have probably missed something obvious .
Can anyone give me a prod in the right direction?
Thanks
Ian
Last edited by ipic on Sun Jul 29, 2007 12:48 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
didymos Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1790706086435438446060f.jpg)
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Fri Jul 27, 2007 11:17 pm Post subject: |
|
|
Did you get rid of all the old config files before the emerge? Or after, even. I'd try to start completely clean, then run hp-setup. _________________ Thomas S. Howard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
truekaiser l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/13873441545e08df3a7d211.gif)
Joined: 05 Mar 2004 Posts: 810
|
Posted: Sat Jul 28, 2007 4:41 pm Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails |
|
|
ipic wrote: | I have a working CUPS/hplip setup using Code: | net-print/hplip-1.7.4a-r1
net-print/cups-1.2.10-r1 | I have tried to upgrade to hplip-2.7.6, but the new hpijs component refuses to connect to the printer, giving the following in /var/log/syslog: Code: |
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 512: invalid product id string: Operation not permitted
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 512: invalid product id string: Operation not permitted
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 966: unable to open hp:/usb/Deskjet_5700?serial=HU4BP1Y021049T
|
The printer is an HP Deskjet 5740, I have tried ppd files from both these places: Code: |
/usr/share/cups/model/foomatic-ppds/HP/HP-DeskJet_5740-hpijs.ppd.gz
and
/usr/share/ppd/HP/HP-DeskJet_5740-hpijs.ppd.gz | both give same error.
There is a big change in hplip with this upgrade, it no longer uses a deamon, and /etc/init.d/hplip has gone. So I did an unmerge of hplip before doing the new version emerge. I also stopped cups while emerging, and also recompiled cups. None of these attempts changed the outcome.
Of course, when I downgrade to hplip-1.7.4a-r1 it starts working again.
It seems from the bugzilla entry (https://bugs.gentoo.org/show_bug.cgi?id=183022)
for the upgrade that they all think its fine, and there are no big issues posted on the HP site. So I have probably missed something obvious .
Can anyone give me a prod in the right direction?
Thanks
Ian |
look at the use flags. the admins removed cups support(at least on amd64 machines) so if you want to use your hp printer with cups stick with version 1.7.4a |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ipic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/TV Stars/tealc1.jpg)
Joined: 29 Dec 2003 Posts: 433 Location: UK
|
Posted: Sat Jul 28, 2007 8:45 pm Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails |
|
|
truekaiser wrote: |
look at the use flags. the admins removed cups support(at least on amd64 machines) so if you want to use your hp printer with cups stick with version 1.7.4a |
I'm possibly being thick - but that makes no sense at all. according to this:
http://hplip.sourceforge.net/tech_docs/overview.html
hplip is a cups back end. How could it ever work without cups? When you run hp-setup it tells you to start cups.
Also, the bug I referred to mentions removal of older versions when it gets unmasked - so sort of a disaster waiting to happen
Regards
Ian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
didymos Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1790706086435438446060f.jpg)
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Jul 28, 2007 9:07 pm Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails |
|
|
truekaiser wrote: | look at the use flags. the admins removed cups support(at least on amd64 machines) so if you want to use your hp printer with cups stick with version 1.7.4a |
No. That's not what removing a USE flag necessarily means. It may also mean that CUPS is enabled no matter what. I can still use CUPS just fine with the new HPLIP on amd64. Makes sense, given that this is in the package deps:
Quote: |
>=net-print/cups-1.2
|
_________________ Thomas S. Howard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
linuxaddict n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Aug 2004 Posts: 6 Location: UK
|
Posted: Sat Jul 28, 2007 11:01 pm Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails |
|
|
ipic wrote: | Code: |
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 512: invalid product id string: Operation not permitted
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 512: invalid product id string: Operation not permitted
Jul 27 23:26:10 ian2 hpijs: io/hpmud/musb.c 966: unable to open hp:/usb/Deskjet_5700?serial=HU4BP1Y021049T
|
|
I had this problem earlier, and it stemmed from not having the required '/dev/bus/usb/<bus>/<device>' udev entries. Do you have USB_DEVICE_CLASS enabled in your kernel config, or an appropriate udev rule/recent testing version of udev (see here)?
Does running hp-check turn up any errors? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ipic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/TV Stars/tealc1.jpg)
Joined: 29 Dec 2003 Posts: 433 Location: UK
|
Posted: Sun Jul 29, 2007 12:47 pm Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails |
|
|
linuxaddict wrote: |
Does running hp-check turn up any errors? |
That turned out to be the key to the problem - many thanks.
After installing 2.7.6, I saw this in the hp-check output: Code: | Checking for permissions of USB attached printers...
HP Device 0x8104 at 001:008:
Device URI: hp:/usb/Deskjet_5700?serial=HU4BP1Y021049T
Device node: /dev/bus/usb/001/008
Mode: 0664
UID: 0 (root)
GID: 85 (usb)
error: INCORRECT group. Group must be 'lp'
error: Device group and mode are NOT properly setup.
HP Device 0x3902 at 001:007:
Device URI: hp:/usb/photosmart_130?serial=TH26R3101F2G
Device node: /dev/bus/usb/001/007
Mode: 0664
UID: 0 (root)
GID: 85 (usb)
error: INCORRECT group. Group must be 'lp' |
I dug in the udev rules directory, and found the file /etc/udev/rules.d/55-hpmud.rules which belongs to net-print/hplip-2.7.6, containing: Code: | # TODO: add PROGRAM rule for 7/xx/xx printer class interface
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
ACTION!="add", GOTO="hpmud_rules_end"
SYSFS{idVendor}=="03f0", GROUP="lp"
LABEL="hpmud_rules_end" |
So, the correct udev rule was there, but the printer devices had the wrong groups.
Solution:
Unplug and then replug the USB cables on each printer in turn. After doing just that, hp-check is happy with the permissions, and printing test pages on both printers works.
OR:
Do a reboot.
In the process of getting there I had: Code: | Unmerged hplip.
Deleted both printers from CUPS.
Checked that all old hplip files were gone.
emerged hplip with 2.7.6 unmasked. |
I don't think any of that contributed to the device access problem - but mention it just in case someone else finds it useful.
Many thanks didymos and linuxaddict for providing the clues.
Regards
Ian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|