packaging: hplip udev rules conflict with foo2zjs

Bug #500089 reported by Olivier Mengué
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned
foo2zjs (Ubuntu)
New
Undecided
Unassigned
hplip (Ubuntu)
New
Undecided
Unassigned

Bug Description

foo2zjs and hplip are both printer drivers for HP LaserJet 1018 (and others).
Both install their own udev rules. Those rules are conflicting as both try to upload the firmware to the printer:

From /lib/udev/rules.d/85-hplj10xx.rules (foo2zjs):
#Own udev rule for HP Laserjet 1018
KERNEL=="lp*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="03f0", ATTRS{product}=="HP LaserJet 1018", SYMLINK+="hplj1018-%n", RUN+="/usr/sbin/hplj1018"

From /etc/udev/rules.d/86-
# hp_laserjet_1018
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="4117", PROGRAM="/bin/sh -c 'X=%k; X=$${X#usbdev}; B=$${X%%%%.*}; D=$${X#*.}; logger -p user.info loading hp_laserjet_1018 firmware $$B $$D; printf %%03i:%%03i $$B $$D'", RUN+="/bin/sh -c '/usr/bin/hp-firmware -y3 -s%c &'"

As those rules are not declared in the same way they are probably both executed (sorry I don't know much udev) and the result is that the firmware upload fails. When I uninstalled foo2zjs, the printer worked.

So I think that foo2zjs should be declared as incompatible with hplip in the hplip .deb.

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) wrote :

looks like foo2zjs is removing the udev rule files of HPLIP
http://foo2zjs.rkkda.com/ChangeLog

Thanks,
Naga Samrat Chowdary, Narla

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have informed Rick Richardson, the upstream maintainer of foo2zjs, but in general, the firmware upload program (also the ones from HP) should check whether the printer is already busy and if so, wait until it gets free. Then it should check via the device ID whether the firmware is already there and only if not start to upload the firmware.

Revision history for this message
Zoubidoo (zoubidoo) wrote :
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

This has been fixed in foo2zjs 20110210dfsg-1ubuntu2.1 from natty-updates, closing as a duplicate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.