Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fan speed maxes out on power off/suspend #420

Open
unterhimmel opened this issue Nov 15, 2024 · 2 comments
Open

Fan speed maxes out on power off/suspend #420

unterhimmel opened this issue Nov 15, 2024 · 2 comments

Comments

@unterhimmel
Copy link

Using Tuxedo Aura 15 Gen1. OS is Ubuntu 24.04.1 LTS x86_64 and TCC version is 2.1.13.

Sometimes when powering off/suspending my laptop, the fan speed suddenly maxes out until it is powered off/sleeping. It also happens when I suspend my laptop and immediately wake it (by accident by moving my mouse).

My fan speed config shouldn't go up that high normally, and the temperatures shown in TCC seem to be normal. This issue also does not occur on every power off/suspend, it seems to happen at random (I haven't found any correlation between occurrences).

@cmader
Copy link

cmader commented Nov 16, 2024

I have exactly the same problem on an Infinitybook S15 Gen6 on Fedora 40. TCC fan control usually works fine, but the loud noises on shutdown are very annoying. I fixed this by creating a systemd unit file that gets executed right before shutdown and unloads the tuxedo_keyboard module.

@tuxedoder
Copy link
Contributor

I did some testing and on my Aura 15 Gen 1 and IBS 15 Gen 6. I sometimes did notice some fan speed increase on sleep. Not 100% but some. The cause seems to be switching from manual to auto mode during onExit(). This is done for two reasons, so laptops which are configured with the full fan mode properly wakeup from sleep and because stopping the tccd service at any point should set auto mode, otherwise the fans will keep the last set value at any temperature. Currently tccd stops when going into sleep and starts again on wakeup and can be manually stopped with systemctl stop tccd. I think that auto mode has enough time between sleep and tccd stop to configure the fan.

The Aura 15 Gen 1 doesn't use full fan mode to set the fans and removing ioAPI.setFansAuto() in onExit() seemingly fixes the issue for that device.

If someone wants to test it, remove this line:

ioAPI.setFansAuto(); // required to avoid high fan speed on wakeup for certain devices

Build commands I use:

nvm i 14
nvm use 14
npm i
npm run pack-prod

But be aware that with this change tccd will never set the fans into auto mode. If tccd stops and fans are in manual mode, fans will use the last set value for all temperatures.

I am currently not sure how to handle this with all these requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants