LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-13-2009, 06:32 PM   #1
cizzi
Member
 
Registered: Jun 2001
Posts: 108

Rep: Reputation: 15
gentoo complaining at boot


I'm getting the following message during the boot process on a gentoo system.

"udevd-event[9318] missing file parameter for attr"

google searches did not solve my problem however I do know what triggers this message to appear, I have a laserjet hp 1012 printer configured and I use hplip i believe to make it work correctly, I believe this causes the message to appear, without this package the printer does not work, with this package it works but the message appears

how do I get rid of this message and what is it complaining about?

thanks
 
Old 11-14-2009, 08:12 AM   #2
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 4,258

Rep: Reputation: Disabled
hi

Its likely you have a udev rule in /etc/udev/rules.d or somewhere in folder one level up.

When you find it....post the contents in a code box pls

at some point in time the rule had a setting for attribute ...attr....and this has changed or your printer has changed.

hplip has changed as well so you may like to do a full dist-upgrade ....I have a bubblejet but hplip has changed.
 
Old 11-14-2009, 11:43 AM   #3
cizzi
Member
 
Registered: Jun 2001
Posts: 108

Original Poster
Rep: Reputation: 15
i have 2 related files:

country rules.d # cat 55-hpmud.rules
# HPLIP udev rules file for HP printer and all-in-one products.
#
# Notes for downstream implementers.
#
# 1. The 55-hpmud.rules name was chosen in order to run after the default udev rule /etc/udev/rules.d/50-udev.rules. See
# "Writing udev rules" Ver 0.74, Daniel Drake. Although it seems 50-udev.rules is no longer used I continue to reuse "55-"
# name for backward compatibility with older distros. 2/11/2009, D Suffield
#
# 2. It seems SFSFS has been replaced or depreciated by ATTR/ATTRS, but I continue to use SFSFS in order to be compatible with
# older distros. SFSFS was defined in "Writing udev rules" Ver 0.72, Daniel Drake. 2/11/2009, D Suffield
#
# 3. This rules file is an attempt at being compatable with all distros. Feel free to make your own changes and if you feel your
# changes are not distro specific please send your patch to us. 2/11/2009, D Suffield
#

ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="ppdev", OWNER="lp", GROUP="lp", MODE="0660"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hplip_pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"

LABEL="hplip_pid_test"

# Check for AiO products (0x03f0xx11).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??11", OWNER="lp", GROUP="lp", MODE="660"

# Check for Photosmart products without wildcard since cameras and scanners also used (0x03f0xx02).
# The xx02 pid has been retired so this explicit list should not change.
# photosmart_d2300_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c302", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_100
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3802", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_1115
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3402", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_1215
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3202", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_1218
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3302", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_130
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3902", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_1315
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3602", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_140_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1002", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_230
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3502", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_240_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1102", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_320_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1202", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_330_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1602", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_370_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1302", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_380_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1702", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_420_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1502", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_470_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1802", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7150
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3a02", OWNER="lp", GROUP="lp", MODE="660"
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3b02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7200_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b002", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7345
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2002", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7350
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3c02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7400_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b802", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7550
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3e02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7600_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b202", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7700_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b402", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7800_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c002", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_7900_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b602", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_8000_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c102", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_8100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="ba02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_8200_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c202", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_8400_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="bb02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_8700_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="bc02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a310_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1d02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a320_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1e02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a430_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1902", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a440_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1f02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a510_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1a02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a520_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2602", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a530_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2b02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a610_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1b02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a620_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2702", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a630_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2c02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a710_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1c02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_a820_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2902", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_d5060_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c802", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_d5100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c402", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_d6100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c502", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_d7100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c602", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_d7300_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c702", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_pro_b8300_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="be02", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_b8800_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="d002", OWNER="lp", GROUP="lp", MODE="660"
# photosmart_pro_b9100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="bd02", OWNER="lp", GROUP="lp", MODE="660"
# Photosmart_B8500_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="d102", OWNER="lp", GROUP="lp", MODE="660"

# Check for Business Inkjet products (0x03f0xx12).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??12", OWNER="lp", GROUP="lp", MODE="660"
# Check for Deskjet products (0x03f0xx04).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??04", OWNER="lp", GROUP="lp", MODE="660"
# Check for LaserJet products (0x03f0xx17).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", OWNER="lp", GROUP="lp", MODE="660"

# Removed the following rule because FHS states that /etc should be reserved for static files only. This
# functionality should be done in a deb/rpm post install script. 2/11/2009, D Suffield
#
# If sane-bankends is installed add hpaio backend support to dll.conf if needed.
# 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'"

LABEL="hpmud_rules_end"

and the second file is:

country rules.d # cat 56-hpmud_support.rules
# HPLIP udev rules file. Notify console user if plugin support is required for this device.

ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"

LABEL="pid_test"

# Check for LaserJet products (0x03f0xx17).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes"

ENV{hp_test}=="yes", RUN+="bin/sh -c '/usr/bin/hp-mkuri -c &'"
 
Old 11-14-2009, 02:14 PM   #4
jtshaw
Moderator
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 63
Moved: This thread is more suitable in Linux Distributions -> Gentoo and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-14-2009, 06:41 PM   #5
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 4,258

Rep: Reputation: Disabled
hi

I asked you put that in a code box...do you not know how?

With root powers move that file somewhere out of /etc

and put this file in and then reboot to test if you have better luck.

You can give it a different filename
suggest 11-hp.rules



Code:
#Own udev rule for HP Laserjet 1000
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="hp LaserJet 1000", NAME="usb/%k", \
	SYMLINK+="hplj1000-%n", MODE="0666", RUN+="/usr/sbin/hplj1000" 
#Own udev rule for HP Laserjet 1005
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="hp LaserJet 1005 series", NAME="usb/%k", \
	SYMLINK+="hplj1005-%n", MODE="0666", RUN+="/usr/sbin/hplj1005" 
#Own udev rule for HP Laserjet 1018
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="HP LaserJet 1018", NAME="usb/%k", \
	SYMLINK+="hplj1018-%n", MODE="0666", RUN+="/usr/sbin/hplj1018" 
#Own udev rule for HP Laserjet 1020
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="HP LaserJet 1020", NAME="usb/%k", \
	SYMLINK+="hplj1020-%n", MODE="0666", RUN+="/usr/sbin/hplj1020" 
#Own udev rule for HP Laserjet P1005
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="HP LaserJet P1005", NAME="usb/%k", \
	SYMLINK+="hpljP1005-%n", MODE="0666", RUN+="/usr/sbin/hpljP1005" 
#Own udev rule for HP Laserjet P1006
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="HP LaserJet P1006", NAME="usb/%k", \
	SYMLINK+="hpljP1006-%n", MODE="0666", RUN+="/usr/sbin/hpljP1006" 
#Own udev rule for HP Laserjet P1007
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="HP LaserJet P1007", NAME="usb/%k", \
	SYMLINK+="hpljP1007-%n", MODE="0666", RUN+="/usr/sbin/hpljP1007" 
#Own udev rule for HP Laserjet P1008
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="HP LaserJet P1008", NAME="usb/%k", \
	SYMLINK+="hpljP1008-%n", MODE="0666", RUN+="/usr/sbin/hpljP1008" 
#Own udev rule for HP Laserjet P1505
KERNEL=="lp*", BUS=="usb", SYSFS{idVendor}=="03f0", \
	SYSFS{product}=="HP LaserJet P1505", NAME="usb/%k", \
	SYMLINK+="hpljP1505-%n", MODE="0666", RUN+="/usr/sbin/hpljP1505"
it does not actually specify 1012 but its a lot closer than yours was.

22) Now if that new one fails....move it out of /etc.....and none in there....reboot computer with printer turned on already pls

Last edited by aus9; 11-14-2009 at 06:44 PM.
 
Old 11-15-2009, 07:39 AM   #6
cizzi
Member
 
Registered: Jun 2001
Posts: 108

Original Poster
Rep: Reputation: 15
no i do not know what a code box was, I tried both your suggestions and I still get the same result, not a big deal I guess but its annoying to see that message at boot
 
Old 11-15-2009, 10:01 AM   #7
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
What version of HPLIP is installed ... maybe you should upgrade it (if it is not the latest).
 
Old 11-22-2009, 10:40 AM   #8
cizzi
Member
 
Registered: Jun 2001
Posts: 108

Original Poster
Rep: Reputation: 15
i'm fairly new to gentoo and i broke my system a few times trying to upgrade system wide packages, I still have this error at boot but the printer works fine, I'd like to get rid of it though

**update i just checked with emerge --search hplip and its allready at the current version

Last edited by cizzi; 11-22-2009 at 10:47 AM.
 
Old 11-22-2009, 01:32 PM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 2,762

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
Hello cizzi,

please post the output of
Code:
emerge -pv cups hplip udev
Markus
 
Old 11-22-2009, 04:50 PM   #10
cizzi
Member
 
Registered: Jun 2001
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by markush View Post
Hello cizzi,

please post the output of
Code:
emerge -pv cups hplip udev
Markus
Markus,

I resolved my problem by updating all the packages on my system. However only 1 package didn't want to update so I had to mask it and it happenned to be =sys-fs/udev-146-r1 (I put this in package.mask).

Here's the output of your command

Quote:
country cizzi # emerge -pv cups hplip udev

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-fs/udev-141 USE="(-selinux)" 0 kB
[ebuild R ] net-print/cups-1.3.10-r2 USE="X acl avahi dbus jpeg kerberos ldap pam perl python ssl -gnutls -java -php -png -ppds -samba -slp -static -tiff -xinetd -zeroconf" LINGUAS="-de -en -es -et -fr -he -id -it -ja -pl -sv -zh_TW" 0 kB
[ebuild R ] net-print/hplip-2.8.6b USE="dbus -cupsddk -doc -fax -minimal -parport -ppds -qt3 -qt4 -scanner -snmp" 0 kB

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
country cizzi #
Why wouldn't that package update? I did emerge -uD --ask world and all the others updated fine.

Last edited by cizzi; 11-22-2009 at 04:51 PM.
 
Old 11-23-2009, 01:50 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 2,762

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
Hello cizzy,

I'd recommend to build cups and hplib both with ppds
Code:
USE="ppds" emerge cups hplip
These are the printer-definitions for hplip.
I have a HP-Printer as well (PSC 1410) and after installing the printer in cups (using the proper ppd-file) I had never any complaints from udev.

Markus
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toshiba labtop complaining can't find space when dual boot XP with Linux judeitoyah Linux - Newbie 1 09-17-2008 12:54 PM
xp/gentoo dual boot , gentoo on usb external hard drive gentoo2006 Linux - Laptop and Netbook 2 09-16-2007 11:55 AM
QT complaining wmeler Linux - Software 0 05-13-2004 08:03 PM
g++ typecast complaining too much! The_Nerd Programming 12 05-11-2004 06:52 PM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 04:28 PM


All times are GMT -5. The time now is 03:51 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration