change power settings based on location


  1. Posts : 1
    Windows 7 Home Premium 64bit.
       #1

    change power settings based on location


    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
      My Computer


  2. Posts : 25
    Windows 7 Home Premium 64bit
       #2

    No, i do not think that there is a way to do that.
      My Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #3

    lpoulter said:
    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:
    Code:
    arp -a 192.168.0.1
    (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.
      My Computer


  4. Posts : 72,050
    64-bit Windows 11 Pro for Workstations
       #4

    Hello lpoulter, and welcome to Seven Forums.

    If you like, you could use either tutorial below to make it easy to manually switch between power plans at will with a single click.

    Power Plan - Choose from Desktop Context Menu in Windows

    and/or

    Power Plan - Create Shortcut to Change Power Plan

    Hope this helps, :)
    Shawn
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:26.
Find Us