Thinkfan - how to configure?

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

kris-kris
Young Hen
Posts: 24
Joined: Mon May 04, 2020 19:45
Location: Poland, Warsaw

Re: Thinkfan - how to configure?

Post by kris-kris » Fri May 22, 2020 15:48

I combine as much as I can and I understand the instructions and I can't run Thinkfan. I don't have good English and Linux, so it's possible that I'm doing something wrong because I misunderstood.
I do not understand the error information on the terminal.

I don't know what's wrong with this file or how it should be. ERROR: /etc/thinkfan.conf: Invalid entryInvalid entry. Anyone have any idea? Does it work for someone? Enter your entry in this file, I will copy and paste it at home and see if it works.

Code: Select all

$ sudo thinkfan -q                             
Hasło: 

ERROR: Unhandled thinkfan::Bug: Segmentation fault..
errno = No such file or directory.
Backtrace:
thinkfan(+0x2f453) [0x563cec6c6453]
thinkfan(thinkfan::handle_uncaught()+0x18f) [0x563cec6c6f0f]
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6(+0xb7486) [0x7f6b9c49e486]
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6(+0xb64e9) [0x7f6b9c49d4e9]
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6(__gxx_personality_v0+0x2e8) [0x7f6b9c49de98]
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc_s.so.1(+0x10d73) [0x7f6b9c3ddd73]
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc_s.so.1(_Unwind_RaiseException+0x2b1) [0x7f6b9c3de2d1]
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6(__cxa_throw+0x37) [0x7f6b9c49e6e7]
thinkfan(thinkfan::sig_handler(int)+0x10a) [0x563cec6b0caa]
/lib64/libc.so.6(+0x39100) [0x7f6b9c230100]
thinkfan(YAML::convert<YAML::wtf_ptr<thinkfan::Config> >::decode(YAML::Node const&, YAML::wtf_ptr<thinkfan::Config>&)+0x5b) [0x563cec6c8d4b]
thinkfan(thinkfan::Config::try_read_config(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x261) [0x563cec6b5cf1]
thinkfan(thinkfan::Config::read_config(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)+0x2a) [0x563cec6b717a]
thinkfan(main+0x1f9) [0x563cec6afb99]
/lib64/libc.so.6(__libc_start_main+0xeb) [0x7f6b9c21ae4b]
thinkfan(_start+0x2a) [0x563cec6b098a]

This is probably a bug. Please consider reporting this at https://github.com/vmatare/thinkfan/issues. Thanks.
Przerwane

Edit: 29.07.2020

Code: Select all

# systemctl status thinkfan.service
● thinkfan.service - Thinkfan, the minimalist fan control program
   Loaded: loaded (/lib/systemd/system/thinkfan.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/thinkfan.service.d
           └─override.conf
   Active: failed (Result: exit-code) since Wed 2020-07-29 08:32:56 CEST; 17s ago
  Process: 18351 ExecStart=/usr/sbin/thinkfan $THINKFAN_ARGS (code=exited, status=1/FAILURE)

lip 29 08:32:56 sabayon systemd[1]: Starting Thinkfan, the minimalist fan control program...
lip 29 08:32:56 sabayon thinkfan[18351]: ERROR: /etc/thinkfan.conf: Invalid entryInvalid entry.
lip 29 08:32:56 sabayon systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE
lip 29 08:32:56 sabayon systemd[1]: thinkfan.service: Failed with result 'exit-code'.
lip 29 08:32:56 sabayon systemd[1]: Failed to start Thinkfan, the minimalist fan control program.

Code: Select all

# journalctl -xe
-- 
-- Identyfikator zadania: 4356.
lip 29 08:32:56 sabayon thinkfan[18351]: ERROR: /etc/thinkfan.conf: Invalid entryInvalid entry.
lip 29 08:32:56 sabayon systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Proces jednostki zakończył działanie
-- Defined-By: systemd
-- Support: https://gentoo.org/support/
-- 
-- Proces ExecStart= należący do jednostki thinkfan.service zakończył działanie.
-- 
-- Kod wyjścia procesu: „exited”, jego stan wyjścia: 1.
lip 29 08:32:56 sabayon systemd[1]: thinkfan.service: Failed with result 'exit-code'.
-- Subject: Jednostka się nie powiodła
-- Defined-By: systemd
-- Support: https://gentoo.org/support/
-- 
-- Jednostka thinkfan.service przeszła do stanu „failed” (niepowodzenia)
-- z wynikiem „exit-code”.
lip 29 08:32:56 sabayon systemd[1]: Failed to start Thinkfan, the minimalist fan control program.
-- Subject: Zadanie uruchamiania dla jednostki thinkfan.service się nie powiodło
-- Defined-By: systemd
-- Support: https://gentoo.org/support/
-- 
-- Zadanie uruchamiania dla jednostki thinkfan.service zostało ukończone z niepowodzeniem.
-- 
-- Identyfikator zadania: 4356, wynik zadania: failed.
lip 29 08:33:21 sabayon wpa_supplicant[765]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-52 noise=9999 txrate=65000

Code: Select all

~ $ sudo /usr/sbin/thinkfan
Hasło: 

ERROR: /etc/thinkfan.conf: Invalid entryInvalid entry.

Code: Select all

~ $ sudo thinkfan -q

ERROR: /etc/thinkfan.conf: Invalid entryInvalid entry.

kris-kris
Young Hen
Posts: 24
Joined: Mon May 04, 2020 19:45
Location: Poland, Warsaw

Re: Thinkfan - how to configure?

Post by kris-kris » Tue Oct 20, 2020 19:12

Someone uses thinkfan and works for them? Maybe share the configuration file and tips what to enter? I will be grateful for your help.

Code: Select all

# systemctl status thinkfan.service
● thinkfan.service - Thinkfan, the minimalist fan control program
   Loaded: loaded (/lib/systemd/system/thinkfan.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/thinkfan.service.d
           └─override.conf
   Active: failed (Result: exit-code) since Tue 2020-10-20 21:08:41 CEST; 6min ago
  Process: 750 ExecStart=/usr/sbin/thinkfan $THINKFAN_ARGS (code=exited, status=1/FAILURE)

paź 20 21:08:37 sabayon systemd[1]: Starting Thinkfan, the minimalist fan control program...
paź 20 21:08:39 sabayon thinkfan[750]: ERROR: /etc/thinkfan.conf: Invalid entryInvalid entry.
paź 20 21:08:41 sabayon systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE
paź 20 21:08:41 sabayon systemd[1]: thinkfan.service: Failed with result 'exit-code'.
paź 20 21:08:41 sabayon systemd[1]: Failed to start Thinkfan, the minimalist fan control program.

Code: Select all

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +42.0°C  (high = +95.0°C, crit = +105.0°C)
Core 2:       +37.0°C  (high = +95.0°C, crit = +105.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        1965 RPM
temp1:        +47.0°C  
temp2:         +0.0°C  
temp3:         +0.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:         +0.0°C  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +47.0°C  (crit = +100.0°C)

Code: Select all

~ $ find /sys/devices -type f -name "temp*_input"
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp6_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp3_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp7_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp4_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp8_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp1_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp5_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp2_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp4_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input
/sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp1_input

Post Reply