Toggle devices on Windows with DeviceSwitch - gHacks Tech News

Toggle devices on Windows with DeviceSwitch

DeviceSwitch is a free portable program for Microsoft Windows devices to toggle (turn on or off) hardware devices with the click of the button.

The Windows operating system comes with built-in options to disable PC hardware. You can use the device manager for that, or the devcon command to turn off computer hardware.

There are some use cases for turning off hardware devices temporarily. Privacy conscious users may want to disable connected cams or microphones when they are not in use, others may want to disable hardware that uses some power when it is not needed, or disable hardware that is not needed (for instance a dedicated video card).

DeviceSwitch

DeviceSwitch was designed for that purpose. The software program is a bit complicated to use, as you need to edit the devices.ini file that it comes with once.

deviceswitch windows

The file references all hardware devices by ID that you want to toggle when you run the application. This requires that you add the hardware ID of the device, one per line, to the ini file under HardwareID.

You get the hardware ID of devices in the following way:

  1. Open the Windows Control Panel that is linked in the Start Menu. Windows 10 users may use the shortcut Windows-X to open the Device Manager directly.
  2. Open the Device Manager.
  3. Locate the device that you want to toggle using the program, and double-click on it in the Device Manager.
  4. Switch to the details tab in the device's properties.
  5. Select Hardware IDs from the menu.
  6. Right-click on one of the IDs and select copy.

You need to paste the ID into the devices.ini file to control the device's state using DeviceSwitch. Add one device per line. A click on the program executable toggles the status of the device then.

DeviceSwitch comes with two options that you find in the ini file as well. Autoflip is disabled by default. The program displays a confirmation prompt by default, but when you set the autoflip parameter to 1, it will toggle the status directly without prompt.

DisableSplash on the other hand disables the splash screen if you set it to 1. You can set both to 1 to run the operation without visual confirmation silently in the background.

Closing Words

DeviceSwitch is a specialized program. Advanced Windows users may have little need for it, considering that they can use the native devcon command for toggling devices. The main advantage of the program at this point in time is that it is a bit easier to set up as you only need hardware IDs to toggle the devices you add to it.

Summary
software image
Author Rating
1star1star1stargraygray
5 based on 1 votes
Software Name
DeviceSwitch
Operating System
Windows
Software Category
Administration
Landing Page




  • 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

    There are no comments on this post yet, be the first one to share your thoughts!

    Leave a Reply