Disable "Allow this computer to turn off this device to save power" for I2C HID device solely

Pham Cao Cuong 20 Reputation points
2024-06-17T10:48:44.7766667+00:00

My laptop just randomly disabled my touchpad and I found out that the checkbox: "Allow the computer to turn off the devices" may be the problem. So I think the powershell script or registry could turn that checkbox off on startup, but don't know how to do it. Can anyone please help me

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,308 questions
0 comments No comments
{count} votes

Accepted answer
  1. Daisy Zhou 21,046 Reputation points Microsoft Vendor
    2024-06-17T14:23:23.5233333+00:00

    Hello Pham Cao Cuong,

    Thank you for posting in Q&A forum.

    To disable "Allow this computer to turn off this device to save power" for an I2C HID device solely via PowerShell, you can try these steps:

    1. Open Device Manager by pressing Windows key + X and selecting Device Manager from the menu.
    2. Locate the I2C HID device under the Human Interface Devices category.
    3. Right-click on the I2C HID device and select Properties.
    4. Go to the Power Management tab.
    5. Uncheck the box that says "Allow this computer to turn off this device to save power."
    6. Click OK to save the changes.

    Alternatively, you can use PowerShell to disable this feature for the I2C HID device. Here are the steps:

    1. Open PowerShell as an administrator.
    2. Type the following command and press Enter:
       Get-PnpDevice -Class "HIDClass" | where {$_.FriendlyName -like "*I2C HID Device*"} | foreach { Disable-PnpDevice $_.InstanceId -Confirm:$false }
    

    This command will disable the "Allow this computer to turn off this device to save power" feature for all I2C HID devices on your computer.

    Alternatively, you can disable "Allow this computer to turn off this device to save power" for I2C HID device solely via registry, please follow these steps:

    1. Press the Windows key + R to open the Run dialog box.
    2. Type "regedit" and press Enter to open the Registry Editor.
    3. Navigate to the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ACPI<I2C HID device><Device instance ID>\Device Parameters
    4. Right-click on the "Device Parameters" key and select "New" > "DWORD (32-bit) Value".
    5. Name the new value "ConservationIdleTime" (without quotes).
    6. Double-click on the "ConservationIdleTime" value and set the value data to "0" (without quotes).
    7. Click "OK" to save the changes.
    8. Close the Registry Editor and restart your computer for the changes to take effect.

    Note: Replace "<I2C HID device>" and "<Device instance ID>" with the appropriate values for your device. You can find these values by opening the Device Manager, locating your I2C HID device, right-clicking on it, selecting "Properties", and then navigating to the "Details" tab.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful