Skip to content

Instantly share code, notes, and snippets.

@supersonictw
Last active November 20, 2025 06:40
Show Gist options
  • Select an option

  • Save supersonictw/8cdf5ecadd1a3a3765300bedf3aa299b to your computer and use it in GitHub Desktop.

Select an option

Save supersonictw/8cdf5ecadd1a3a3765300bedf3aa299b to your computer and use it in GitHub Desktop.
#!/bin/sh
# acpitz-patch.sh
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/Kkn2DQsNR)
tee /lib/systemd/system/acpitz-patch.service <<EOF
[Unit]
Description=acpitz patch for thermal
[Service]
ExecStart=/bin/sh -c 'echo disabled > /sys/class/thermal/thermal_zone1/mode'
[Install]
WantedBy=multi-user.target
EOF
systemctl enable --now acpitz-patch.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment