Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27141 - [hplip] Invalid keys in the udev rules

Attached to Project: Arch Linux
Opened by Hector Mtz-Seara Monne (hseara) - Sunday, 20 November 2011, 13:15 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 10 January 2012, 03:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

After yesterday update I get the following message when rebooting the
computer (the computer boots fine):

#####################################################
Sun Nov 20 12:45:34 2011: :: Starting UDev Daemon [BUSY] [DONE]
Sun Nov 20 12:45:34 2011: :: Triggering UDev uevents [BUSY] [DONE]
Sun Nov 20 12:45:34 2011: :: Loading User-specified Modules [BUSY] udevd[221]: unknown key 'SYSFS{idVendor}' in /etc/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules:6
Sun Nov 20 12:45:34 2011:
Sun Nov 20 12:45:34 2011: udevd[221]: invalid rule '/etc/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules:6'
Sun Nov 20 12:45:34 2011:
Sun Nov 20 12:45:34 2011: udevd[221]: unknown key 'SYSFS{idVendor}' in /etc/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules:9
Sun Nov 20 12:45:34 2011:
Sun Nov 20 12:45:34 2011: udevd[221]: invalid rule '/etc/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules:9'
Sun Nov 20 12:45:34 2011:
Sun Nov 20 12:45:34 2011: [FAIL]
Sun Nov 20 12:45:34 2011: :: Waiting for UDev uevents to be processed [BUSY] [DONE]
####################################################

The rules in question are those coming with the hplip package for my printer (this is only one example). Since then the printer don't work,
not that I'm surprise. Here is the rule:

######################################################
# Load hp firmware for this printer.

ACTION!="add", GOTO="hpmud_rules_end"

# hp_laserjet_p1005 for Suse 10.3
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="3d17", PROGRAM="/bin/sh -c 'logger -p user.info loading hp_laserjet_p1005 firmware $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/hp-firmware -y3 -s$env{BUSNUM}:$env{DEVNUM} &'"

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

LABEL="hpmud_rules_end"
######################################################


I guess that one of this two updates triggered the problem:
libusb-compat (0.1.3-1 -> 0.1.3-2)
linux (3.1-4 -> 3.1.1-1)

Additional info:
* package version(s)
* config and/or log files etc.

My system is fully updated. extra/hplip 3.11.10-1

Steps to reproduce:
This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 10 January 2012, 03:24 GMT
Reason for closing:  Not a bug
Additional comments about closing:  The SYSFS key was removed by upstream in latest hplip release. I guess the plugin package in AUR will get the same change.
Comment by Giovanni (ksniffer) - Tuesday, 29 November 2011, 09:24 GMT
I can confirm this bug. To fix the "unknown key 'SYSFS{idVendor}'" you should change SYSFS key with ATTR one in all the udev rules files.
Comment by Eric Belanger (Snowman) - Monday, 05 December 2011, 00:56 GMT
/etc/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules isn't in the hplip package. Can you run pacman -Qo on it to see to what package it belongs? Maybe it just an old udev rules that was removed from its package.
Comment by Mr.Smith1974 (Mrs.Smith1974) - Monday, 05 December 2011, 07:56 GMT
[root@arch-desktop Desktop]# yaourt -Qo /etc/udev/rules.d/86-hpmud-hp_laserjet_1005_series.rules
error: No package owns /etc/udev/rules.d/86-hpmud-hp_laserjet_1005_series.rules
Comment by Giovanni (ksniffer) - Monday, 05 December 2011, 08:29 GMT
So what's the solution? remove hplip package, remove all its old rules and reinstall hplip? I've got a lot of udev rules files with this error.
Comment by Hector Mtz-Seara Monne (hseara) - Monday, 05 December 2011, 09:56 GMT
The HP udev rules that you see are not in the package as you correctly say. They get installed when yu configure your printer with hplip after the installation. Then they are automatically downloaded from HP web page. There is a package in AUR which install the same rules but corrected to work with the new udev that we have in arch. This is an upstream problem.

Solution: Delete the hp rules from /etc/udev/rules.d/ and install from AUR hplip-plugin. Every should work then.

You can report the problem upstream. Some of us has already done it but they have ignored us as most of distributions still do not suffer this problem as they use old udev versions. I hope this helps.
Comment by Giovanni (ksniffer) - Monday, 05 December 2011, 10:15 GMT
Mmm, sure I have not to reinstall my HP Laser Jet Printer? Cannot this plugin package to be included into the hplip package or can be hplip-plugin moved from AUR to the standard Arch Repositories and specify to the hplip installation that hplip-plugin is required?
Comment by Hector Mtz-Seara Monne (hseara) - Monday, 05 December 2011, 10:56 GMT
You can make a feature request to hplip but I doubt they are willing to move this package to community as they are proprietary binaries. There is a threat with myself and Tom about this in the arch mailing list where you can find more information.

Loading...