A small Windows utility for measuring Surface/Windows power draw with the display on versus display off.
It keeps the system awake, turns the display off during the measurement phase, then writes samples and a short result summary.
- Windows 11
- Python 3.10 or newer
pywin32- A device exposing Surface/Windows power meter or battery WMI data
Install dependency:
python -m pip install -r requirements.txtDouble-click:
Measure_ScreenOffPower.cmd
Default behavior:
- 60 seconds screen-on baseline
- 10 minutes display-off measurement
- Keeps the computer awake while the screen is off
- Writes CSV files under
power-diary/
For a quick dry run that does not turn off the display:
python MeasureScreenOffPower.py --baseline-seconds 5 --screen-off-seconds 5 --interval 1 --no-turn-off-displayThis measures "display off while the computer stays awake." It is not a Modern Standby sleep drain test. If the PC actually sleeps, the script pauses too.