通过降低频率减少风扇噪音 [Ryzen APU / Ubuntu 23.04]
Hey folks, let me share my experience with my new Topton Ryzen 9 5900HX mini PC. It's totally silent when I'm doing light tasks like browsing or word processing, but as soon as I put it under load—like rendering or gaming—it gets ridiculously loud. I knew I had to find a way to quiet it down.
First off, I tried the go-to tools: lm-sensors and fancontrol. I ran through the setup steps for both, but unfortunately, neither could detect the fan at all. That was a bummer, so I had to dig around for alternative fixes.
After some trial and error, I landed on a solution that worked for me by throttling the CPU frequency to keep temperatures in check, which in turn kept the fan from spinning up to full blast. Here's how I did it:
- First, check your current CPU frequency scaling governor with the command:
By default, it's probably set tocat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorperformanceorschedutil. - To temporarily switch to a more conservative governor (which lowers CPU frequencies to reduce heat), run:
echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor - If you want this change to persist after reboot, create or edit the
/etc/default/cpufrequtilsfile and add the line:
Then restart the service to apply the setting:GOVERNOR="powersave"sudo systemctl restart cpufrequtils - For more granular control over maximum CPU frequency, use the
cpupowertool. First install it:
Then set a custom maximum frequency (adjust the value based on your needs—my 5900HX runs smoothly at 3GHz for most tasks):sudo apt install linux-tools-common linux-tools-genericsudo cpupower frequency-set --max 3.0GHz
This setup brought down my CPU temps by around 15-20°C under load, and the fan now stays quiet unless I'm pushing it really hard.
That said, I'm curious—does anyone have a better or more efficient way to handle this? Maybe a method to get fan control working even when lm-sensors can't detect the fan?
备注:内容来源于stack exchange,提问作者Lucas




