Re: There's no need for acpid

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



On Fri, Sep 17, 2010 at 03:14:33PM -0400, Nicolas Bigaouette wrote:
> >
> > #!/bin/bash
> >
> > while read event; do
> >        case "$event" in
> >                ac_adapter*)
> >                        /usr/sbin/laptop_mode auto > /dev/null 2>&1
> >                ;;
> >        esac
> > done < /proc/acpi/event
> >
> > Just a question, does the read event in the loop blocks? I guess so, right?
> That's interesting.

Yes it does. There's no waste of cpu or something else.

-- 
Lukas Grässlin
GnuPG-Key: http://lg.ath.cx/lukasgraesslin@xxxxxxxxxx


[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