
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A mod of the cpu/memory plugin for aero aio. The hardware information is gathered via backends. You can easily write a python backend for your hardware. Look at the files cpumemv2_backend.py, cpumemv2_default.py and cpumemv2_i8k.py to learn how to write backends.
FEATURES:
- default backend that supports CPU temeratures via /proc/acpi/thermal_zone and hard disk temperatures via hddtemp. You can start hddtemp by (as root)
hddtemp -d /dev/hda
Replace hda with the hard disk you want monitored.
- ibmacpi backend (for IBM laptops). Thanks to Frank Fiene. Supports CPU, GPU, hdd, fan and pci data, via the ibm acpi kernel module. Boy those IBM laptops have a lot of sensors!
- i8k backend (for Dell laptops). Supports cpu temp and fan speeds via the i8k kernel module.
- nvidia backend that support reading the nvidia gpu core temp
- The backends are cascaded. The code automatically looks through all backends for support of each feature. the final feature set is the union of all backends
- If an update temporarily fails (this tends to happen with hddtemp), it is indicated on the theme by the : in front of the sensor name becoming an _
REQUIREMENTS: >= Aero AIO 0.9.1
USAGE:
- Use the config dialog of Aero AIO to install the .aiz file
- The port on which the plugin tries to communicate with hddtemp can be configured
- If your hardware isn't supported write a backend and send it to me
14 years ago
ver 2.1.4
- Add support for NVidia GPU core temp
ver 2.1.3
- Use Aero AIO 0.9.1 API
ver 2.1.2
- Improved exception handling code in hddtemp module in default backend
ver 2.1.1
- Fixed possible division by zero bug in mem module
ver 2.1.0
- Moved CPU temp information into title
ver 2.0.4
- Fixed a bug that could cause the swap bar to not show up
ver 2.0.3
- Added a backend for IBM laptops and fixed a couple of typos. Big thank you to Frank Fiene
ver 2.0.2
- Changed to the .aiz Aer AIO plugin format
ver 2.0.1
- Made backend loading fully automatic, all you need to do is write the backend and put it in the scripts folder. It will be automatically detected and used where applicable
- Fixed various minor API bugs
ver 2.0.0
- Separated the hardware detection/monitoring code into backends
- Wrote the default and Dell i8k backends
ver 1.0.3
- Added auto-detection of ibm ACPI temp file
ver 1.0.2
- added debugging code to hddTemp
14 years ago
ver 2.1.4
- Add support for NVidia GPU core temp
ver 2.1.3
- Use Aero AIO 0.9.1 API
ver 2.1.2
- Improved exception handling code in hddtemp module in default backend
ver 2.1.1
- Fixed possible division by zero bug in mem module
ver 2.1.0
- Moved CPU temp information into title
ver 2.0.4
- Fixed a bug that could cause the swap bar to not show up
ver 2.0.3
- Added a backend for IBM laptops and fixed a couple of typos. Big thank you to Frank Fiene
ver 2.0.2
- Changed to the .aiz Aer AIO plugin format
ver 2.0.1
- Made backend loading fully automatic, all you need to do is write the backend and put it in the scripts folder. It will be automatically detected and used where applicable
- Fixed various minor API bugs
ver 2.0.0
- Separated the hardware detection/monitoring code into backends
- Wrote the default and Dell i8k backends
ver 1.0.3
- Added auto-detection of ibm ACPI temp file
ver 1.0.2
- added debugging code to hddTemp
krudl3r
13 years ago
I'm guessing i need the correct /proc?
Thanks (semi-n00b here).
Report
kovidgoyal
13 years ago
Report
krudl3r
13 years ago
Thanks for any help you can provide... and even if we don't resolve it, thanks for taking a interest!
Report
kovidgoyal
13 years ago
Report
krudl3r
13 years ago
~> sensors
w83627thf-isa-0290
Adapter: ISA adapter
VCore: +1.04 V (min = +0.00 V, max = +3.84 V)
+12V: +12.46 V (min = +11.86 V, max = +2.74 V) ALARM
+3.3V: +3.14 V (min = +0.64 V, max = +0.51 V) ALARM
+5V: +4.99 V (min = +3.44 V, max = +0.96 V) ALARM
-12V: -12.53 V (min = -11.95 V, max = -4.38 V) ALARM
V5SB: +5.03 V (min = +3.23 V, max = +1.08 V) ALARM
VBat: +2.99 V (min = +0.32 V, max = +1.76 V) ALARM
fan1: 0 RPM (min = 33750 RPM, div = 2) ALARM
CPU Fan: 1739 RPM (min = -1 RPM, div = 8) ALARM
fan3: 8035 RPM (min = 9642 RPM, div = 2) ALARM
M/B Temp: +42°C (high = +0°C, hyst = +64°C) sensor = thermistor
CPU Temp: +46.0°C (high = +80°C, hyst = +75°C) sensor = thermistor
temp3: +27.5°C (high = +80°C, hyst = +75°C) sensor = diode
vid: +0.000 V (VRM Version 2.4)
Thanks. I don't know enough about your monitor to say how it could get this info...
Report
kovidgoyal
13 years ago
Report
krudl3r
13 years ago
I really don't know Python... so that is about all the help I can give. Thanks for trying... I wish I could have helped more... if I do eventually figure this out, I'll be sure and post here.
Thanks.
Report
kovidgoyal
13 years ago
sensors | cut -d' ' -f3 | tr -d "+°C"
Report
krudl3r
13 years ago
w83627thf-isa-0290
adapter
beep_enable:
If a /etc/sensors.conf file would help, I'll email (too large to post here)
input set to -f6 displays the CPU Temp and other results:
> cut -d' ' -f6
w83627thf-isa-0290
+1.04
+12.40
+3.15
-12.44
7941
+43°C
(high
+22.0°C
beep_enable:
Report
wazza
14 years ago
Report
andykriss
14 years ago
but it would be great if it could show the upload and download speeds when using ppp0
Report
kovidgoyal
14 years ago
Report
cherusker
14 years ago
Is there another way to show the CPU temp (and other things)? ACPI doesn't work for me (the directory /proc/acpi/thermal_zone/... is always empty), but sensors works great. Is there a way to use that instead?
Thanks again!!
Report
franceloc
14 years ago
With this plugin, you can monitor temperatures through 'lmsensor' instead of /proc/acpi/thermal_zone.
You can find my plugin on:
http://www.kde-look.org/content/show.php?content=39609
I hope it can be useful for you :)
Francesco
Report
cherusker
14 years ago
exactly what I was looking for. Great job!!
Report
kovidgoyal
14 years ago
Report
cRoMo
14 years ago
Report
kovidgoyal
14 years ago
Report
cRoMo
14 years ago
Report
cRoMo
14 years ago
Report
kovidgoyal
14 years ago
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.connect(("localhost", self.port))
data = s.recv(1024)
finally: s.close()
The try -> finally block ensures that if there is an error, the socket is closed by the close() call. Can you try setting DEBUG=True in ~/.aero-aio/scripts/cpumemv2_backend.py and then running SK and posting the output.
Thanks,
Kovid.
Report
cRoMo
14 years ago
Importing DefaultBackend... OK
Importing I8kBackend... OK
Importing IbmacpiBackend... OK
Hdd temp data: |/dev/sda|HTS726060M9AT00|40|C| End
Hdd temp data: |/dev/sda|HTS726060M9AT00|40|C| End
and so on. It has to be hddtemp's fault, otherwise why would telneting to it didn't close sockets? I am not sure if it should break connection after displaying data, too. I'll have to report it to distro devs or hddtemp devs.
Report
kovidgoyal
14 years ago
Report
ffiene
15 years ago
thx for the citation!
It was quiet easy with your code!
The Thinkpad has a lot more sensors, but there is no place in the text field for the battery temperature! :-(
Maybe we have to put the fan speed into the title!? Or the CPU temp?
For example:
CPU: 2.0 GHz at 47C
Regards! Frank.
Report
kovidgoyal
15 years ago
Report