Re: Activating ACPI suspend on lid close?
Eric Anderson <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Message-ID | <[email protected]> |
Eric Anderson wrote: [..snip..] > > and /etc/rc.lid looks like: > sync && sync && sync > > if [ $1 = 0x00 ]; then > logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'` > /etc/rc.suspend acpi 3 > else > logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'` > /etc/rc.resume acpi 3 > fi > One slight modification to the rc.lid script: add: ( sleep 2 ; ataidle -s 0 0) & before the "/etc/rc.suspend acpi 3" line to have it spin down and suspend the disk also. Eric -- ------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Today is the tomorrow you worried about yesterday. ------------------------------------------------------------------ _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "[email protected]"