[arch-general] There's no need for acpid

Nicolas Bigaouette nbigaouette at gmail.com
Fri Sep 17 15:14:33 EDT 2010


>
> #!/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.


More information about the arch-general mailing list