On Thursday, 3 February 2022 18:04:45 CET jim_p wrote: > However, cpupower in debian does not come with a systemd service and it does > not have /etc/default/cpupower so as to set a desired governor. > I really need such functionality, because as I have said, I set my governor > to powersave from May to September every year and now I have no way to.
Yes you can. You can create your own 'boot-up script' or make your own systemd unit file and enable that. # cpupower frequency-info This tells you the frequencies/governor available and currently selected. The governor is likely 'schedutil'. In the 'available cpufreq governors' you probably don't see 'powersave', but you can modprobe that with `modprobe cpufreq-powersave` and after that lsmod should tell you it's loaded and `cpupower frequency-info` will now also list it as an available governor. # cpupower frequency-set --governor powersave This will switch the governor to 'powersave' So if you put the following lines in the 'Service' section of a systemd unit file and install/enable it, you should have the functionality that you want. You'll have to figure out the rest of the fields yourself, but that shouldn't be too hard as there are plenty .service files on your system and the internet. ExecStart=/sbin/modprobe cpufreq-powersave ExecStart=/usr/bin/cpupower frequency-set --governor powersave HTH, Diederik
signature.asc
Description: This is a digitally signed message part.