stephenbrooks.orgForumMuon1GeneralDPAD on a Notebook
Username: Password:
Search site:
Subscribe to thread via RSS
Zerberus
2006-12-09 02:52:58
Short question: Is there an option to automatically stop DPAD when notebook is running on battery power?

Zerberus
Stephen Brooks
2006-12-09 17:05:01
Not at the moment.  I'm not sure how to determine what power source the computer is using, though maybe Windows has a friendly API function called something like GetDevicePowerState.  Occasionally things that seem complicated are actually easy to add...
Zerberus
2006-12-10 02:56:28
Yes, there is, I found:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/getsystempowerstatus.asp
Stephen Brooks
2006-12-11 11:44:30
Hmm do you want it to shut off completely or just go into a "sleep" state (i.e. checking every 30 seconds whether the AC power is connected again) when it is on batteries?
sssf
2006-12-11 13:02:29
sleep state is better, if you reconnect the power connecter again dpad should continue to work.
Zerberus
2006-12-12 01:50:44
I opt for the Sleep state since I tend to forget to restart it myself...

Zerberus
Stephen Brooks
2007-02-23 12:05:48
I've coded this in now and will test on my laptop... Not sure quite how soon I can do a full recompile of the whole thing (i.e. releasable) though.
Zerberus
2007-02-26 00:28:16
Thanks!  Will be watching this thread for any news.  Take your time.
[DPC]white_panther
2007-03-10 14:26:22
how is the testing going?  anny progress
: contact : - - -
E-mail: sbstrudel characterstephenbrooks.orgTwitter: stephenjbrooksMastodon: strudel charactersjbstrudel charactermstdn.io RSS feed

Site has had 25163793 accesses.