LINUX.ORG.RU

Опять проблема с thinkfan.arch

 , , ,


0

1

Не запускается thinkfan в arch linux на ноутбуке t420s.

systemctl status thinkfan

Warning: The unit file, source configuration file or drop-ins of thinkfan.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● thinkfan.service - Thinkfan Daemon - simple and lightweight fan control program
Loaded: error (Reason: Invalid argument)
Drop-In: /etc/systemd/system/thinkfan.service.d
└─override.conf
Active: inactive (dead)

unit

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

[Service]
ExecStart=/usr/sbin/thinkfan -n -s5 -q

[Install]
WantedBy=multi-user.target

также пробовал другой unit

[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

Я-то сам не пользовался этим, но вижу

(Reason: Invalid argument)

Ты бы для разнообразия посмотрел выхлоп этого

systemctl restart thinkfan
dmesg

fehhner ★★★★★ ()
Ответ на: комментарий от fehhner

[ 1888.638188] usb 3-1.4: USB disconnect, device number 7
[ 2496.121364] systemd-fstab-generator[2932]: Mount point none is not a valid path, ignoring.
[ 2808.280314] Netfilter messages via NETLINK v0.30.
[ 2996.317808] systemd-fstab-generator[3266]: Mount point none is not a valid path, ignoring.
[ 4317.905655] CPU0: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 4317.905656] CPU1: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 4317.905657] CPU2: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4317.905659] CPU3: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4317.905661] CPU1: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4317.905665] CPU0: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4317.906637] CPU0: Core temperature/speed normal
[ 4317.906638] CPU1: Core temperature/speed normal
[ 4317.906639] CPU2: Package temperature/speed normal
[ 4317.906640] CPU3: Package temperature/speed normal
[ 4317.906641] CPU1: Package temperature/speed normal
[ 4317.906642] CPU0: Package temperature/speed normal

MIISHA ()

ExecStart=/usr/sbin/thinkfan -n -s5 -q

Пробел после -s не нужен? Второй юнит вообще какой-то странный.

Debian'овский выглядит так:

[Unit]
Description=simple and lightweight fan control program
After=syslog.target

[Service]
Type=forking
EnvironmentFile=-/etc/default/thinkfan
ExecStart=/usr/sbin/thinkfan $DAEMON_ARGS
PIDFile=/var/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

micronekodesu ★★ ()
Ответ на: комментарий от micronekodesu

с прробелом таже ошибка

янв 06 12:29:40 DARKpc systemd[1]: thinkfan.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.

MIISHA ()
Ответ на: комментарий от fehhner

янв 06 12:40:43 DARKpc systemd[1]: Reloading. янв 06 12:40:43 DARKpc systemd-fstab-generator[14983]: Mount point none is not a valid path, ignoring. янв 06 12:40:43 DARKpc systemd[1]: thinkfan.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.

MIISHA ()
Ответ на: с прробелом таже ошибка от MIISHA

Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services.

В приведенном мной юните одна секция execstart, что-то видно не докопипастили.

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