Projektvorstellung: Tpfanco - Wartung und Paketierung von tp-fan

Bildschirmfoto von »2015-12-03 22-53-11«.png

Mittlerweile sollte auch das Hinzufügen neuer Sensoren funktionieren.

Da fragt man sich natürlich auch mal, wie sinnvoll das Ganze noch ist. Bei meinem X230 gibt es z.B. nur einen einzigen Sensor für die CPU. Außerdem ist der Lüfter
selbst in der Stufe 2 mit ca. 3000 RPM so gut wie unhörbar. Naja, irgendjemand wird das schon sicher brauchen :rolleyes:
 
Ich denke, sehr viele nutzen noch ältere Modelle, also wird das Tool seine Nutzer noch längere Zeit finden. Mein X200T zum Beispiel hat zwar auch einen sehr leisen Lüfter, mit dessen automatischen Lüftersteuerung ich super zufrieden bin, aber einen Haufen Temperatursensoren hat er noch. Und manche nutzen ja noch Geräte, die über 10 Jahre auf dem Buckel haben.
 
Ui, werde ich morgen mal auf meinem x201t installieren, fehlt glaube ich noch!

Gruß Max
 
Zuletzt bearbeitet:
Hallo!

Habe ich das richtig verstanden, dass tpfanco für 15.10. nicht zur Verfügung steht, sondern nur für die LTS-Releases?
 
Puh, ich persönlich bin von Ubuntu schon seit einiger Zeit weg, daher ist es schwierig mit dem Paketieren. Es wäre eigentlich am besten, wenn sich jemand aus der Ubuntu-Community bereit erklären sollte, diese Aufgabe zu übernehmen ...
 
Kan man damit x220 unter lm 17.2 Xfce Lüftersteuern irgdnwas im Kopf das ned geht oda so
 
In der Entwicklungsversion auf GitHub geht das bereits. Vor dem Release bräuchte ich aber noch deutlich mehr Feedback. Auf meinem X230 mit Fedora läuft die Entwicklungsversion soweit ohne Probleme, aber das sagt ja erstmal nicht viel.

Ach ja, für die Entwicklungsversion gibt es natürlich keine Pakete, sonder es wird über make install installiert (siehe Readme.md in den entsprechenden Repositories).
 

Anhänge

  • Bildschirmfoto von »2015-12-20 20-44-47«.png
    Bildschirmfoto von »2015-12-20 20-44-47«.png
    75,6 KB · Aufrufe: 38
Hallo, wo kann man das downloaden? hab bis jetzt nix gefunden. hab aus dem Git geholt läßt sich aber nicht installieren irgendwie.

aufruf:

/usr/bin/tpfanco-admin_polkit %f
Traceback (most recent call last):
File "/usr/bin/tpfanco-admin", line 35, in <module>
from tpfanco_admin import temperaturedialog
ImportError: No module named tpfanco_admin

wie kann man den fehler beseitigen?

Danke
 
Zuletzt bearbeitet:
Code:
git clone https://github.com/tpfanco/tpfanco-admin.git
cd tpfanco-admin/
sudo make install

Sollte eigentlich reichen.
 
Code:
git clone https://github.com/tpfanco/tpfanco-admin.git
cd tpfanco-admin/
sudo make install

Sollte eigentlich reichen.


Danke.
Habe vergessen zu erwähnen das es ein TP420s ist und ich Debian jessie testing fahre.

Habe ich gemacht nur der Admin startet immernoch nicht.
er versucht es aber bricht dann ab.

wenn ich es von der bash aus aufrufe bringt er folgenden Fehler:

Traceback (most recent call last):
File "/usr/bin/tpfanco-admin", line 35, in <module>
from tpfanco_admin import temperaturedialog
ImportError: No module named tpfanco_admin

Fehlt was?

Danke?
 
Zuletzt bearbeitet:
Versuch mal folgendes

