Enable/Disable a specific device driver depending on AC adapter status.
This project allows for a specific device driver to be enabled/disabled depending on the AC adapter status.
-
This table shows when a device driver will be enabled/disabled.
AC Adapter Status Device Driver Status Plugged Enabled Unplugged Disabled
This program originally intended use is to enable/disable dGPU in MS hybrid graphics system to save on power and improve battery life.
- You will first need to get the instance ID of the desired device driver to be managed by the program.
To get that, do the following:- Open Device Manager.
- Find the device driver, you would like the program to manage.
- Go into the device driver's properties and then go into the
Details
tab. - Select the
Device Instance Path
property from the property dropdown. - Right click the obtained output and select copy.
- Open a Command Prompt/PowerShell window as an Administrator in the directory where
DevicePowerManagement.exe
is present in. - Use the following syntax:
Example:
DevicePowerManagement.exe <Device Instance ID>
Here the program will manage a laptop's NVIDIA MX250 device driver.DevicePowerManagement.exe "PCI\VEN_10DE\&DEV_1D13&SUBSYS_09571028&REV_A1\4&4FD3F61&00E0"
- Now open up Device Manager and check if the device driver gets enabled/disabled depending on the AC adapter status.