namar0x0309 / PWRMgmt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PWRMgmt

LaptopPowerConfig.bat will detect if your computer is using battery or power outlet, and will change the refresh rate from there.

if you want to customize change the resolution and refresh rates in the file in these lines

call %~dp0\binaries\qures\qres.exe x=1920 y=1080 f=60

Usage Example

Throttlestop

In Throttlestop, you can set things up to switch profiles whether in battery or AC. In the script path, you can set this one up.

image

In Task scheduler, you can add a task to run this script whenever the power source changes

Windows Task Scheduler

Create a Task in the Task Scheduler and set it to trigger on this custom query

You need to find event that tracks the on battery or not ID "Application and Services Logs">"Microsoft">"Windows">"UniversalTelemetryClient"

Then paste this in the Create Task, Custom Filter Window:

*[System[(EventID=60)]] and *[EventData[Data[@Name='State'] and (Data='true')]]

You can import the .xml in the Task Schedule and modify it if your ID isn't 60 (Windows 10 and 11's id is 60)

About

License:MIT License


Languages

Language:Rich Text Format 94.2%Language:PowerShell 4.7%Language:Batchfile 1.2%