LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [SOLVED] Problem to start thermald (https://www.linuxquestions.org/questions/slackware-14/%5Bsolved%5D-problem-to-start-thermald-4175671352/)

SLACKER1 03-14-2020 06:59 PM

[SOLVED] Problem to start thermald
 
hello
i install thermald with Sbopkg
i have this error:
Code:

# thermald start
Ready to serve requests: Daemonizing.. 1

how to enable and start thermald?
Thanks

average_user 03-14-2020 07:16 PM

Why do you think it's error? I don't know thermald but I did the same and it's running:
Code:

$ ps aux | grep '[t]hermald'
root      7932  0.0  0.0 120336  6020 ?        Ssl  01:14  0:00 thermald start

And I don't think you even need start. In README it says:
Quote:

Since this is a daemon, it can be started at boot via /etc/rc.d/rc.local: /sbin/thermald

SLACKER1 03-15-2020 02:34 AM

Quote:

Originally Posted by average_user (Post 6100534)
Why do you think it's error? I don't know thermald but I did the same and it's running:
Code:

$ ps aux | grep '[t]hermald'
root      7932  0.0  0.0 120336  6020 ?        Ssl  01:14  0:00 thermald start

And I don't think you even need start. In README it says:

i don't have this file /etc/rc.d/rc.local

SLACKER1 03-15-2020 08:45 AM

➜ ~ ps aux | grep '[t]hermald'
Nothing

Code:

➜  ~ cd /etc/rc.local 
cd: no such file or directory: /etc/rc.local
➜  ~ cat /etc/rc.local     
cat: /etc/rc.local: No such file or directory


help please

average_user 03-15-2020 09:44 AM

OK, first let's make sure that you have installed thermald from Slackbuilds.org. Show output of this command:
Code:

grep /sbin/thermald /var/log/packages/thermald-1.9-x86_64-2_SBo
It should say usr/sbin/thermald.

Second, make sure you run it with root:
Code:

$ su -
Password:

Try the Moo Shu Pork.  It is especially good today.

root@comp:~# thermald
Ready to serve requests: Daemonizing.. 1
root@comp:~# ps aux | grep '[t]hermald'
root      5720  0.0  0.0 120132  4372 ?        Ssl  15:42  0:00
thermald

Third, try with --no-daemon and check what happens:
Code:

root@comp:~# thermald --no-daemon
[WARN]13 CPUID levels; family:model:stepping 0x6:3c:3 (6:60:3)
[WARN]Polling mode is enabled: 4
[WARN]sensor id 6 : No temp sysfs for reading raw temp
[WARN]sensor id 6 : No temp sysfs for reading raw temp
[WARN]sensor id 6 : 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
[WARN]sysfs open failed
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

As you I get some warnings and errors but thermald is running nonetheless.

SLACKER1 03-15-2020 10:02 AM

Quote:

Originally Posted by average_user (Post 6100714)
OK, first let's make sure that you have installed thermald from Slackbuilds.org. Show output of this command:
Code:

grep /sbin/thermald /var/log/packages/thermald-1.9-x86_64-2_SBo
It should say usr/sbin/thermald.

Second, make sure you run it with root:
Code:

$ su -
Password:

Try the Moo Shu Pork.  It is especially good today.

root@comp:~# thermald
Ready to serve requests: Daemonizing.. 1
root@comp:~# ps aux | grep '[t]hermald'
root      5720  0.0  0.0 120132  4372 ?        Ssl  15:42  0:00
thermald

Third, try with --no-daemon and check what happens:
Code:

root@comp:~# thermald --no-daemon
[WARN]13 CPUID levels; family:model:stepping 0x6:3c:3 (6:60:3)
[WARN]Polling mode is enabled: 4
[WARN]sensor id 6 : No temp sysfs for reading raw temp
[WARN]sensor id 6 : No temp sysfs for reading raw temp
[WARN]sensor id 6 : 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
[WARN]sysfs open failed
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

As you I get some warnings and errors but thermald is running nonetheless.

yes.if run it with root thermald working
Code:

➜  ~ ps aux | grep '[t]hermald'
root      1743  0.0  0.0  93852  5408 ?        Ssl  18:35  0:00 thermald start
root      2497  0.0  0.0  93936  8048 pts/0    Tl  18:48  0:00 thermald --no-daemon

i have same erorr with thermald --no-daemon
Code:

root@darkstar:~# 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

thanks for your help
now how i can set thermald start at boot?
becuse this file not available:
Code:

/etc/rc.local
and i have this problem also:
i edit grub and write this:
Code:

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=passive acpi_osi=Linux acpi_osi='!Windows 2012' acpi=force acpi_enforce_resources=lax acpi_mask_gpe=0x17"
but not working:
Code:

➜  ~ cat /proc/cmdline   
BOOT_IMAGE=dev000:\EFI\Slackware\vmlinuz  root=/dev/sda2 vga=normal ro ro

Thanks

average_user 03-15-2020 10:09 AM

I'm confused - if thermald is run as non-root user it emits an error:
Code:

$ thermald start
You must be root to run thermald!

Did you run 'thermald start's as root in your first post? If yes, how is it possible that you didn't get this message?
Quote:

Originally Posted by SLACKER1 (Post 6100718)
and i have this problem also:
i edit grub and write this:
Code:

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=passive acpi_osi=Linux acpi_osi='!Windows 2012' acpi=force acpi_enforce_resources=lax acpi_mask_gpe=0x17"
but not working:
Code:

➜  ~ cat /proc/cmdline   
BOOT_IMAGE=dev000:\EFI\Slackware\vmlinuz  root=/dev/sda2 vga=normal ro ro


One question at a time - start a new topic for a new problem.

SLACKER1 03-15-2020 11:03 AM

Quote:

Originally Posted by average_user (Post 6100729)
I'm confused - if thermald is run as non-root user it emits an error:
Code:

$ thermald start
You must be root to run thermald!

Did you run 'thermald start's as root in your first post? If yes, how is it possible that you didn't get this message?

One question at a time - start a new topic for a new problem.

In first post i use thermald with root
How to start thermald as boot?
This file not available on system /etc/rc.local
For grub i will start new topic
Thanks

average_user 03-15-2020 11:17 AM

Quote:

Originally Posted by SLACKER1 (Post 6100760)
In first post i use thermald with root

And you didn't see thermald runing but now you did exactly the same and now you see it?
Quote:

Originally Posted by SLACKER1 (Post 6100760)
How to start thermald as boot?
This file not available on system /etc/rc.local

It's /etc/rc.d/rc.local, NOT /etc/rc.local.

0XBF 03-15-2020 11:18 AM

I think you mean /etc/rc.d/rc.local
Its a script file that gets run at boot time. You can edit it and add custom entries to start, like your thermald application I suppose (although I've never used it).

Too slow... :P

SLACKER1 03-15-2020 12:31 PM

Quote:

Originally Posted by average_user (Post 6100772)
And you didn't see thermald runing but now you did exactly the same and now you see it?

It's /etc/rc.d/rc.local, NOT /etc/rc.local.

That time i thinking thermald not working because temperature 60° to 65° and now with start thermald not different still 60° to 65°
In manjaro temperature at 50° to 55°
And i didn't know how to check services status in slackware

And for rc.local i mistake to write location file. This file not available at /etc/rc.d/

SLACKER1 03-15-2020 12:33 PM

Quote:

Originally Posted by 0XBF (Post 6100773)
I think you mean /etc/rc.d/rc.local
Its a script file that gets run at boot time. You can edit it and add custom entries to start, like your thermald application I suppose (although I've never used it).

Too slow... :P

File not available at this address /etc/rc.d/
You mean better not use this file?

0XBF 03-15-2020 02:24 PM

The scripts in /etc/rc.d/ are installed there by the sysvinit-scripts package from slackware's 'a' series of packages. I'm not sure what you have installed if it's missing, or how you are booting slackware with that directory missing.

SLACKER1 03-15-2020 04:47 PM

sorry

/etc/rc.d/rc.local is available

sorry my mistake.

Code:

cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

now how add thermald to this file for start at boot?

Thanks

average_user 03-15-2020 04:57 PM

You need to learn to read documentation, it will save you and other users a lot of time. There are the relevant lines from README:

Code:

Since this is a daemon, it can be started at boot via /etc/rc.d/rc.local:
  /usr/sbin/thermald

An entry could be added to /etc/rc.d/rc.local_shutdown as well:
  killall thermald



All times are GMT -5. The time now is 03:14 PM.