Code:
sudo nano /usr/bin/tpfanco-admin

und füge nach

Code:
import gtk.gdk
from tpfanco_admin import temperaturedialog
pygtk.require('2.0')

die Zeilen

Code:
if not ('/usr/lib/python2.7/site-packages' in sys.path):
    sys.path.append('/usr/lib/python2.7/site-packages')

hinzu.
 
Versuch mal folgendes

Code:
sudo nano /usr/bin/tpfanco-admin

und füge nach

Code:
import gtk.gdk
from tpfanco_admin import temperaturedialog
pygtk.require('2.0')

die Zeilen

Code:
if not ('/usr/lib/python2.7/site-packages' in sys.path):
    sys.path.append('/usr/lib/python2.7/site-packages')

hinzu.


Hab ich gemacht bringt aber keinen Erfolg.
Gleiche Fehlermeldung.

hab mal meinen sys.path:
Code:
>>> sys.path
['', '/usr/local/lib/python2.7/dist-packages/gevent-1.1rc2-py2.7-linux-x86_64.egg', '/usr/local/lib/python2.7/dist-packages/greenlet-0.4.9-py2.7-linux-x86_64.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']

habe es auch auch hinzugefügt mit:
Code:
sys.path.append('/usr/lib/python2.7/site-packages')

hat aber nix gebracht.
 
Zuletzt bearbeitet:
Sorry, mir ist da leider ein Fehler unterlaufen. Es sollte natürlich

Code:
import gtk.gdk

if not ('/usr/lib/python2.7/site-packages' in sys.path):
    sys.path.append('/usr/lib/python2.7/site-packages')

from tpfanco_admin import temperaturedialog

heißen, sprich zuerst wird sys.path angepasst und erst dann geladen.
Damit sollte es eigentlich gehen.

Als ultima ratio könnte man natürlich Makefile händisch anpassen und dort

/usr/lib/python2.7/site-packages durch /usr/lib/python2.7/dist-packages/ ersetzen, aber das sollte eigentlich nicht nötig sein.
 
so geladen wirds nun allerdings schmeist ers mir dennoch um die Ohren.
Sollte auch das anpassen des Makefiles nix bringen.

Code:
/usr/bin/tpfanco-admin
Traceback (most recent call last):
  File "/usr/bin/tpfanco-admin", line 163, in <module>
    main()
  File "/usr/bin/tpfanco-admin", line 160, in main
    app = tpfan_admin()
  File "/usr/bin/tpfanco-admin", line 137, in __init__
    tdsettings)
  File "/usr/lib/python2.7/site-packages/tpfanco_admin/temperaturedialog.py", line 108, in __init__
    self.init_thermos()
  File "/usr/lib/python2.7/site-packages/tpfanco_admin/temperaturedialog.py", line 174, in init_thermos
    for n in self.controller.get_temperatures():
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.tpfanco.UnavailableException:

leider kenn ich mich mit py so garnicht aus.

Irgendwas passt noch nicht ganz.

meine Configs:
/etc/tpfancod/settings.conf
Code:
[General]
# set this to true to allow tpfancod control the fan of your machine.
enabled = True
# if a profile for your thinkpad model is available in the database,
# tpfancod will use it by default and ignore any profiles you have
# in /etc/tpfancod. set this to true to use custom profiles.
override_profile = False
# this determines the current custom profile used by tpfancod. the profile
# must be placed in /etc/tpfancod and begin with profile_, e.g.
# profile_library  or profile_gaming. this option works only if
# override_profile is set to true.
current_profile = profile_standard

Profile-Standard
Code:
[General]
# Short description of the purpose of this profile.
comment =
# System manufacturer
product_vendor = LENOVO

# ThinkPad Model
product_name = ThinkPad T420s

# Machine type
product_id = 4174C18

[Options]
# Set the hysteresis temperature difference.
hysteresis = 2

