Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux
Reply #35 –
I spent some time investigating the fan noise and high temperature issues of my laptop and found this in the Arch Wiki.: https://wiki.archlinux.org/title/Laptop/HP#Fan_noise
Apparently, there has been a bug in the Linux kernel since version 4.1x. This bug causes the fan of some HP laptops to spin at higher revs with no apparent temperature reason. I guess this bug still exists in Linux 6.12 and is affecting me!
To rule out hardware issues, I installed Windows 10 on a separate SSD and observed that the discrete GPU overheating and fan noise issues are nonexistent in Windows. The discrete GPU remains completely off most of the times in Windows. On laptops, Windows typically prioritizes the low-power integrated GPU, and only running demanding graphical applications, such as games or CAD programs, activates the discrete GPU. In contrast, on Linux, it seems that the system often favors the more powerful discrete GPU over the integrated one.
The system behaves the same on tty without X.
I found that Vigorously moving a window in XFCE causes a spike in the integrated GPU's utilization. I used these commands to test the working state of the GPUs:
$ DRI_PRIME=0 glxspheres64 # This command utilizes the Intel GPU
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Invalid value (0) for DRI_PRIME. Should be > 0
GLX FB config ID of window: 0x177 (8/8/8/0)
Visual ID of window: 0x304
Context is Direct
OpenGL Renderer: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
$ DRI_PRIME=1 glxspheres64 # This command utilizes the AMD GPU
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x177 (8/8/8/0)
Visual ID of window: 0x304
Context is Direct
OpenGL Renderer: AMD Radeon R5 M255 (radeonsi, iceland, ACO, DRM 3.61, 6.12.36-1-lts)
Both AMD and Intel GPUs work flawlessly on my device, but the AMD GPU still remains at 40+ °C while on idle for no reason. I am sure that the readings of the temp sensors are accurate. Because the left side of my laptop remains hot when I am using Linux.
I opened a 1080p video in mpv on Linux and noticed that the dGPU heats up to 60 °C, causing the laptop's fans to ramp up and sound like a jet engine. You can see the temperature readings in the attached picture. On Windows, however, playing the same video in mpv didn’t activate the dGPU, and the system maintained a reasonable temperature.
After replacing all xf86-* packages with their Xlibre equivalents, the system performs better, although it still runs hotter than it did under Windows.