On Fri, Dec 29, 2000 at 12:43:49AM +0100, Florian Lohoff wrote:
> one of the things i am playing around with is power saving on the laptop.
> and i usually dont use (only for polling email) is irda. So i would like
> to automatically let uucico touch /dev/ircomm and the kernel modules do
> the rest - Just like with alsa.
>
> I have already the irda module pulling the hardware drivers
> via irda-dev-0 ... irda-dev-<irda_devs_limit>
>
> So my modules.conf looks like this:
>
> alias irda0 nsc-ircc
> alias char-major-161 ircomm-tty
> alias tty-ldisc-11 irtty
> alias irda-dev-0 nsc-ircc
> options irda irda_devs_limit=1
> options nsc-ircc dongle_id=0x9
>
> Which is kind of nice - Another two things are needed - Automatically enabling
> discovery and automatically "up"ing "irda0" which i currently fail at.
this can be most easily be done using a post-install command, for
example I use on my Toshiba laptop:
alias char-major-161 ircomm-tty
post-install ircomm-tty modprobe -k irda0
alias irda0 toshoboe
post-install toshoboe irattach irda0 -s
This may seem a bit convoluted, but not doing the modprobe -k irda0
would leave me with a loaded toshoboe without the autoclean flag.
> Interesting would also be an automatic "unloading" of the module if
> idle (no discovered devices for "n" seconds)
No idea with that one, though.
--
Jens-Uwe Mager <pgp-mailto:62CFDB25>
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda