hpaio entry added automatically to /etc/sane.d/dll.conf

Bug #1560388 reported by Rolf Leggewie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned
hplip (Ubuntu)
Fix Released
Medium
Unassigned
Trusty
Confirmed
Undecided
Unassigned

Bug Description

When plugging in my HP Officejet 6210 via USB an entry "hpaio" is added to /etc/sane.d/dll.conf. This breaks scanbd.

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

I have checked and the Ubuntu package of HPLIP does not modify dll.conf. Instead, it adds an extra config file in /etc/sane.d/dll.d/. Probably you have installed HPLIP from the original source. Adding upstream task ...

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Thank you for the quick response.

I'm very hesitant to install third-party packages and "apt-cache policy hplip" confirms that I have the trusty package installed. I ran "dpkg -L hplip" and then had a closer look at /lib/udev/rules.d/56-hpmud.rules. Line 18 might be causing this, I suppose.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

It is lines 20 and 21 in xenial source now.

$ grep -rn hpaio data/rules/
data/rules/56-hpmud_sysfs.rules:12:SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="????", OWNER="root", GROUP="lp", MODE="0666", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"
data/rules/56-hpmud_sysfs.rules:20:# If sane-bankends is installed add hpaio backend support to dll.conf if needed.
data/rules/56-hpmud_sysfs.rules:21:ENV{sane_hpaio}=="yes", RUN+="/bin/sh -c 'grep -q ^#hpaio /etc/sane.d/dll.conf;if [ $$? -eq 0 ];then sed -i -e s/^#hpaio/hpaio/ /etc/sane.d/dll.conf;else grep -q ^hpaio /etc/sane.d/dll.conf;if [ $$? -ne 0 ];then echo hpaio >>/etc/sane.d/dll.conf;fi;fi'"

Changed in hplip (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Sorry for the bad line breaks. Just check the file at http://anonscm.debian.org/cgit/printing/hplip.git/tree/data/rules/56-hpmud_sysfs.rules lines 20f

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

I do not see where data/rules/56-hpmud_sysfs.rules gets installed into the system.

Can you run

grep hpaio /*/udev/rules.d/*

and post the output here?

For each resulting file, can you run

dpkg -S <file>

If you remove the hpaio line from /etc/sane.d/dll.conf does scnbd return to work?

If you unplug and re-plug your HP device, does the "hpaio" line re-added?

Does one of the resulting files of the search above contain a line like

ENV{sane_hpaio}=="yes", RUN+="/bin/sh -c 'grep -q ^#hpaio /etc/sane.d/dll.conf;if [ $$? -eq 0 ];then sed -i -e s/^#hpaio/hpaio/ /etc/sane.d/dll.conf;else grep -q ^hpaio /etc/sane.d/dll.conf;if [ $$? -ne 0 ];then echo hpaio >>/etc/sane.d/dll.conf;fi;fi'"

which one(s)? To which package does it belong ("dpkg -S <file>")?

Changed in hplip (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Till, #2 has the answer to your question.

/lib/udev/rules.d/56-hpmud.rules is the relevant file when installed, coming from data/rules/56-hpmud_sysfs.rules in source

Changed in hplip (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

In Xenial there is no modification of dll.conf in /lib/udev/rules.d/56-hpmud.rules, so it seems that this got fixed during the time.

I recommend to upgrade from Trusty to Xenial as soon as Xenial gets released next month.

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

You could also try to replace your /lib/udev/rules.d/56-hpmud.rules by the one from Xenial or at least to comment out the line which modifies dll.conf.

Changed in hplip (Ubuntu):
status: Triaged → Fix Released
Changed in hplip (Ubuntu Trusty):
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

I'm sorry, but I think you are wrong again about "nothing going on here". I already pointed several times to the *current* code, so Xenial most certainly is affected.

http://anonscm.debian.org/cgit/printing/hplip.git/tree/data/rules/56-hpmud_sysfs.rules lines 20f

Changed in hplip (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

OK, I take that back. Inspection of the files in the xenial package suggests that this might indeed be fixed in the latest development release.

Changed in hplip (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

It looks like this was fixed in r53 in wily.

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/hplip/wily-proposed/revision/53

Till, do you suggest to backport the entire file56-hpmud.rules from xenial or simply drop lines 18f which are responsible for meddling with /etc/sane.d/dll.conf?

Revision history for this message
Rolf Leggewie (r0lf) wrote :

This has been an upstream fix. Closing upstream task.

Changed in hplip:
status: New → Fix Released
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.