Skip to content

Instantly share code, notes, and snippets.

@francoism90
Last active January 6, 2023 19:55
Show Gist options
  • Save francoism90/7dd103249c5ffe3dc36be44a8b291ef1 to your computer and use it in GitHub Desktop.
Save francoism90/7dd103249c5ffe3dc36be44a8b291ef1 to your computer and use it in GitHub Desktop.
Prevents Thunderbolt/USB 3.1C suspend on my NUC
#!/bin/sh
# force Thunderbolt/USB 3.1C power
# doc: https://www.kernel.org/doc/html/v5.1/admin-guide/thunderbolt.html
echo 1 > /sys/bus/wmi/devices/86CCFD48-205E-4A77-9C48-2021CBEDE341/force_power; \
echo "on" > /sys/bus/wmi/devices/86CCFD48-205E-4A77-9C48-2021CBEDE341/power/control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment