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.

Revisions

  1. francoism90 revised this gist Jun 19, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion power-on
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/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 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
  2. francoism90 revised this gist May 23, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion power-on
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    #!/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 && \
  3. francoism90 revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion power-on
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/sh

    # force Thunderbolt/USB 3.1C power
    # https://www.kernel.org/doc/html/v5.1/admin-guide/thunderbolt.html
    # 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
  4. francoism90 created this gist May 23, 2019.
    6 changes: 6 additions & 0 deletions power-on
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/sh

    # force Thunderbolt/USB 3.1C power
    # 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