Summary: | Hplip rules.d files cause udevd errors on startup | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robert Bradbury <robert.bradbury> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | betelgeuse, billie, flameeyes, ples349 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | N/A | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Robert Bradbury
2009-07-11 08:42:10 UTC
Can you please test if newer versions especially hplip-3.9.8-r2 fix your problem. The problem still exists with hplip-3.9.12-r1 udev-145 on my amd64 system. The error messages appear when my HP Laserjet is switched on. (In reply to comment #2) > The problem still exists with > > hplip-3.9.12-r1 > > udev-145 > > on my amd64 system. > > The error messages appear when my HP Laserjet is switched on. > Do you get the same results with and without USE udev-acl enabled? I am asking because this flag installs different udev rules. I get the same result. Does this have something to do with extended attributes? The following two commands produce no output: getfattr -d /etc/udev/rules.d/40-hplip.rules getfattr -d /etc/udev/rules.d/56-hpmud_support.rules (In reply to comment #4) > I get the same result. > > Does this have something to do with extended attributes? > > The following two commands produce no output: > > getfattr -d /etc/udev/rules.d/40-hplip.rules > > getfattr -d /etc/udev/rules.d/56-hpmud_support.rules > There is also no output for me. I can not reproduce such behavior, everything is fine here. There are no "udevd-events" messages in my syslog, no errors reported by "udevadm monitor" even when running udev with the "--debug-trace --debug" options. I would be very glad if someone experiencing this problems would open an upstream bug pointing to this bug here. I've the same issue with hplip 3.9.12-r1 and 3.10.2* just upgraded hplip from 2.8.6b to hplip-3.9.12-r1 on amd64. Have the same issue. When starting USB printer (hp lj 1300) the following error appears in log: Mar 22 22:10:55 vl udevd-work[3165]: missing file parameter for attr I've looked into changes in udev.d and saw that 70-hpmud.rules (small enough) was replaced with huge 55-hpmud.rules 56-hpmud_support.rules. The bad thing is that i got also non-working printer and following error: Mar 22 22:18:11 vl hp[5813]: prnt/backend/hp.c 839: ERROR: null print job total=0 The problem is (at least on my system) the line starting with "ATTRS" in "/etc/udev/rules.d/56-hpmud_support.rules": # Check for LaserJet products (0x03f0xx17). ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes" I commented it out, which made the error messages disappear. My printer doesn't need any plugins, so this is safe for me to do. "hp-mkuri -c" would print out a message on the console whether a plugin is required or optional for "hp_model". Does replacing the following line ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes" in 56-hpmud_support.rules with ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", RUN+="/bin/sh -c 'hp_model=%E{ID_MODEL} /usr/bin/hp-mkuri -c &'" fix the problem? (In reply to comment #9) > Does replacing the following line > > ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", > ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes" > > in 56-hpmud_support.rules with > > ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", RUN+="/bin/sh -c > 'hp_model=%E{ID_MODEL} /usr/bin/hp-mkuri -c &'" > > fix the problem? > A patch which includes above fix is in hplip-3.10.2-r2 and above. Please report if this did fix the issue so we can close this bug or need to investigate further. A version which is supposed to fix this issue is in the tree since over two months. Without feedback there is nothing I can do. |