[Sensors]
/sys/devices/virtual/hwmon/hwmon0/temp1_input = {'scaling': 0.001, 'name': 'CPU', 'triggers': {0: 255}}
Code:
uname -a
Linux herakles 4.3.0-1-amd64 #1 SMP Debian 4.3.3-7 (2016-01-19) x86_64 GNU/Linux

sensors zeigt folgendes an:

Code:
acpitz-virtual-0
Adapter: Virtual device
temp1:        +57.0°C  (crit = +97.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +57.0°C  (high = +86.0°C, crit = +100.0°C)
Core 0:         +54.0°C  (high = +86.0°C, crit = +100.0°C)
Core 1:         +53.0°C  (high = +86.0°C, crit = +100.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        3536 RPM
 
Zuletzt bearbeitet:
Zum starten von tpfanco-admin dient eigentlich tpfanco-admin_polkit, da das Programm zwingend Superuser-Rechte braucht.
 
Bringt aber leider den gleichen Fehler.
auch wenn ichs direkt als root ausführe.

Na was kann ich da noch schauen?
 
Zuletzt bearbeitet:
Dann gibt es offenbar Probleme bei der D-Bus Verbindung zwischen tpfancod und tpfanco-admin.

1) Läuft denn tpfancod alleine ohne Probleme? Wenn du denn Daemon stoppst

Code:
sudo systemctl stop tpfancod

und anschließend per Hand im Debug-Modus startest
Code:
sudo tpfancod --debug

dann kann man sehen, was eventuell schief geht.

2) Konkret scheitert es am Output von self.controller.get_temperatures(). Über d-feet kann man nachsehen,
was genau diese Methode zurückgibt
 

Anhänge

  • Bildschirmfoto von »2016-02-08 10-19-02«.png
    Bildschirmfoto von »2016-02-08 10-19-02«.png
    107,3 KB · Aufrufe: 23
Debugmodus gestertet, folgene Meldungen (Auszug):</p>

