Quote: Originally Posted by Cyberpyr8
Task scheduler could possibly do it. Under the Triggers tab, events could be created. I don't think that plugging and unplugging creates a task event though. Be aware that under conditions there is an AC power setting.
I suppose for somethings I could potentially remove them from the startup sequence and read them into task scheduler, but one of the difficult ones would be changing the screen resolution.
Dell has a utility on the drivers
download page that will turn off aero upon switching to battery, but they could have taken it to the extreme by making it also switch the screen resolution to something like 800x600 instead of the native 1280x800.
I have tried getting nircmd.exe to run through the batterysaver utility that I mentioned and switch the resolution, but I can't get it to work. nircmd.exe is a command line utility that among other things can change the screen resolution. Batterysaver can be configured to execute commands on battery switch (with varying degrees of success) but when I try to add arguments, it does work. I don't understand how they want me to put in the arguments.
My next step was to create a batch file that would run nircmd.exe with the arguments that I wanted, then compile it into an exe and then add it to the batterysaver profile. That also didn't work.
I saw that there is a conditions tab, but that will only tell the computer to stop executing something that was already running if it switches to battery power.