Framework 13 AMD - customize fan speed?

I am a new owner of the laptop Framework (13" AMD 7040). Ubuntu is what is installed on the machine and most things run as I would like. However, there are some things that bother me and that I have not been able to resolve.

At the outset, I would like to state that I am quite inexperienced in this type of question. So please explain to me as if I were 5 years old :wink:

I’ve noticed that the 3 power profiles don’t quite work the way I want them to. (power save, balanced, performance). Or rather, these work reasonably well when I run on battery but less well when the computer is connected to AC

I use htop to monitor CPU and temperature. Looking at the balanced and performance power profiles, the difference is extremely small - which I would like to influence. In addition to this, I would like my fan to start working a little earlier to avoid hiccups. Now the fan barely starts, to later rush up to 100%. I want to tweak this.

The only way I have found so far, to keep a reasonable temperature in the computer, is to use power profile ā€œpower saverā€ or to use cpupower to set the frequency to a lower level and thus achieve a lower temperature. However, I have to do this manually after every reboot.

As previously mentioned, I have set the CPU frequency to pull down the CPU slightly to avoid the heat. This through e.g. sudo cpupower frequency-set -u 4.8GHz. This works and I don’t notice much difference in performance in my daily work. However, I have to do this manually as I don’t know how to set this at boot.

To try to control the fans, I have used GitHub - TamtamHero/fw-fanctrl: A simple systemd service to better control Framework Laptop's fan(s). The tool gives me the opportunity to configure the fans as I wish, via a json file. There I can decide how the fan should act at a certain temperature - exactly what I’m looking for. However, it doesn’t feel like this is being activated at all. Which means that the profile never takes effect.

when I run sudo fw-fanctrl run I get the following results (probably due to the flag I used during installation)

Laptop-13-AMD-Ryzen-7040Series:~$ sudo fw-fanctrl run
Error: Extra parameter found.
Error: Extra parameter found.
Error: Extra parameter found.
Error: Extra parameter found.
speed: 50%, temp: 50°C, movingAverageTemp: 50.0°C, effectureTemp: 50.0°C

speed: 47%, temp: 50°C, movingAverageTemp: 50.0°C, effectureTemp: 50.0°C

You can try checking if it is working by setting the fan to max speed and seeing if there is any response, If there isn’t, you might want to read the documentation and reinstall it.