Getting lm-sensor settings working in Conky

Forum rules
Before you post please read this

Getting lm-sensor settings working in Conky

Postby Mr Green on Wed Jul 27, 2011 3:04 am

Would like to get temp fan voltages working in Conky,

Module added by sensors-detect

Code: Select all
To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
it87
#----cut here----


Set up lm-sensors and get the following output

Code: Select all
[>] sensors
k10temp-pci-00c3
Adapter: PCI adapter
temp1:       +15.0°C  (high = +70.0°C, crit = +99.5°C) 

atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:     +0.98 V  (min =  +0.85 V, max =  +1.60 V)
 +3.3 Voltage:     +3.22 V  (min =  +2.97 V, max =  +3.63 V)
 +5 Voltage:       +4.92 V  (min =  +4.50 V, max =  +5.50 V)
 +12 Voltage:     +12.09 V  (min = +10.20 V, max = +13.80 V)
CPU FAN Speed:    1584 RPM  (min =  600 RPM)
CHASSIS FAN Speed:   0 RPM  (min =  600 RPM)
POWER FAN Speed:     0 RPM  (min =  600 RPM)
CPU Temperature:   +31.0°C  (high = +60.0°C, crit = +95.0°C) 
MB Temperature:    +33.0°C  (high = +45.0°C, crit = +75.0°C) 


Now I cannot figure out what I need to add to conky to get temp to display [ {i2c temp 1} ] have found a grep method for getting temp from sensors but wanted to know if conky can be set up easier?

Then I could figure out fans etc...

MrG
User avatar
Mr Green
Level 1
Level 1
 
Posts: 44
Joined: Sun Jan 30, 2011 9:47 am
Location: Anglo Saxon England

Linux Mint is funded by ads and donations.
 

Re: Getting lm-sensor settings working in Conky

Postby McLovin on Wed Jul 27, 2011 3:20 am

Acpitemp is the command in conky. You enter it in like this, ${exec acpitemp cpu1}
User avatar
McLovin
Level 5
Level 5
 
Posts: 782
Joined: Thu Aug 23, 2007 6:53 pm

Re: Getting lm-sensor settings working in Conky

Postby mcoumans on Wed Jul 27, 2011 6:58 am

Using the grep command it works like this:

You put the following in the TEXT portion of your conkyrc or conky config file:
Motherboard: ${alignr}${execi 4 sensors | grep -A 0 'MB Temperature' | cut -c22-26} °C

execi executes the sensors command
grep takes the line with MB Temperature and cuts out char 22-26, you have to experiment a bit to find the right ones.

Another:
HDD Temp (sda):${alignr}${exec hddtemp /dev/sda -n --unit=C} °C

But conky also has built in variables, hddtemp, i2c, hwmon.
Depending on your setup the y may or may not work properly.

The following files are quite helpful:

http://conky.sourceforge.net/config_settings.html
http://conky.sourceforge.net/variables.html
SYSTEM: Linux Mint 14 [Nadia] 64-bit [Cinnamon]
KERNEL: Linux 3.7.0-7-generic (x86_64)
PROC: AMD Phenom II X4 840
MB: Asus M5A99X-EVO
GFX: MSI Geforce GTX-660 Twin Frozer (2Gb)
Graphics: nvidia 313.09 (xorg-edgers)
X-server: 1.13.1.901
mcoumans
Level 2
Level 2
 
Posts: 51
Joined: Sat Aug 21, 2010 7:55 am

Re: Getting lm-sensor settings working in Conky

Postby Mr Green on Wed Jul 27, 2011 10:33 am

I have got a grep line set up for temp.... did try {i2c temp 1} will try acpitemp and look at links

Thanks very much

MrG
User avatar
Mr Green
Level 1
Level 1
 
Posts: 44
Joined: Sun Jan 30, 2011 9:47 am
Location: Anglo Saxon England


Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 1 guest