Skip to main content
Topic: High Laptop Temperatures After Switching from Windows 11 to Artix Linux (Read 6192 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

High Laptop Temperatures After Switching from Windows 11 to Artix Linux

After extensive testing, I recently switched from Windows 11 to Artix Linux (using OpenRC and XFCE) on my HP ProBook 450 G2 using the base installer iso. On idle, Artix Linux utilizes about 700 MB of my system's RAM and roughly 1% of my Intel Core i5-5200U. However, I noticed that the CPU temperature under Artix Linux is around 10°C higher than in Windows 11, despite Windows being more resource-intensive. My laptop uses a muxless hybrid graphics scheme: an integrated Intel HD Graphics 5500 GPU and a discrete AMD Radeon R5 M255 GPU. I installed psensor on Artix and saw that the AMD Radeon GPU is constantly active. After disabling the discrete AMD GPU in the UEFI, the CPU and the overall system temperatures dropped significantly.

What am I missing? How can I properly manage or fix the hybrid graphics issue on my laptop to reduce the temperature and the fan noise?

I have also installed and enabled acpid-openrc and thermald-openrc, but the temperature remains high even at idle. Additionally, the laptop’s fans are louder, and battery life is worse on Artix Linux. These issues persist despite having linux-firmware installed on my system.
I also checked the following page on the Arch Wiki, but I didn’t manage to fix my problems:
https://wiki.archlinux.org/title/PRIME

Here are the outputs of some relevant commands:
Code: [Select]
$ cat ~/.local/share/xorg/Xorg.0.log | grep -iE 'error|warn|amdgpu|radeon|intel'
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1259.657] (**) |   |-->Device "Intel Graphics"
[  1259.697] (II) Applying OutputClass "AMDgpu" options to /dev/dri/card2
[  1259.872] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event10)
[  1259.872] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event11)
[  1259.872] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event12)
[  1259.873] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event13)
[  1259.873] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event14)

$ pacman -Qs xf86-video
local/xf86-video-amdgpu 23.0.0-2.2 (xorg-drivers)
    X.org amdgpu video driver
local/xf86-video-ati 1:22.0.0-2.1 (xorg-drivers)
    X.org ati video driver
local/xf86-video-fbdev 0.5.1-1 (xorg-drivers)
    X.org framebuffer video driver
local/xf86-video-vesa 2.6.0-2 (xorg-drivers xorg)
    X.org vesa video driver

$ glxinfo | grep "OpenGL renderer"
Error: couldnt find RGB GLX visual or fbconfig

$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
DeviceName: 256
Subsystem: Hewlett-Packard Company Device 2248

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x45 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0xa0 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:modesetting

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #1
Code: [Select]
$ glxinfo | grep "OpenGL renderer" 
Error: couldnt find RGB GLX visual or fbconfig
That doesn't look great. If OpenGL is not working then whatever would be using it is going to fall back to software rendering.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #2
I feel like the current driver config is wrong. For proper setup gpu driver on DRI PRIME platforms, you should remove ALL xf86-video-* driver packages except xf86-video-amdgpu for descrete AMD GPU. xf86-video-intel is not needed since it's used only on ancient integrated mobo systems (like LGA775 era, eh... simpler times)
All the packages that you need:
Code: [Select]
sudo pacman -S mesa intel-media-driver vulkan-intel libva-utils xf86-video-amdgpu vulkan-radeon
Use default xorg modesetting driver + DRI_PRIME=1 when AMD GPU is needed.
When it comes to CPU side, it could also it could be the case of sensors having some dumb offset applied systemwide on windows by some vendor driver, stuff like this affects several early ryzen models. Do you feel the laptop being significantly hotter to touch on linux?
We also need more full logs, specifically dmesg and xorg to know more... Also maybe output of "inxi -v 3: to see at a glance if modesetting is actually loaded.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #3
For proper setup gpu driver on DRI PRIME platforms, you should remove ALL xf86-video-* driver packages except xf86-video-amdgpu for descrete AMD GPU.
I removed everything except xf86-video-amdgpu.
Code: [Select]
$ pacman -Qs xf86-video
local/xf86-video-amdgpu 23.0.0-2.2 (xorg-drivers)
    X.org amdgpu video driver
Here is the output of inxi -v 3:
Code: [Select]
$ inxi -v 3
System:
  Host: ArtixLinux Kernel: 6.12.36-1-lts arch: x86_64 bits: 64 compiler: gcc
    v: 15.1.1
  Desktop: Xfce v: 4.20.1 Distro: Artix base: Arch Linux
Machine:
  Type: Laptop System: Hewlett-Packard product: HP ProBook 450 G2
    v: A3008CD10003 serial: <superuser required>
  Mobo: Hewlett-Packard model: 2248 v: KBC Version 59.23
    serial: <superuser required> UEFI: Hewlett-Packard v: M73 Ver. 01.54
    date: 03/03/2020
