LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-07-2010, 06:04 AM   #1
ramly
LQ Newbie
 
Registered: Nov 2007
Posts: 13

Rep: Reputation: 0
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.

Last edited by ramly; 02-07-2010 at 12:25 PM. Reason: to make the idea clear
 
Old 02-08-2010, 03:57 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
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
 
Old 02-08-2010, 10:45 AM   #3
ramly
LQ Newbie
 
Registered: Nov 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Unhappy 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
 
Old 02-08-2010, 11:43 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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/
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer Recommendation (Slackware 12.2, looking for laser printer for network) thegoofeedude Slackware 23 08-27-2009 10:28 PM
Fedora Printer Problem: Brother Laser Printer drops the first one or two centimeters merlinsenger Linux - Newbie 2 05-24-2008 06:13 AM
Laser printer iqbala Linux - Newbie 1 04-17-2005 12:41 PM
Hotplugging Printer(?) guygriffiths Linux - Hardware 1 01-04-2004 08:35 PM
Laser Printer mikeshn Linux - Hardware 6 11-11-2003 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration