LINUX.ORG.RU

Не стартует thinkfan .

 , , , ,


0

1

Не стартует thinkfan на ноуте thinkpad t420s . OC arch.

вывод systemctl status thinkfan

● thinkfan.service - Thinkfan Daemon - simple and lightweight fan control program Loaded: loaded (/usr/lib/systemd/system/thinkfan.service; enabled; vendor preset: disabled) Active: failed (Result: timeout) since Sat 2017-10-07 21:10:15 UTC; 21s ago Process: 6568 ExecStart=/usr/bin/thinkfan -n -q (code=exited, status=0/SUCCESS)

окт 07 21:08:45 blackPC systemd[1]: Starting Thinkfan Daemon - simple and lightweight fan control program... окт 07 21:08:45 blackPC thinkfan[6568]: thinkfan 0.9.1 starting... окт 07 21:10:15 blackPC systemd[1]: thinkfan.service: Start operation timed out. Terminating. окт 07 21:10:15 blackPC thinkfan[6568]: Caught deadly signal. окт 07 21:10:15 blackPC systemd[1]: Failed to start Thinkfan Daemon - simple and lightweight fan control program. окт 07 21:10:15 blackPC systemd[1]: thinkfan.service: Unit entered failed state. окт 07 21:10:15 blackPC systemd[1]: thinkfan.service: Failed with result 'timeout'.

Конфиг /etc/thinkfan.conf

tp_fan /proc/acpi/ibm/fan #hwmon /sys/devices/virtual/thermal/thermal_zone0/temp hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input #hwmon /sys/devices/virtual/hwmon/hwmon0/temp1_input

(0, 0, 20) (65, 15, 52) (80, 50, 54) (120, 52, 56) (150, 54, 58) (180, 56, 60) (210, 58, 62) (255, 60, 64)


Но генте всё работает, но там нет systemd.

Bruce_Lee ★★
()

Во-первых, www.linux.org.ru/help/lorcode.md

Во-вторых, systemctl cat thinkfan.service

Первым делом попробуй запустить бинарник руками через sudo, чтобы было видно вывод и всё такое.

Предполагаю, что неправильно указан тип юнита.

Radjah ★★★★★
()

Active: failed (Result: timeout)

У тебя там скорее всего тип юнита не тот. У меня старый юнит выглядел так.

/etc/systemd/system/thinkfan-PM.service 
[Unit]
Description=ThinkPad Fan control
After=sysinit.target sys-module-coretemp.device
BindsTo=sys-module-coretemp.device
PartOf=pm.target
Conflicts=thinkfan-AC.service

[Service]
ExecStartPre=/bin/sh -c "echo enable > /proc/acpi/ibm/fan"
ExecStart=/usr/sbin/thinkfan -d -n -c /etc/thinkfan-PM.conf
ExecStopPost=/bin/sh -c "echo level auto > /proc/acpi/ibm/fan"
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=journal

[Install]
WantedBy=pm.target
vasily_pupkin ★★★★★
()
Ответ на: комментарий от Radjah

Во-первых спасибо на досуге почитаю.

Во-вторых

sudo systemctl status thinkfan

● thinkfan.service - Thinkfan Daemon - simple and lightweight fan control program Loaded: loaded (/usr/lib/systemd/system/thinkfan.service; enabled; vendor preset: disabled) Active: failed (Result: timeout) since Sun 2017-10-08 08:00:34 UTC; 5min ago Process: 7776 ExecStart=/usr/bin/thinkfan -n -q (code=exited, status=0/SUCCESS)

окт 08 07:59:04 blackPC systemd[1]: Starting Thinkfan Daemon - simple and lightweight fan control program... окт 08 07:59:04 blackPC thinkfan[7776]: thinkfan 0.9.1 starting... окт 08 08:00:34 blackPC systemd[1]: thinkfan.service: Start operation timed out. Terminating. окт 08 08:00:34 blackPC thinkfan[7776]: Caught deadly signal. окт 08 08:00:34 blackPC thinkfan[7776]: Cleaning up and resetting fan control. окт 08 08:00:34 blackPC systemd[1]: Failed to start Thinkfan Daemon - simple and lightweight fan control program. окт 08 08:00:34 blackPC systemd[1]: thinkfan.service: Unit entered failed state. окт 08 08:00:34 blackPC systemd[1]: thinkfan.service: Failed with result 'timeout'.

sudo systemctl cat thinkfan.service

[Unit] Description=simple and lightweight fan control program Description=Thinkfan Daemon - simple and lightweight fan control program Wants=lm_sensors.service After=lm_sensors.service After=basic.target

[Service] Type=forking ExecStart=/usr/bin/thinkfan -n -q PIDFile=/var/run/thinkfan.pid ExecReload=/usr/bin/kill -HUP $MAINPID

[Install] WantedBy=multi-user.target

MIISHA
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.