[RESPONDED] Systems temperatures get very high. fw-fanctrl not working

Hello,

One month ago i recieved the framework 13 amd 7840u laptop. i followed the ubuntu 22.04 guide. ubuntu 22.04 is the only OS i use on this system. So far i am very pleased with the system. However, i noticed the system can get very hot when watching a video or installing things via commandline. the fan will only turn on when the system is already quiet hot. although i like the system to be silent, i am willing to accept fan noise if that helps my system to stay cool. after researching online, i installed fw-fanctrl with sudo. However, when running the output is as follows:

Exception in thread Thread-1 (bindSocket):
Traceback (most recent call last):
File “/usr/lib/python3.10/threading.py”, line 1016, in _bootstrap_inner
self.run()
File “/usr/lib/python3.10/threading.py”, line 953, in run
self._target(*self._args, **self._kwargs)
File “/usr/bin/fw-fanctrl”, line 129, in bindSocket
os.remove(COMMANDS_SOCKET_FILE_PATH)
PermissionError: [Errno 13] Permission denied: ‘/run/fw-fanctrl/.fw-fanctrl.commands.sock’
Error getting I/O privilege: Operation not permitted
Cannot find I2C adapter
Unable to establish host communication
Couldn’t find EC
etc…

so, after google these errors, i assume fw-fanctrl cannot operate since ectool is not installed correctly because of not being super user when installing, OR secure boot was not off. I am 100% sure i used sudo, since i followed the fw-fanctrl github guide. Moreover, when installing ubuntu the very first time after booting up after i installed the ram and ssd, i had to change a setting in secure boot, otherwise a blue screen kept popping up telling me someting was not secure. so after changing a setting in secure boot i was able to select the ubuntu 22.04 iso. Therefore i am almost certain secure boot is off and fw-fanctrl is installed while being superuser. However, since fw-fanctrl does not work i must have done something wrong. Can anyone please help me with this issue?

Maybe try to address the permission error first? not really familiar with ectool compilation, but from the error it looks like you need to be root.

what you mean with permission error? when running fw-fanctrl i got the error as showed as above. maybe i do not understand your question?

This is the “permission error”.

You installed fw-fanctrl with sudo, but how did you run it? The fw-fanctrl repo install script creates a systemd service, and automatically enable and start it; you can see how it’s doing with sudo systemctl status fw-fanctrl. (Maybe you already did that, just good to be clear.)

Deleting the socket file is just to clean up from from a previously run instance, if this has never run before, that’s expected. Maybe the problem is that ectool isn’t finding the EC. AMD Framework laptops need an up-to-date ectool from dhowett’s repo, and that ectool needs to be run with sudo, and secure-boot needs to be disabled for it to work.

I don’t use fw-fanctrl so I’m not sure exactly what version of ectool fw-fanctrl installs. I installed and used ectool manually. It’s possible to directly configure the ec to spin up the fan much more promptly when the CPU heats up, using the “thermalset” command; I put this in a script that runs at bootup. Search these forums for “ectool thermalset” for more details/tips if interested.

1 Like