Snippets/Debian/CPU Governor/governor.service

11 lines
275 B
Desktop File

[Unit]
Description=Set scaling governor to CHOSEN_POWERPLAN
After=multi-user.target
Before=zkbootrtc.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo CHOSEN_POWERPLAN | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
[Install]
WantedBy=multi-user.target