Save Notebook Power by disabling unneeded devices - gHacks Tech News

Save Notebook Power by disabling unneeded devices

Most notebooks tend to run out of power quickly and most of the time in an inappropriate moment. What most users do not know is that every component in the notebook is using power even if you are not using it at the moment. This leads to the conclusion that disabling unneeded components would save power and thus prolong the work time.

We can disable and enable devices using a Microsoft tool called Devcon, a command line alternative to the device manager. I will show you how to use devcon to disable and enable devices using two simple batch files and the command line. Please download devcon from Microsoft and unpack it afterwards.

Open the command line in Windows by pressing Windows R, typing cmd and pressing enter. Now navigate to the directory that devcon has been unpacked into. You change directories using the command cd and hard drives by typing their drive letter . To change the directory to drive f you would use type f: for instance.

Now that we are in the directory where devcon.exe is located use the following command to create a list of all devices of the computer:

devcon find * > c:\devices.txt

This will save the device list as a text document in your c:\ hard drive. Please note that is is important to not disable system components that are needed. It is safe to disable components like WLAN, modem, sound cards, cd and dvd drives, secondary hard drives and the like if you do not need them right now. Never disable motherboard components, cpu, ram, display, video card and primary hard drives.

The devices document has a unique identifier on the left side and a description of the device on the right side. We need to use the unqiue identifier to disable and enable devices. We will use the entry for my 3,5" floppy drive as an example. The unique identifier of the floppy drive is FDC\GENERIC_FLOPPY_DRIVE\5&6EDBAB&0&0

devcon disable FDC\GENERIC_FLOPPY_DRIVE\5&6EDBAB&0&0
devcon enable FDC\GENERIC_FLOPPY_DRIVE\5&6EDBAB&0&0

Those are the two commands that we work with. It is possible to use wildcards if the remaining name clearly identifies the device, I would suggest to always use the full name.

Create a file called stop-devices.bat and add all devcon disable commands to it. Each command will be written in its own row.
Now create a file called start-devices.bat and add all devcon enable commands in it in the same way. Make sure both are placed in the same directory that devcon.exe is placed in.

A double-click on one of the bat files will disable or enable all devices mentioned in there. You could use the command line as well to disable or enable a device to see how it works. Just use the full command to do this.

Summary
Article Name
Save power on mobile PCs by disabling devices
Description
You can disable devices on your laptop that you do not use to save power when you are using it in a mobile environment.
Author




  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. David Laing said on November 22, 2007 at 10:04 pm
      Reply

      Slight correction – command line to get the devices into a file should read:
      devcon find * > c:\devices.txt
      ^^^
      Regards

    2. Martin said on November 22, 2007 at 11:11 pm
      Reply

      Thanks David, great observation ;)

    3. jarid said on January 19, 2009 at 6:16 am
      Reply

      Well if anyone is Truly interested in Saving Energy you will like this site. It says you can save upwards of 25% on your electric bill. At your home or business. Their Lighting manager for businesses even guarantee 20% or refund. If your company can save some money then they may lay off less people. I hope, I’m an optimist.

    Leave a Reply