Just running thermald as root yields no apparent results other than it executed
[root@A515-54 bin]# thermald
[root@A515-54 bin]#
Ran it with daemon disabled. Received lines that resembled this post
[root@A515-54 bin]# thermald --no-daemon
[WARN]13 CPUID levels; family:model:stepping 0x6:3a:9 (6:58:9)
[WARN]Polling mode is enabled: 4
[WARN]sensor id 5 : No temp sysfs for reading raw temp
[WARN]sensor id 5 : No temp sysfs for reading raw temp
[WARN]sensor id 5 : No temp sysfs for reading raw temp
I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
[WARN]error: could not parse file /etc/thermald/thermal-conf.xml
I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
[WARN]error: could not parse file /etc/thermald/thermal-conf.xml
I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
[WARN]error: could not parse file /etc/thermald/thermal-conf.xml
Ran it again and it says it started
[root@A515-54 bin]# thermald --no-daemon
[1681682773][ERR]Couldn't get lock file 205095
[1681682773][ERR]An instance of thermald is already running, exiting ...
[root@A515-54 bin]#
[root@A515-54 bin]# systemctl status thermald
β thermald.service - Thermal Daemon Service
Loaded: loaded (/usr/lib/systemd/system/thermald.service; disabled; preset: disabled)
Active: inactive (dead)
[admin@A515-54 ~]$ sudo systemctl enable --now thermald.service
Created symlink /etc/systemd/system/dbus-org.freedesktop.thermald.service β /usr/lib/systemd/system/thermald.service.
Created symlink /etc/systemd/system/multi-user.target.wants/thermald.service β /usr/lib/systemd/system/thermald.service.
Job for thermald.service failed because the control process exited with error code.
See "systemctl status thermald.service" and "journalctl -xeu thermald.service" for details.
[admin@A515-54 ~]$ systemctl status thermald.service
Γ thermald.service - Thermal Daemon Service
Loaded: loaded (/usr/lib/systemd/system/thermald.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sun 2023-04-16 15:16:13 PDT; 44s ago
Process: 209556 ExecStart=/usr/bin/thermald --systemd --dbus-enable --adaptive (code=exited, status=1/FAI>
Main PID: 209556 (code=exited, status=1/FAILURE)
CPU: 23ms
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Scheduled restart job, restart counter is at 5.
Apr 16 15:16:13 A515-54 systemd[1]: Stopped Thermal Daemon Service.
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Start request repeated too quickly.
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Failed with result 'exit-code'.
Apr 16 15:16:13 A515-54 systemd[1]: Failed to start Thermal Daemon Service.
...skipping...
Γ thermald.service - Thermal Daemon Service
Loaded: loaded (/usr/lib/systemd/system/thermald.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sun 2023-04-16 15:16:13 PDT; 44s ago
Process: 209556 ExecStart=/usr/bin/thermald --systemd --dbus-enable --adaptive (code=exited, status=1/FAI>
Main PID: 209556 (code=exited, status=1/FAILURE)
CPU: 23ms
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Scheduled restart job, restart counter is at 5.
Apr 16 15:16:13 A515-54 systemd[1]: Stopped Thermal Daemon Service.
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Start request repeated too quickly.
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Failed with result 'exit-code'.
Apr 16 15:16:13 A515-54 systemd[1]: Failed to start Thermal Daemon Service.
~
~
~
[admin@A515-54 ~]$ journalctl -xeu thermald.service
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ Automatic restarting of the unit thermald.service has been scheduled, as the result for
ββ the configured Restart= setting for the unit.
Apr 16 15:16:13 A515-54 systemd[1]: Stopped Thermal Daemon Service.
ββ Subject: A stop job for unit thermald.service has finished
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ A stop job for unit thermald.service has finished.
ββ
ββ The job identifier is 22186 and the job result is done.
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Start request repeated too quickly.
Apr 16 15:16:13 A515-54 systemd[1]: thermald.service: Failed with result 'exit-code'.
ββ Subject: Unit failed
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ The unit thermald.service has entered the 'failed' state with result 'exit-code'.
Apr 16 15:16:13 A515-54 systemd[1]: Failed to start Thermal Daemon Service.
ββ Subject: A start job for unit thermald.service has failed
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ A start job for unit thermald.service has finished with a failure.
ββ
ββ The job identifier is 22186 and the job result is failed.
lines 224-250/250 (END)
Out of curiosity, I know with the default power profile daemon on KDE and these other services i put in, thereβs still no option to force a charge limit on a laptop battery. I dont want to replace the daemon with tlpβ¦ but i found this thread that explains you can just edit the threshold files to stop charging at 80% when plugged in.
There are direct files you can write to that will change the thresholds. Itβs what tlp uses. It should be /sys/class/power_supply/BAT0/charge_start_threshold and /sys/class/power_supply/BAT0/charge_stop_threshold. You can write a systemd service to set these on boot (you may be able to just set it once and forget a script)
This must be from a different OS because i canβt find those files. Could we go this route with native files, or is there any other way to stop batteries at 80%? I know my laptop doesnβt offer those settings, nor does my bios.
I am afraid I am not well suited to assist you on this.
Perhaps other forum members with experience in this subject might be able to help you.
I would suggest opening a new thread with an appropriate title, something like: How to set thresholds for battery charge (or similar) to get adequate response.