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

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...
2006-12-10 02:56:28
Yes, there is, I found:
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?
2006-12-11 13:02:29
sleep state is better, if you reconnect the power connecter again dpad should continue to work.
2006-12-12 01:50:44
I opt for the Sleep state since I tend to forget to restart it myself...

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.
2007-02-26 00:28:16
Thanks!  Will be watching this thread for any news.  Take your time.
2007-03-10 14:26:22
how is the testing going?  anny progress
: contact : - - -
E-mail: sbstrudel characterstephenbrooks.orgTwitter: stephenjbrooksMastodon: strudel charactersjbstrudel

Site has had 17854840 accesses.