[ltp] Suspend five minutes after closing lid.

Maciej Musial linux-thinkpad@linux-thinkpad.org
Sun, 9 Sep 2007 10:04:49 +0200


Hi,
in /proc/acpi/button/lid/LID/state you've got your lid state
(open/close). Write a script - it should check the state, sleep for 5
minutes, check the state again - if still closed run suspend.
There should be simillar script in /etc/acpi/ (f.e. lid.sh) you can edit it.

isri

2007/9/9, Alex Polite <mylists@polite.se>:
> OK I've now activated acpi on my X30 and everything is working fine.
> Now I'd like to detect lid closure and run my suspend script when the
> lid has been closed for five minutes. What would be the best approach
> for doing that? I guess I could do it from cron but that feels a bit
> clumsy.
>
> alex
>
> --
> http://polite.se
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>