Battery:
  ID-1: BAT0 charge: 31.3 Wh (96.0%) condition: 32.6/32.6 Wh (100.0%)
    volts: 16.6 min: 14.8 model: Hewlett-Packard Primary status: not charging
CPU:
  Info: dual core model: Intel Core i5-5200U bits: 64 type: MT MCP
    arch: Broadwell rev: 4 cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 500 min/max: 500/2700 cores: 1: 500 2: 500 3: 500 4: 500
    bogomips: 17566
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-8 bus-ID: 00:02.0
  Device-2: Advanced Micro Devices [AMD/ATI] Topaz PRO [Radeon R5 M255]
    vendor: Hewlett-Packard driver: amdgpu v: kernel arch: GCN-3 bus-ID: 0a:00.0
    temp: 64.0 C
  Display: unspecified server: X.Org v: 21.1.18 with: Xwayland v: 24.1.8
    driver: X: loaded: modesetting dri: iris gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 25.1.5-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 5500 (BDW
    GT2)
  Info: Tools: api: eglinfo,glxinfo de: xfce4-display-settings
    gpu: radeontop x11: xdpyinfo, xprop, xrandr
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus-ID: 08:00.0
  IF: eth0 state: down mac: 48:0f:cf:b6:72:cf
  Device-2: Intel Wireless 3160 driver: iwlwifi v: kernel bus-ID: 09:00.0
  IF: wlan0 state: up mac: 34:e6:ad:5f:40:4c
Drives:
  Local Storage: total: 1.38 TiB used: 802.77 GiB (57.0%)
Info:
  Memory: total: 16 GiB note: est. available: 15.3 GiB used: 2.46 GiB (16.1%)
  Processes: 220 Uptime: 17m Init: OpenRC runlevel: default
  Packages: 1331 Compilers: clang: 20.1.7 gcc: 15.1.1 Shell: Bash v: 5.2.37
    inxi: 3.3.38
Do you feel the laptop being significantly hotter to touch on linux?
Yes. The left side of my laptop, where the AMD Radeon discrete GPU is located, is warmer to touch on Linux.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #4
We also need more full logs, specifically dmesg and xorg to know more.
Unfortunately, the full logs are too long to be posted in this fourm. Here some of the Errors in the dmseg log are provided:
Code: [Select]
[  784.530046] amdgpu 0000:0a:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.1 test failed (-110)
[  784.737907] amdgpu 0000:0a:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.2 test failed (-110)
[  784.945710] amdgpu 0000:0a:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.3 test failed (-110)
[  785.153472] amdgpu 0000:0a:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.4 test failed (-110)
[  785.361276] amdgpu 0000:0a:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.5 test failed (-110)
[  785.570167] amdgpu 0000:0a:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.6 test failed (-110)
[  785.779528] amdgpu 0000:0a:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.7 test failed (-110)
[  786.790996] amdgpu 0000:0a:00.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on comp_1.0.0 (-110).
[  786.791723] [drm:process_one_work] *ERROR* ib ring test failed (-110).
I don't know what I should be looking for in the Xorg log. Here is some parts of the Xorg.0.log:
Code: [Select]
[   792.040] 	X.Org Video Driver: 25.2
[   792.049] Module class: X.Org Video Driver
[   792.049] ABI class: X.Org Video Driver, version 25.2
[   792.493] (II) Initializing extension XVideo
[   792.493] (II) Initializing extension XVideo-MotionCompensation
[   792.590] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[   792.590] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   792.590] (II) Using input driver 'libinput' for 'Video Bus'
[   792.590] (**) Video Bus: always reports core events
[   792.591] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[   792.591] (II) event4  - Video Bus: device is a keyboard
[   792.592] (II) event4  - Video Bus: device removed
[   792.592] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[   792.592] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[   792.593] (II) event4  - Video Bus: device is a keyboard
[   792.593] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[   792.593] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   792.593] (II) Using input driver 'libinput' for 'Video Bus'
[   792.594] (**) Video Bus: always reports core events
[   792.595] (II) event5  - Video Bus: is tagged by udev as: Keyboard
[   792.595] (II) event5  - Video Bus: device is a keyboard
[   792.595] (II) event5  - Video Bus: device removed
[   792.595] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[   792.597] (II) event5  - Video Bus: is tagged by udev as: Keyboard
[   792.597] (II) event5  - Video Bus: device is a keyboard

[   792.040] (**) |   |-->Device "Intel Graphics"
[   792.091] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) HD Graphics 5500 (BDW GT2)
[   792.601] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event10)
[   792.602] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event11)
[   792.602] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event12)
[   792.602] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event13)
[   792.603] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event14)

[   792.117] (II) Applying OutputClass "AMDgpu" options to /dev/dri/card2


Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #6
using the base installer iso.
Boot the Artix XFCE ISO and see if anything changes.
Graphical Artix Linux ISOs don't work really well on my laptop. That's why I used the base installer. I mentioned my issues with graphical Artix Linux live environments several times on this forum:
https://forum.artixlinux.org/index.php/topic,7222.msg43993.html#msg43993
https://forum.artixlinux.org/index.php/topic,8086.msg48433.html#msg48433
https://forum.artixlinux.org/index.php/topic,7286.msg44026.html#msg44026

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #7
Code: [Select]
$ glxinfo | grep "OpenGL renderer" 
Error: couldnt find RGB GLX visual or fbconfig
That doesn't look great. If OpenGL is not working then whatever would be using it is going to fall back to software rendering.
I disabled the dGPU and now this is the output of glxinfo:
Code: [Select]
$ glxinfo | grep "OpenGL renderer" 
OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2
Also the laptop is a lot cooler now as it is clear in the attached screenshot.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #8
Have you tried passing radeon.si_support=0 amdgpu.si_support=1 as a kernel command line?

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #9
Have you tried passing radeon.si_support=0 amdgpu.si_support=1 as a kernel command line?
Added these two to /etc/default/grub and then I updated the grub configuration:
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="radeon.si_support=0 amdgpu.si_support=1"
Now running glxinfo returns this:
Code: [Select]
$ glxinfo | grep "OpenGL renderer" 
OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
However, the high temperature issue is still affecting me! I don't know why the discrete AMD GPU is being utilized all the time. :-(

Edit: When I was using Windows 11, my laptop was idling at 35 ℃. Debloated Windows 11 used 3 GB of my RAM in the idle state, while Artix Linux uses 700 MB to 1 GB of my RAM. Despite the lower RAM and CPU utilization, Artix Linux idles at 47 ℃. I was expecting a colder system after switching to Linux.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #10
The user manual for this laptop provides an installation guide for an older version of Ubuntu. HP also provided an AMD Radeon/FirePro Linux video driver on their website. Arch wiki's AMDGPU PRO page says that "Most users do not need these proprietary drivers." Should I install this? Will this fix my problem?

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #11
[...]
Edit: When I was using Windows 11, my laptop was idling at 35 ℃. Debloated Windows 11 used 3 GB of my RAM in the idle state, while Artix Linux uses 700 MB to 1 GB of my RAM. Despite the lower RAM and CPU utilization, Artix Linux idles at 47 ℃. I was expecting a cooler system after switching to Linux.
I'd argue that this might be due to power curve that vendor officially applies on windows through drivers and powerplans, but on fairly "simpler" linux DEs without such things, there's only one powerplan ie. "run as performant as you can". I'd try to attack the problem from this angle, try comparing how voltages and cpu clock behaves on idle on windows vs on linux and then if you gather the data, we could pinpoint how to apply this behavior to loonix.
The user manual for this laptop provides an installation guide for an older version of Ubuntu. HP also provided an AMD Radeon/FirePro Linux video driver on their website. Arch wiki's AMDGPU PRO page says that "Most users do not need these proprietary drivers." Should I install this? Will this fix my problem?
No, absolutely no, this package from 2014 won't compile/load at all on modern version of linux kernel.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #12
try comparing how voltages and cpu clock behaves on idle on windows vs on linux and then if you gather the data, we could pinpoint how to apply this behavior to loonix.
At the moment, Artix Linux is the only OS I am using on this laptop but I have a spare SSD and I might install Windows 10 LTSCope on it and compare it with my Artix Linux installation.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #13

That doesn't look great. If OpenGL is not working then whatever would be using it is going to fall back to software rendering.
I disabled the dGPU and now this is the output of glxinfo:
Code: [Select]
$ glxinfo | grep "OpenGL renderer" 
OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2
Also the laptop is a lot cooler now as it is clear in the attached screenshot.


FWIW - I don't see any of the cores close to overheating.  It looks like everything is operating within normal parameters.  If you want to compare it to MS Windows, I would keep in mind that it is an entirely different OS and I am happy, usually, that they do not behave the same.  I see the GPU is running warm.  It is doing something.

This this the driver? https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

https://linux-hardware.org/?id=pci:1002-6901-103c-224a

I would find the drivers maintainer and contact him.  It couldn't hurt to try a custom compile of the Kernel as well.  You have a finiky laptop and it might well be the MS has access to information about the set up that is overwise undocumented.  It happens all the time.  Stock Kernels a re just that... stock commodity.

Re: High Laptop Temperatures After Switching from Windows 11 to Artix Linux

Reply #14
BTW - you never posts ps -auxw or htop.  Some process is chewing your GPU.