Re: Unload module after printer startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Aug 03, 2010 at 07:12:40AM -0300, Mario Daniel Carugno wrote:

> I've a hp 1020 printer. In order to work, the module usblp must not be loaded.
> So, i remove that from DAEMONS section at /etc/rc.conf
> When i boot Arch, that works fine. The module is not loaded, and the
> printer works.
> But when i turn off, and then turn on the printer, the usblp module is
> loaded, and the printer doesn't print.
> How can i prevent this loading ? I guess it's a udev rule, but i don't
> know how to configure it.
> Please, anybody can give a hand on this ?

I can't give you the details but it shoul be possible.
You'll have to do some reading on writing udev rules,
there are resources on the web about that. AFAIK you
can run arbitrary scripts from udev.

Find the udev rule that loads the modules when the printer is
switched on, and modify it so it calls a script (probably in
the background) that loads the module (modprobe), waits for
some seconds (sleep) and the removes the module (rmmod).

Ciao,

-- 
FA

There are three of them, and Alleline.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux