Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
{SOLVED]Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ipic
Guru
Guru


Joined: 29 Dec 2003
Posts: 433
Location: UK

PostPosted: Fri Jul 27, 2007 10:49 pm    Post subject: {SOLVED]Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jul 27, 2007 11:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 810

PostPosted: Sat Jul 28, 2007 4:41 pm    Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails Reply with quote

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
View user's profile Send private message
ipic
Guru
Guru


Joined: 29 Dec 2003
Posts: 433
Location: UK

PostPosted: Sat Jul 28, 2007 8:45 pm    Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Sat Jul 28, 2007 9:07 pm    Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails Reply with quote

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
View user's profile Send private message
linuxaddict
n00b
n00b


Joined: 29 Aug 2004
Posts: 6
Location: UK

PostPosted: Sat Jul 28, 2007 11:01 pm    Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails Reply with quote

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
View user's profile Send private message
ipic
Guru
Guru


Joined: 29 Dec 2003
Posts: 433
Location: UK

PostPosted: Sun Jul 29, 2007 12:47 pm    Post subject: Re: Upgrade hplip 1.7.4a-r1->2.7.6: hpijs fails Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum