You are not logged in.

#1 2011-10-28 01:29:11

livinglifeback
Member
Registered: 2009-10-24
Posts: 29

[solved] hp-firmware using too much ram on boot to connecting printer

I have an HP-1102w  printer, my desktop has been on for 14 days and there were apparently quite a few updates.  I restarted my computer and now it starts up with 40% ram being using ps ax i found

python2 /usr/bin/hp-firmware -y3 -s006:001

that line with varying values for the last entry shows up 121 times on boot every time I boot.  I'm not sure if this is related but at the same time my computer lost the ability to connect to the printer and dmesg | tail shows

[135688.073159] usb 5-2: new high speed USB device number 3 using ehci_hcd
[135688.198114] scsi15 : usb-storage 5-2:1.0
[135689.206164] scsi 15:0:0:0: CD-ROM            HP       Smart Install    1.0  PQ: 0 ANSI: 2
[135689.236283] sr1: scsi3-mmc drive: 0x/0x caddy
[135689.236419] sr 15:0:0:0: Attached scsi CD-ROM sr1

I believe that that is how HP lets computers install the printer software without connecting to the web or sending you a physical disc normally. I can restart or unplug/plug the printer and a message indicating that the printer has been recognized but lately I have not had success with that.

I can live without a printer but the 121 python processes is really annoying to have to kill at boot.

Edit: I posted the wrong dmesg output fixed

Last edited by livinglifeback (2011-11-04 21:53:07)

Offline

#2 2011-10-31 17:37:58

akjizn
Member
Registered: 2011-10-31
Posts: 3

Re: [solved] hp-firmware using too much ram on boot to connecting printer

I have an HP-1006p  printer. I have a similar problem. Today, after updating it occurred.
The problem arises because of hplip (/usr/bin/hp-firmware).
Very interesting listing:

ls /etc/udev/rules.d/
10-vboxdrv.rules
50-embedded_devices.rules
86-hpmud-hp_laserjet_1000.rules
86-hpmud-hp_laserjet_1005_series.rules
86-hpmud-hp_laserjet_1018.rules
86-hpmud-hp_laserjet_1020.rules
86-hpmud-hp_laserjet_p1005.rules
86-hpmud-hp_laserjet_p1006.rules
86-hpmud-hp_laserjet_p1007.rules
86-hpmud-hp_laserjet_p1008.rules
86-hpmud-hp_laserjet_p1505.rules
86-hpmud-hp_laserjet_professional_p1102.rules
86-hpmud-hp_laserjet_professional_p1102w.rules
86-hpmud-hp_laserjet_professional_p1566.rules

Moreover, in these rules is the problem! (Since the problem occurs after the start of udev and see code below)

cat /etc/udev/rules.d/86-hpmud-hp_laserjet_p1006.rules 
# Load hp firmware for this printer.

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

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

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

LABEL="hpmud_rules_end"

It remains only to understand this and solve the problem ...
I stopped at this stage the solution to the problem.

Offline

#3 2011-11-02 13:28:51

jiak
Member
Registered: 2010-10-17
Posts: 14

Re: [solved] hp-firmware using too much ram on boot to connecting printer

Same problem here.

There are about 40 (!) python2 processes in my task manager, eating up a LOT of RAM.

Offline

#4 2011-11-02 17:00:35

akjizn
Member
Registered: 2011-10-31
Posts: 3

Re: [solved] hp-firmware using too much ram on boot to connecting printer

There are about 40 (!) python2 processes in my task manager, eating up a LOT of RAM.

It is not enough. Typically, 121 processes smile)
A similar theme: http://archlinux.org.ru/forum/viewtopic.php?f=17&t=7332
There you will gather useful information that can lead you to solving this problem. Necessarily write about their results.

Offline

#5 2011-11-03 19:00:31

akjizn
Member
Registered: 2011-10-31
Posts: 3

Re: [solved] hp-firmware using too much ram on boot to connecting printer

This problem is solved!!!))

Solution:

In the files:

ls /etc/udev/rules.d/86-*.rules

change the name of instructions SYSFS to ATTRS direct editing.
That all, enjoy wink

P.S. A detailed description of the problem and solution: http://archlinux.org.ru/forum/viewtopic.php?f=17&t=7332

Last edited by akjizn (2011-11-03 19:02:15)

Offline

#6 2011-11-03 19:27:55

livinglifeback
Member
Registered: 2009-10-24
Posts: 29

Re: [solved] hp-firmware using too much ram on boot to connecting printer

Thank you, I'll try it in a bit and post the solution and results.

Offline

#7 2011-11-04 19:00:18

jiak
Member
Registered: 2010-10-17
Posts: 14

Re: [solved] hp-firmware using too much ram on boot to connecting printer

akjizn wrote:

This problem is solved!!!))

Solution:

In the files:

ls /etc/udev/rules.d/86-*.rules

change the name of instructions SYSFS to ATTRS direct editing.
That all, enjoy wink

P.S. A detailed description of the problem and solution: http://archlinux.org.ru/forum/viewtopic.php?f=17&t=7332

This fixed it for me. Although I blindly followed your instructions and I would like to know what this problem is about.

Last edited by jiak (2011-11-04 19:05:33)

Offline

#8 2011-11-04 20:49:51

livinglifeback
Member
Registered: 2009-10-24
Posts: 29

Re: [solved] hp-firmware using too much ram on boot to connecting printer

Worked for me as well marking as solved (instead of editing all the rules i just edited the one for my model printer and deleted the rest).  It seems that last year SYSFS was depreciated or changed in favor of ATTRS . Similar bugs have been reported as far back as 2010 link.

Offline

Board footer

Powered by FluxBB