intel / thermal_daemon

Thermal daemon for IA
GNU General Public License v2.0
539 stars 117 forks source link

Thermald does not work on Thinkpad E14 Gen4 #414

Closed jorgelaranjo closed 1 month ago

jorgelaranjo commented 1 year ago

System

uname -r 6.4.11-arch1-1 CPU Model name: 12th Gen Intel(R) Core(TM) i7-1255U thermald --version 2.5.4

❯ sudo thermald --no-daemon
[1692712669][MSG]32 CPUID levels; family:model:stepping 0x6:9a:4 (6:154:4)
[1692712669][WARN][/sys/devices/platform/thinkpad_acpi/dytc_lapmode] present: Thermald can't run on this platform
[1692712669][MSG]Config file /etc/thermald/thermal-conf.xml does not exist
[1692712669][MSG]**Unsupported cpu model, use thermal-conf.xml file or run with --ignore-cpuid-check** 
[1692712669][MSG]THD engine init failed
[1692712669][MSG]Polling mode is enabled: 4
❯ sudo thermald --no-daemon --ignore-cpuid-check
[1692712736][MSG]sensor id 20 : No temp sysfs for reading raw temp
[1692712736][MSG]sensor id 20 : No temp sysfs for reading raw temp
[1692712736][MSG]sensor id 20 : No temp sysfs for reading raw temp
[1692712736][MSG]Config file /etc/thermald/thermal-conf.xml does not exist
[1692712736][MSG]Config file /etc/thermald/thermal-conf.xml does not exist
[1692712736][MSG]Config file /etc/thermald/thermal-conf.xml does not exist
[1692712736][MSG]Polling mode is enabled: 4
sensors
thinkpad-isa-0000
Adapter: ISA adapter
fan1:           0 RPM
fan2:           0 RPM
CPU:          +48.0°C  
GPU:          +43.0°C  
temp3:        +43.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:         +0.0°C 

Can be made to start as daemon and ignoring cpuid-check with

sudo systemctl edit --full thermald.service

then edit line ExecStart to be similar to

ExecStart=/usr/bin/thermald --systemd --dbus-enable --adaptive --ignore-cpuid-check

Start daemon

sudo systemctl start thermald.service

and then check status

● thermald.service - Thermal Daemon Service
     Loaded: loaded (/etc/systemd/system/thermald.service; disabled; preset: disabled)
     Active: active (running) since Tue 2023-08-22 15:04:05 BST; 17s ago
   Main PID: 28966 (thermald)
      Tasks: 5 (limit: 18780)
     Memory: 5.5M
        CPU: 36ms
     CGroup: /system.slice/thermald.service
             └─28966 /usr/bin/thermald --systemd --dbus-enable --adaptive --ignore-cpuid-check

Aug 22 15:04:05 archlinux systemd[1]: Starting Thermal Daemon Service...
Aug 22 15:04:05 archlinux systemd[1]: Started Thermal Daemon Service.
Aug 22 15:04:05 archlinux thermald[28966]: sensor id 20 : No temp sysfs for reading raw temp
Aug 22 15:04:05 archlinux thermald[28966]: sensor id 20 : No temp sysfs for reading raw temp
Aug 22 15:04:05 archlinux thermald[28966]: sensor id 20 : No temp sysfs for reading raw temp
Aug 22 15:04:05 archlinux thermald[28966]: Polling mode is enabled: 4

However still get sensor id 20 : No temp sysfs for reading raw temp

Not clear if thermald is even required as the firmware should control it, as per #395 ?

spandruvada commented 12 months ago

Please run this script with --loglevel=debug You can systemctl stop thermald thermald --dbus-enable --adaptive --ignore-cpuid-check --loglevel=debug

Attach the logs printed on the screen. It may be OK not have some sysfs for reading temperature.