LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Hotplugging laser printer (https://www.linuxquestions.org/questions/linux-hardware-18/hotplugging-laser-printer-787550/)

ramly 02-07-2010 06:04 AM

Hotplugging laser printer
 
Hi,

I installed HP laserprinter 1020 [USB] on pclinux gnome with the help of Printerdrake and it works fine. But, when the system is restarted, printer will not work. This might be due to not hotplugging the printer. How to load the firmware automatically each time when the printer is switched on ?

Thanks in advance.

business_kid 02-08-2010 03:57 AM

I don't know what driver you are using. I have fooxjs, and that put a script in /etc/hotplug/usb which downloads the firmware. If I replug the device, I have to open the lid and that triggers the script again. I'd suggest that route

ramly 02-08-2010 10:45 AM

Hot plugging laser printer
 
Hi,

I use foo2zjs printer.

After googling a lot, I came across a solution that is to execute the following command after switchin on the printer.

cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0

This will work for that session only.

When the printer is restarted we have to execute the command again.

Is there any way to automatically execute this command when the printer is powered on ?

Thanks

David the H. 02-08-2010 11:43 AM

You probably need to write a udev rule for it. Just set it to execute the command when it runs.

http://www.reactivated.net/writing_udev_rules.html

Another possibility is to use halevt to execute it, assuming the device is detected by hal.

http://www.nongnu.org/halevt/


All times are GMT -5. The time now is 03:21 AM.