Hi is there anyway to automatically switch power setting based on my location. Say if I'm connected to my home network be in high performance mode. Or perhaps a program that does this? If not does anyone know how I might go about creating one ( I'm a computer science student) thanks, Laurie
Welcome to the Seven Forums.
What a great opportunity to write your own tool to do this. Even if you found one that someone else wrote, chances are, it would not function exactly the way you want it to.
You can use the info here...
Powercfg Command-Line Options
...to change the power settings.
To automatically detect when you are home, look* for your router. If your router is found, then change to the desired power configuration. If your router is not found (e.g. you are not home), have your app sleep for a few minutes, then ping again. Or, if you have a file server at home, look for a certain file (perhaps via
UNC).
*Set the router to an unusual IP address and ping that. Pick an IP that you would have little chance encountering elsewhere. Or even better, look for the mac address of the router:
(where 192.168.0.1 is your router's IP address)
You can write this all using
Windows PowerShell or a tool like
AutoIt3 or
AutoHotKey or .....
Let us know how it goes.