Code:
    tpfancod 1.0.0 - Copyright (C) 2011-2015 Vladyslav Shtabovenko<br />
    Copyright (C) 2007-2008 Sebastian Urban<br />
    This program comes with ABSOLUTELY NO WARRANTY<br />
  
    WARNING: THIS PROGRAM MAY DAMAGE YOUR COMPUTER.<br />
    PROCEED ONLY IF YOU KNOW HOW TO MONITOR SYSTEM TEMPERATURE.<br />
  
    2016-02-08 17:07:41 - DEBUG - Running in debug mode<br />
    2016-02-08 17:07:41 - DEBUG - Parsing the configuration file located at /etc/tpfancod/settings.conf<br />
    2016-02-08 17:07:41 - DEBUG - Looking for a profile in /usr/share/tpfancod-profiles/lenovo<br />
    _4174c18<br />
    <br />
    2016-02-08 17:07:41 - DEBUG - Verifying the profile...<br />
    2016-02-08 17:07:41 - DEBUG - Sensor names: {}<br />
    2016-02-08 17:07:41 - DEBUG - Trigger points: {}<br />
    2016-02-08 17:07:41 - DEBUG - Sensor scalings: {}<br />
    2016-02-08 17:07:41 - DEBUG - Profile comment:<br />
    2016-02-08 17:07:41 - DEBUG - Hysteresis: 2<br />
    2016-02-08 17:07:41 - DEBUG - Trigger points: {}<br />
    2016-02-08 17:07:41 - DEBUG - Sensor names: {}<br />
    2016-02-08 17:07:41 - DEBUG -<br />
    2016-02-08 17:07:41 - DEBUG - Polling the sensors<br />
    2016-02-08 17:07:41 - DEBUG - Current fan level: 255 (2053 RPM)<br />
    2016-02-08 17:07:41 - DEBUG - Fan control disabled<br />
    2016-02-08 17:07:41 - DEBUG - Rearming fan watchdog timer (+5 s)<br />
    2016-02-08 17:07:41 - DEBUG - Current fan level is 255<br />
    2016-02-08 17:07:41 - DEBUG - -> Keeping the current fan level unchanged<br />
    2016-02-08 17:07:44 - DEBUG -<br />
    2016-02-08 17:07:44 - DEBUG - Polling the sensors<br />
    2016-02-08 17:07:44 - DEBUG - Current fan level: 255 (1969 RPM)<br />
    2016-02-08 17:07:44 - DEBUG - Fan control disabled<br />
    2016-02-08 17:07:44 - DEBUG - Rearming fan watchdog timer (+5 s)<br />
    2016-02-08 17:07:44 - DEBUG - Current fan level is 255<br />
    2016-02-08 17:07:44 - DEBUG - -> Keeping the current fan level unchanged<br />
    2016-02-08 17:07:48 - DEBUG -<br />
    2016-02-08 17:07:48 - DEBUG - Polling the sensors<br />
    2016-02-08 17:07:48 - DEBUG - Current fan level: 255 (1967 RPM)<br />
    2016-02-08 17:07:48 - DEBUG - Fan control disabled<br />
    2016-02-08 17:07:48 - DEBUG - Rearming fan watchdog timer (+5 s)<br />
    2016-02-08 17:07:48 - DEBUG - Current fan level is 255<br />
    2016-02-08 17:07:48 - DEBUG - -> Keeping the current fan level unchanged<br />
    2016-02-08 17:07:51 - DEBUG -<br />
    2016-02-08 17:07:51 - DEBUG - Polling the sensors<br />
    2016-02-08 17:07:51 - DEBUG - Current fan level: 255 (1964 RPM)<br />
    2016-02-08 17:07:51 - DEBUG - Fan control disabled<br />
    2016-02-08 17:07:51 - DEBUG - Rearming fan watchdog timer (+5 s)<br />
    2016-02-08 17:07:51 - DEBUG - Current fan level is 255<br />
    2016-02-08 17:07:51 - DEBUG - -> Keeping the current fan level unchanged<br />

d-feet Fehler in Method Output. ('g-io-error-quark: GDBus.Error:eek:rg.tpfanco.UnavailableException: (36)')

Stimmt da etwas nicht mit meiner Config?

Das sollte aber stimmen und gibts auch.

Code:
[Sensors]
/sys/devices/virtual/hwmon/hwmon0/temp1_input = {'scaling': 0.001, 'name': 'CPU', 'triggers': {0: 255}}

24530384wb.jpg


- - - Beitrag zusammengeführt - - -

ES GEHT!!

Danke für Deine Hilfe !!!
 
Zuletzt bearbeitet:
Dank deinen Infos habe ich jetzt den Fehler eingegrenzt und hoffentlich behoben. Das lag an der Kombination aus einem fehlenden Community-Profil und der
Option override_profile = False. Ich habe jetzt sowohl tpfancod als auch tpfanco-admin auf GitHub geupdatet und wäre da an deinem Feedback interessiert.

Es reicht auch, wenn /etc/tpfancod komplett leer ist. Die weitere Konfiguration kann dann über tpfanco-admin vorgenommen werden.
 
Ich habe mein X201 gerade von Ubuntu 12.04 auf Debian Jessie umgestellt und schaffe es leider nicht Tpfanco hier zu installieren. Unter Ubuntu war es mit dem PPA für mich gut zu schaffen, aber unter Debian waren alle meine Versuche bis jetzt leider ohne Erfolg. Kann mir hier bitte jemand helfen? Danke!!

Edit:
Hat sich erledigt, werde Thinkfan nutzen. Da habe ich zwar keine GUI, aber es funktioniert, sobald es eingerichtet ist, genauso gut.
 
Zuletzt bearbeitet:
  • ok1.de
  • ok2.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen

Werbung

Zurück
Oben