Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Edit: erledigt!
mit
$(PYVER) in der Makefile ging alles =]
Ähm, das scheint es noch nicht als Paket zu geben. Zumindest habe ich hier auch nichts gefunden: http://mageia.madb.org/Übrigens, wo gibts denn python-dmidecode (wird von tpfand benötigt) für Mageia?
:thumbsup:
Übrigens, wo gibts denn python-dmidecode (wird von tpfand benötigt) für Mageia? Auf Anhieb konnte ich kein passendes Mageia-Paket finden, oder gehen Fedora rpms auch?
Das hättest du aber früher sagen können inch:also ich gestehe, dass eine Fedora RPM von tpfand läuft =)
ohne dieses dmidecode!
Weil Mageia 1 noch hal mitbringt. Das ändert aber nichts an der Tatsache, dass hal seit langem als deprecated gilt.ich habe dieses dmidecode nicht und es zeigt dennoch 1702ay2 an als Modell!
Myon schrieb:Eine kleine Statusmeldung zu tpfanco:
Aktuell bin ich primär mit tpfand beschäftigt. Auch tpfan-admin muss umgebaut werden, das aber erst, nachdem tpfand zufriedenstellend läuft.
Dabei geht es mir pimär um folgende Features:
- Unterstützung von Thinkpads ohne "/proc/acpi/ibm/thermal" (T520, W520, X220 usw.)
- Die Möglichkeit, weitere Sensoren (lm-sensors) zu beobachten
- Die Möglichkeit, minimale Dauer eines Intervals, so wie bereits oben beschrieben, zu definieren
- Speichern und Laden von benutzerdefinierten Profilen über die GUI
Myon schrieb:Es geht voran!
Die ersten drei Punkte sind bereits implementiert, auch der Debug-Modus wurde erheblich erweitert. Es bleibt aber noch viel zu tun:
- asymmetrische D-Bus-Kommunikation zwischen tpfand und tpfan-admin
- Policy-Kit für alle Aktionen, die Root-Rechte erfordern
- Aufräumen beim tpfan-admin (GtkBuilder statt Glade, tpfan-admin als normales Fenster)
- Speichern und Laden von benutzerdefinierten Profilen über die GUI
- Eingabe von benutzerdefinierten lm-sensors über die GUI
Die Trunk-Version von tpfand trägt "/usr/share/pyshared" automatisch in PATH ein. Daher sollte das reichen:kann mir jetzt jemand sagen, wie ich diesen error wegbekomme, tpfan-admin ist zweitrangig.
svn checkout [url]http://tpfanco.googlecode.com/svn/trunk/[/url] tpfanco-read-only
cd tpfanco-read-only/tpfand
sudo make install
/etc/init.d/tpfand restart
* Restarting ThinkPad fan control daemon tpfand Traceback (most recent call last):
File "/usr/sbin/tpfand", line 26, in <module>
import tpfand.control
File "/usr/share/pyshared/tpfand/control.py", line 30, in <module>
from tpfand import build, settings
File "/usr/share/pyshared/tpfand/settings.py", line 30, in <module>
import dmidecode
ImportError: No module named dmidecode
http://www.gentoo-portage.com/sys-apps/dmidecode sieht doch gut aus, wie baue ich das jetzt ein?
wget http://ftp.de.debian.org/debian/pool/main/p/python-dmidecode/python-dmidecode_3.10.13.orig.tar.gz
tar -zxvf python-dmidecode_3.10.13.orig.tar.gz
cd python-dmidecode-3.10.13/
sudo make install
Leider nicht, dmidecode!=python-dmidecode
Grund: dmidecode ist eine allgemeine Bibliothek zum Auslesen von BIOS-Informationen. python-dmidecode ist ein Python Modul, das Python-Anwendungen den Zugriff auf dmidecode ermöglicht.
Man könnte natürlich versuchen, das Ding (python-dmidecode) aus dem Source per Hand zu bauen, z.B. so
Aber da ich null Erfahrung mit Gentoo/Sabayon habe, kann ich dir da leider nichts garantieren. Sollte es doch klappen, brauchts du natürlich auch dmidecode. Das sollte aber in Sabayon-Repositories sein.Code:wget http://ftp.de.debian.org/debian/pool/main/p/python-dmidecode/python-dmidecode_3.10.13.orig.tar.gz tar -zxvf python-dmidecode_3.10.13.orig.tar.gz cd python-dmidecode-3.10.13/ sudo make install
def get_temperatures(self):
"""returns list of current sensor readings, +/-128 or 0 means sensor is disconnected"""
try:
tempfile = open(IBM_thermal, 'r')
elements = tempfile.readline().split()
tempfile.close()
tempfile = open("/sys/devices/platform/coretemp.0/temp1_input", 'r')
elements.extend(tempfile.readline().split())
tempfile.close()
elements = map(int,elements)
newelements = [x/1000 for x in elements]
newelements.append(-128)
newelements.append(-128)
newelements.append(-128)
newelements.append(-128)
newelements.append(-128)
newelements.append(-128)
return newelements
except IOError, e: