You are not logged in.

#1 2011-01-24 22:50:13

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

[SOLVED]Libusb needs write access for hp printer to work

I have a HP B010 Photosmart printer/scanner. On status it says "/usr/lib/cups/backend/hp failed" and /var/log/cups/error_log says among a lot of other stuff:

D [24/Jan/2011:23:11:58 +0100] [Job 16] libusb couldn't open USB device /dev/bus/usb/002/006: Permission denied.
D [24/Jan/2011:23:11:58 +0100] [Job 16] libusb requires write access to USB device nodes.
D [24/Jan/2011:23:11:58 +0100] [Job 16] prnt/backend/hp.c 745: ERROR: open device failed stat=12: hp:/usb/Photosmart_B010_seriesserial$
D [24/Jan/2011:23:11:58 +0100] [Job 16] Backend returned status 1 (failed)

So I searched and found out it may have to do with libusb and maybe I can fix this with a udev rule like in this thread but I don't know what to write. Or is something else wrong? Please help, ask for more info if needed; I have to print now using ubuntu in virtualbox, which is insane. Cups 1.4.6-1, hplip 3.10.9-2 up to date, driver hpcups 3.10.9.

Last edited by VCoolio (2011-06-18 11:09:14)

Offline

#2 2011-01-24 23:17:34

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED]Libusb needs write access for hp printer to work

Does this help at all? There are some other wiki notes about printers....I had to fight with my Canon a bit before it worked too.

Scott

Offline

#3 2011-01-25 09:06:18

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

Re: [SOLVED]Libusb needs write access for hp printer to work

Darn, I always forget not only to google stuff but also use the wiki search. But dbus is running. Avahi-daemon is also running, but maybe not in the right way. I start my wm (enlightenment) this way in .xinitrc if it matters:

if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi

exec ck-launch-session /opt/e17/bin/enlightenment_start.sh

There is some more in the cups wiki I need to check, but no time now, will report back. But ffs, why wouldn't a printer work if permissions are 664 instead of 660, that's absurd. Get to a sane permissions policy already.

Last edited by VCoolio (2011-01-25 09:18:48)

Offline

#4 2011-01-25 17:38:48

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

Re: [SOLVED]Libusb needs write access for hp printer to work

Ok, so dbus is running like I said above, avahi is installed. Module usblp is disabled. Permissions for the printer in /usb/bus/usb/002 are:
664 crw-rw-r--+ 1 root lp   189, 136 Jan 25 18:23 009

It seems necessary to get that to 660 but I don't see how. The wiki points to 'below' for udev rules for a printer/scanner device, but I don't see them. If this is the issue, please tell me what lines udev needs. If something else, I'm open for advise.

Offline

#5 2011-01-25 18:29:10

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED]Libusb needs write access for hp printer to work

Scroll up just a bit in the wiki to here and create the udev rule according to your printer parameters from lsusb.

Scott

Offline

#6 2011-01-25 22:39:12

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

Re: [SOLVED]Libusb needs write access for hp printer to work

Ok. Did that:

prompt$ cat /etc/udev/rules.d/10-usbprinter.rules
ATTR{idVendor}=="03f0", ATTR{idProduct}=="9711", MODE:="0660", GROUP:="lp"

The stuff in /lib/udev/rules.d/50-udev-default.rules that the wiki talks about was already there.

udevadm control --reload-rules, reconnected printer, restarted cups. Same thing: backend hp failed. Only now the libusb lines are gone from the error_log file. Stuff it says now:

D [25/Jan/2011:23:36:18 +0100] cupsdReadClient: 16 WAITING Closing on EOF
D [25/Jan/2011:23:36:18 +0100] cupsdCloseClient: 16
D [25/Jan/2011:23:36:18 +0100] cupsdSetBusyState: Dirty files
D [25/Jan/2011:23:36:18 +0100] PID 1519 (/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
D [25/Jan/2011:23:36:18 +0100] cupsdReadClient: 12 GET /cups.css HTTP/1.1
D [25/Jan/2011:23:36:18 +0100] cupsdSetBusyState: Active clients and dirty files
D [25/Jan/2011:23:36:18 +0100] cupsdAuthorize: No authentication data provided.
D [25/Jan/2011:23:36:18 +0100] cupsdSetBusyState: Dirty files
D [25/Jan/2011:23:36:18 +0100] cupsdReadClient: 12 GET /images/left.gif HTTP/1.1
D [25/Jan/2011:23:36:18 +0100] cupsdSetBusyState: Active clients and dirty files
D [25/Jan/2011:23:36:18 +0100] cupsdAuthorize: No authentication data provided.
D [25/Jan/2011:23:36:18 +0100] cupsdSetBusyState: Dirty files
D [25/Jan/2011:23:36:18 +0100] cupsdAcceptClient: 15 from localhost:631 (IPv4)
D [25/Jan/2011:23:36:18 +0100] cupsdReadClient: 15 GET /images/right.gif HTTP/1.1
D [25/Jan/2011:23:36:18 +0100] cupsdSetBusyState: Active clients and dirty files
D [25/Jan/2011:23:36:18 +0100] cupsdAuthorize: No authentication data provided.
D [25/Jan/2011:23:36:18 +0100] cupsdSetBusyState: Dirty files

Is this in some way useful info? I'm pretty much lost here. Thanks for replying.

Offline

#7 2011-01-25 22:59:19

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED]Libusb needs write access for hp printer to work

Ummm, well try and blacklist the usblp module in /etc/rc.conf, then unplug your printer, make sure the usblp module is unloaded, restart cups, then plug in your printer and make sure the usblp module is STIll not loaded and the 'lp' (I think) module is. Then uninstall and reinstall your printer again. If that doesn't work, I'm not sure what to tell you!! Like the wiki says, some printers need that module blacklisted...maybe yours does??

Good luck!
Scott

Offline

#8 2011-01-26 22:43:31

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

Re: [SOLVED]Libusb needs write access for hp printer to work

I should have mentioned that I already disabled the usblp module. I don't know of another module to replace it; I don't have an lp module listed. I'm very curious about what module you mean.

So the backend failed thing is still there. On ubuntu 10.10 in virtualbox adding the printer was amazingly easy. Does someone know what app/daemon/thingy does this? On connecting the printer an icon appeared in the panel that did everything. Maybe there is something I can install to do the same on arch? Else I'm afraid arch is hugely failing to add an hp printer, which is not a particularly linux-unfriendly device. [add a lot of frustrated rant here]

Offline

#9 2011-01-27 01:35:30

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED]Libusb needs write access for hp printer to work

Did you try it with the uspblp module after adding the udev rule to fix the permissions? I hear your frustrations!

Offline

#10 2011-01-27 21:42:24

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

Re: [SOLVED]Libusb needs write access for hp printer to work

Thanks man, but it just keeps whining that backend hp failed. I wish it had the guts to tell what's wrong.

Offline

#11 2011-06-18 11:08:49

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

Re: [SOLVED]Libusb needs write access for hp printer to work

SOLVED. I got completely fed up with this hp crap and bought a samsung scx3200. Works right out of the box. HP: wouldn't grab the paper (I had to manually shove in every single page), arch wouldn't print to it (hp failed, read above), it never printed color right, cartridges were empty after maybe 30 prints, and it got me a heart condition. What a complete failure. I hope samsung does a better job; the start is very promising. Thanks for trying to help out. Peace.

Offline

Board footer

Powered by FluxBB