[+] Lenovo x220 - thinkfan.service: control process exited, code=exited status=4

Wszystko związane z jądrem systemowym, sterownikami, sprzętem itp.
rataj
Posty: 16
Rejestracja: 06 września 2015, 20:16

[+] Lenovo x220 - thinkfan.service: control process exited, code=exited status=4

Post autor: rataj »

Witam Wszystkich!

Mam następujący problem:
Wczoraj zainstalowałem na moim Lenovo x220 Debiana 8.5.0.
Jednak wentylator pracuje jak szalony! Znalazłem w Internecie program thinkfan.
Podczas instalacji programu mam następujący problem:

Kod: Zaznacz cały

Następujące NOWE pakiety zostaną zainstalowane:
  thinkfan 
0 pakietów aktualizowanych, 1 instalowanych, 0 do usunięcia i 0 nieaktualizowanych.
Do pobrania 0 B/33,1 kB archiwów. Zajęte po rozpakowaniu: 128 kB.
Wybieranie wcześniej niewybranego pakietu thinkfan.
(Odczytywanie bazy danych ... 140397 plików i katalogów obecnie zainstalowanych.)
Przygotowywanie do rozpakowania pakietu .../thinkfan_0.9.2-1_amd64.deb ...
Rozpakowywanie pakietu thinkfan (0.9.2-1) ...
Przetwarzanie wyzwalaczy pakietu systemd (215-17+deb8u4)...
Przetwarzanie wyzwalaczy pakietu man-db (2.7.0.2-5)...
Konfigurowanie pakietu thinkfan (0.9.2-1) ...
Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript thinkfan, action "start" failed.
dpkg: błąd przetwarzania pakietu thinkfan (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Przetwarzanie wyzwalaczy pakietu systemd (215-17+deb8u4)...
Wystąpiły błędy podczas przetwarzania:
 thinkfan
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Konfigurowanie pakietu thinkfan (0.9.2-1) ...
Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript thinkfan, action "start" failed.
dpkg: błąd przetwarzania pakietu thinkfan (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Wystąpiły błędy podczas przetwarzania:
 thinkfan
Następnie wydałem polecenie aptitude install -f

Kod: Zaznacz cały

Następujące częściowo zainstalowane pakiety zostaną skonfigurowane:
  thinkfan 
Nie zostaną zainstalowane, zaktualizowane ani usunięte żadne pakiety.
0 pakietów aktualizowanych, 0 instalowanych, 0 do usunięcia i 0 nieaktualizowanych.
Do pobrania 0 B archiwów. Zajęte po rozpakowaniu: 0 B.
Konfigurowanie pakietu thinkfan (0.9.2-1) ...
Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript thinkfan, action "start" failed.
dpkg: błąd przetwarzania pakietu thinkfan (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Wystąpiły błędy podczas przetwarzania:
 thinkfan
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Konfigurowanie pakietu thinkfan (0.9.2-1) ...
Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript thinkfan, action "start" failed.
dpkg: błąd przetwarzania pakietu thinkfan (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Wystąpiły błędy podczas przetwarzania:
 thinkfan
oraz dpkg --configure -a

Kod: Zaznacz cały

Konfigurowanie pakietu thinkfan (0.9.2-1) ...
Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript thinkfan, action "start" failed.
dpkg: błąd przetwarzania pakietu thinkfan (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Wystąpiły błędy podczas przetwarzania:
 thinkfan
Następnie sprawdziłem systemctl status thinkfan.service

Kod: Zaznacz cały

● thinkfan.service - simple and lightweight fan control program
   Loaded: loaded (/lib/systemd/system/thinkfan.service; disabled)
   Active: failed (Result: exit-code) since czw 2016-08-18 16:23:15 CEST; 1min 37s ago
  Process: 9372 ExecStart=/usr/sbin/thinkfan (code=exited, status=4)

sie 18 16:23:15 rataj thinkfan[9372]: thinkfan 0.9.1 starting...
sie 18 16:23:15 rataj systemd[1]: thinkfan.service: control process exited, code=exited status=4
sie 18 16:23:15 rataj systemd[1]: Failed to start simple and lightweight fan control program.
sie 18 16:23:15 rataj systemd[1]: Unit thinkfan.service entered failed state.
oraz journalctl -xn

Kod: Zaznacz cały

-- Logs begin at czw 2016-08-18 09:38:27 CEST, end at czw 2016-08-18 16:26:17 CEST. --
sie 18 16:24:13 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12C4AEC')
sie 18 16:24:24 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12CE2C4')
sie 18 16:24:41 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12C4AEC')
sie 18 16:25:06 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12CE2C4')
sie 18 16:25:08 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12C4AEC')
sie 18 16:25:11 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12CE2C4')
sie 18 16:25:36 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12C4AEC')
sie 18 16:25:54 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12CE2C4')
sie 18 16:26:15 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12C4AEC')
sie 18 16:26:17 rataj ModemManager[520]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP location updated (MCC: '260', MNC: '1', Location area code: 'A416', Cell ID: '12CE2C4')
Czy ktoś z was miał podobny problem albo wie jak sobie z tym poradzić ?
Z góry dziękuje za każdą pomoc
Ostatnio zmieniony 18 sierpnia 2016, 20:16 przez rataj, łącznie zmieniany 1 raz.
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Lenovo x220 - thinkfan

Post autor: dedito »

Kod: Zaznacz cały

cat /sys/module/thinkpad_acpi/parameters/fan_control
rataj
Posty: 16
Rejestracja: 06 września 2015, 20:16

Re: Lenovo x220 - thinkfan

Post autor: rataj »

dedito pisze:

Kod: Zaznacz cały

cat /sys/module/thinkpad_acpi/parameters/fan_control

Kod: Zaznacz cały

root@rataj:/home/rataj# cat /sys/module/thinkpad_acpi/parameters/fan_control
N
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Lenovo x220 - thinkfan

Post autor: dedito »

Kod: Zaznacz cały

lsmod | grep thinkpad
rataj
Posty: 16
Rejestracja: 06 września 2015, 20:16

Re: Lenovo x220 - thinkfan

Post autor: rataj »

Kod: Zaznacz cały

thinkpad_acpi          69119  1 
nvram                  13034  1 thinkpad_acpi
snd                    65244  21 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
rfkill                 18867  5 cfg80211,thinkpad_acpi,bluetooth
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Lenovo x220 - thinkfan

Post autor: dedito »

Kod: Zaznacz cały

echo "options thinkpad_acpi fan_control=1" >> /etc/modprobe.d/thinkpad.conf

Kod: Zaznacz cały

modprobe -r thinkpad_acpi

Kod: Zaznacz cały

modprobe thinkpad_acpi

Kod: Zaznacz cały

/etc/init.d/thinkfan start
rataj
Posty: 16
Rejestracja: 06 września 2015, 20:16

Re: Lenovo x220 - thinkfan

Post autor: rataj »

Kod: Zaznacz cały

root@rataj:/home/rataj# echo "options thinkpad_acpi fan_control=1" >> /etc/modprobe.d/thinkpad.conf
root@rataj:/home/rataj# modprobe -r thinkpad_acpi
modprobe: FATAL: Module thinkpad_acpi is in use.
root@rataj:/home/rataj# modprobe thinkpad_acpi
root@rataj:/home/rataj# /etc/init.d/thinkfan start
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Lenovo x220 - thinkfan

Post autor: dedito »

Jak nie chce wyładować modułu to zrestartuj system.
Pozostanie jeszcze kwestia konfiguracji w /etc/thinkfan.conf celem kontroli czy program działa poprawnie tzn następuje regulacja obrotów w zależności od temperatury.
rataj
Posty: 16
Rejestracja: 06 września 2015, 20:16

Re: Lenovo x220 - thinkfan

Post autor: rataj »

Edytowałem pliki:

/etc/modprobe.d/thinkfan.conf

Kod: Zaznacz cały

options thinkpad_acpi fan_control=1
/etc/default/thinkfan

Kod: Zaznacz cały

# Should thinkfan be started automatically on boot?
# Only say "yes" when you know what you are doing, have configured
# thinkfan correctly for *YOUR* machine and loaded thinkpad_acpi
# with fan_control=1 (if you have a ThinkPad).
START=yes

# Additional startup parameters
DAEMON_ARGS="-q"
/etc/thinkfan.conf

Kod: Zaznacz cały

######################################################################
# thinkfan 0.7 example config file
# ================================
#
# ATTENTION: There is only very basic sanity checking on the configuration.
# That means you can set your temperature limits as insane as you like. You
# can do anything stupid, e.g. turn off your fan when your CPU reaches 70°C.
#
# That's why this program is called THINKfan: You gotta think for yourself.
#
######################################################################
#
# IBM/Lenovo Thinkpads (thinkpad_acpi, /proc/acpi/ibm)
# ====================================================
#
# IMPORTANT:
#
# To keep your HD from overheating, you have to specify a correction value for
# the sensor that has the HD's temperature. You need to do this because
# thinkfan uses only the highest temperature it can find in the system, and
# that'll most likely never be your HD, as most HDs are already out of spec
# when they reach 55 °C.
# Correction values are applied from left to right in the same order as the
# temperatures are read from the file.
#
# For example:
# tp_thermal /proc/acpi/ibm/thermal (0, 0, 10)
# will add a fixed value of 10 °C the 3rd value read from that file. Check out
# http://www.thinkwiki.org/wiki/Thermal_Sensors to find out how much you may
# want to add to certain temperatures.

#  Syntax:
#  (LEVEL, LOW, HIGH)
#  LEVEL is the fan level to use (0-7 with thinkpad_acpi)
#  LOW is the temperature at which to step down to the previous level
#  HIGH is the temperature at which to step up to the next level
#  All numbers are integers.
#

# I use this on my T61p:
#tp_fan /proc/acpi/ibm/fan
#tp_thermal /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)

#(0,	0,	55)
#(1,	48,	60)
#(2,	50,	61)
#(3,	52,	63)
#(4,	56,	65)
#(5,	59,	66)
#(7,	63,	32767)

tp_fan /proc/acpi/ibm/fan
 
hwmon /sys/devices/virtual/hwmon/hwmon0/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
 
(0, 0,  58)
(1, 48, 65)
(2, 60, 68)
(3, 61, 69)
(4, 62, 70)
(5, 65, 72)
(7, 66, 32767)
Jednak nie pomogło, oczywiście restartowałem komputer
Gdy chce uruchomić program:

Kod: Zaznacz cały

root@rataj:/home/rataj# /etc/init.d/thinkfan start
[....] Starting thinkfan (via systemctl): thinkfan.serviceJob for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
 failed!
systemctl status thinkfan.service

Kod: Zaznacz cały

● thinkfan.service - simple and lightweight fan control program
   Loaded: loaded (/lib/systemd/system/thinkfan.service; enabled)
   Active: failed (Result: exit-code) since czw 2016-08-18 18:54:59 CEST; 21s ago
  Process: 1687 ExecStart=/usr/sbin/thinkfan (code=exited, status=4)

sie 18 18:54:59 rataj thinkfan[1687]: thinkfan 0.9.1 starting...
sie 18 18:54:59 rataj systemd[1]: thinkfan.service: control process exited, code=exited status=4
sie 18 18:54:59 rataj systemd[1]: Failed to start simple and lightweight fan control program.
sie 18 18:54:59 rataj systemd[1]: Unit thinkfan.service entered failed state.
Awatar użytkownika
dedito
Moderator
Posty: 3581
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Lenovo x220 - thinkfan

Post autor: dedito »

Pokaż ponownie

Kod: Zaznacz cały

cat /sys/module/thinkpad_acpi/parameters/fan_control
Zablokowany