I have installed cups, hplip other dependency packages on openSUSE 12.3 for my HP 1020 Laserjet printer. I also installed firmware and proprietary plugin
by running hp-setup -i in CLI Terminal. Now my problem is every time I power off the printer and power on again the firmware is not loading automatically
and I had to manually load firmware every time by either running hp-firmware in CLI mode or clicking download firmware button in HP toolbox GUI. Any one having
any idea regarding the solution.
On 05/06/2013 01:46 AM, shamik76 wrote:
>
> I have installed cups, hplip other dependency packages on openSUSE 12.3
> for my HP 1020 Laserjet printer. I also installed firmware and
> proprietary plugin
> by running hp-setup -i in CLI Terminal. Now my problem is every time I
> power off the printer and power on again the firmware is not loading
> automatically
> and I had to manually load firmware every time by either running
> hp-firmware in CLI mode or clicking download firmware button in HP
> toolbox GUI. Any one having
> any idea regarding the solution.
Does the output of dmesg record an event when the printer is powered on? If so,
you should also see a udev event and be able to write a udev rule to load the
firmware.
The hplip package includes udev rules (86-hpmud_plugin.rules) for handling firmware downloading when the printer hardware is detected
# rpm -ql hplip
/etc/udev
/etc/udev/rules.d
/etc/udev/rules.d/55-hpmud.rules
/etc/udev/rules.d/56-hpmud_add_printer.rules
/etc/udev/rules.d/56-hpmud_support.rules
/etc/udev/rules.d/86-hpmud_plugin.rules
I don’t have HP hardware to test with, but the rules file of interest (hplip-3.12.4-3.1.2) I have is as follows
# Load hp firmware for this printer.
ACTION!="add", GOTO="hpmud_plugin_rules_end"
# hp_Marvel_Device (These printer requires the plugin files. installling when device is detected)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="03f0", ATTR{idProduct}=="??17", PROGRAM="/bin/sh -c 'logger -p user.info loading hp_printer_device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/hp-check-plugin -m &'"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="03f0", ATTR{idProduct}=="??2a", PROGRAM="/bin/sh -c 'logger -p user.info loading hp_printer_device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/hp-check-plugin -m &'"
LABEL="hpmud_plugin_rules_end"
BTW, do you have a local copy of the firmware installed on your system?
Here is the relevant portion of output of dmesg | gerp usb after the printer is powered on.
1284.003209] usb 2-1.5: Product: HP LaserJet 1020
1284.003212] usb 2-1.5: Manufacturer: Hewlett-Packard
1284.003214] usb 2-1.5: SerialNumber: S404EKH
1284.073112] usblp 2-1.5:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
1284.073161] usbcore: registered new interface driver usblp
1843.426880] usbcore: deregistering interface driver usblp
1843.427047] usblp0: removed
Moreover I could not locate the firmware file sihp1020.dl
Another thing I would like to mention that at first when I power on the printer, modprobe -r -v usblp
was showing the following output.
rmmod /lib/modules/3.9.0-1-desktop/kernel/drivers/usb/class/usblp.ko
And /dev/usb/lp0 created.
But later on the same command did not show any message at all.
And /dev/usb/lp0 deleted
Apparently the printer driver is registered initially but afterwards it was deregistered .
Another thing I would like to mention that at first when I power on the printer, modprobe -r -v usblp
was showing the following output.
rmmod /lib/modules/3.9.0-1-desktop/kernel/drivers/usb/class/usblp.ko
And /dev/usb/lp0 created.
But later on the same command did not show any message at all.
And /dev/usb/lp0 deleted
Apparently the printer driver is registered initially but afterwards it was deregistered .
AFAIU, the usblp module is used to load the firmware, but is not involved with printing, (the newer usb subsystem does that), so it is then removed.
I had faced similar problem with ubuntu 14.04, hpw ever the same printer worked fine with ubuntu 12.04 very well.