Sleep Button Debounce
Hello,
I have set up a script to put my system i8500 into sleep mode 1.
The main problem is that there is no way to find out if the button is being released or pressed within ACPI (aka closed/open on lid).
So as a result, when I suspend, and resume, I drop back into suspend as the SBTN event fires on release.
Any thoughts on doing this pure ACPI? (apart from a userland counting script).
Regards,
Matthew
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
For example:
/etc/acpi/actions/powerchange
#!/bin/sh
status=sed "s/state: *//" /proc/acpi/ac_adapter/AC/state case $status in
"on-line" ) /usr/bin/spicctrl -b 255
exit 0
;;
"off-line" ) /usr/bin/spicctrl -b 100
exit 0
;;
esac
echo "Something bad happened!"
exit 1
Quoted 28 lines · Matthew Tippett
Hello,
I have set up a script to put my system i8500 into sleep mode 1.
The main problem is that there is no way to find out if the button is being released or pressed within ACPI (aka closed/open on lid).
So as a result, when I suspend, and resume, I drop back into suspend as the SBTN event fires on release.
Any thoughts on doing this pure ACPI? (apart from a userland counting script).
Regards,
Matthew
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel
Signature · 18 lines
Sérgio Basto Technology Project Manager onevision design studios TECMAIA - Parque de Ciência e Tecnologia da Maia Rua Frederico Ulrich, 2650 4470-605 MOREIRA DA MAIA tel. + 351 22 091 5410 fax. + 351 22 091 5419 email: sbasto-n97bsLhj/YhQPh2TJV30h1aTQe2KTcn/@public.gmane.org web: http://www.onevision-design.com ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps