sysadmin/scripts/thinkpad_cooldown.sh

25 lines
443 B
Bash
Raw Normal View History

2017-09-15 14:11:31 -04:00
#!/bin/bash
# install:
# echo "options thinkpad_acpi fan_control=1" >> /etc/modprobe.d/thinkpad_acpi.conf
echo "-- ] thinkpad cooldown swtich [ --"
echo ""
echo ""
while true; do
echo level disengaged > /proc/acpi/ibm/fan
echo
echo "> max speed"
echo "Press key to return to switch mode..."
read -n 1
echo level auto > /proc/acpi/ibm/fan
echo
echo "> auto"
echo "Press key to return to switch mode..."
read -n 1
done