Files
oam/scripts/boinc.static-frequency-for-niced-loads.sh
2023-08-13 04:33:53 +02:00

17 lines
472 B
Bash
Executable File

#!/bin/sh
# sources:
# - https://wiki.archlinux.org/?title=BOINC#Laptop_overheating_and_battery_duration_reduction
if ( ! cpupower frequency-info --governors | grep --quiet ondemand )
then
echo "ERROR: no ondemand governor available. Aborting."
fi
sudo gpasswd -a boinc video
xhost si:localuser:boinc
sudo cpupower frequency-set --governor ondemand
echo 1 | sudo tee /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
sudo systemctl start boinc-client.service