Ubuntu及衍生发行版CPU/GPU温度达90-92℃时自动挂起问题求助
Hey there, sorry to hear you're stuck with this frustrating automatic suspend issue when gaming on Ubuntu and its derivatives like KDE Neon! Let's dive straight into fixing the suspend trigger since you've made it clear you don't want to focus on overheating right now.
方法1:调整热守护进程(thermald)的配置
Ubuntu uses thermald by default to handle thermal events, which might be triggering the suspend at that 94℃ threshold. Here's how to tweak it:
- First, check if
thermaldis running with this command:systemctl status thermald - Edit its configuration file with root privileges:
sudo nano /etc/thermald/thermal-conf.xml - Look for
<Trip>sections in the file. You'll likely find an entry where thetypeiscriticalorhot, and theactionis set toSuspend. You can either:- Change the
temperaturevalue to a higher threshold (e.g.,100000for 100℃, since the value is in millidegrees Celsius), or - Replace the
Suspendaction with something less disruptive likeThrottle.
- Change the
- Save the file (Ctrl+O, then Enter in nano) and exit (Ctrl+X), then restart the service to apply changes:
sudo systemctl restart thermald
方法2:修改systemd-logind的温度设置
Another place where Ubuntu might enforce thermal suspend is in systemd-logind:
- Open the logind configuration file:
sudo nano /etc/systemd/logind.conf - Look for lines starting with
#ThermalSuspendTemperature=or#ThermalPowerOffTemperature=. Remove the#to uncomment them, then set a higher temperature value (e.g.,100for 100℃). - Save and exit the file, then restart the logind service. Note: This might log you out immediately, so save any open work first!
sudo systemctl restart systemd-logind
方法3:检查BIOS/UEFI设置
Sometimes the suspend trigger is actually coming from your laptop's firmware, not the OS. Restart your laptop and enter the BIOS/UEFI setup (usually by pressing F2, F10, or Del during boot). Look for sections like Thermal Management or Power Settings—there might be an option for "Thermal Suspend Temperature" that you can adjust to a higher value or disable entirely.
A quick note: Even though we're focusing on fixing the suspend issue right now, running your GPU at 94℃ for extended gaming sessions isn't ideal for its long-term health. It's worth keeping that in mind for future tweaks!
备注:内容来源于stack exchange,提问作者truera1n

