Computer ForumsComputers  

Go Back   Computer Forums > PC Technology Zone > Windows Operating Systems and Software > Tips, Tricks & Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 11-22-2007, 07:38 PM   #1 (permalink)
Security/Hacking Mod
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: USA
Posts: 25,457
Default 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 that is a command line alternative to the device manager. I will show you how to use devon 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.
__________________

www.MasterB365.com
www.Tech-Dump.com


"On 10-3-08 Obama Supporters Vandalized-Tresspassed and STOLE My Palin-McCain Sign Violating My First Amendment Right To Free Speech. Do It Again And You Will Find Out What The 2nd Amendment Is All ABOUT!"
Osiris is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
POST Troubleshooting Guide SYL\X/3K Hardware Troubleshooting 6 09-23-2007 10:34 PM
Echo Star 600W 20+4 Pin ATX Power Supply commandercup Building, Buying, or Upgrading High Performance PC Systems 3 09-04-2007 07:21 PM


All times are GMT -5. The time now is 08:59 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0