You are not logged in.

#1 2016-09-07 04:24:03

lcafiero
The BL Guy
From: Felton, California, USA
Registered: 2015-09-30
Posts: 49
Website

Looking for hwmon documentation for Conky

Hello, all --

I hope this is the right place for this, and if not, feel free to move it to the right category.

I know the many Conkystadores here at BunsenLabs (looking first at Sector11  smile ) may know where I could go to get some information on how to configure the temperature settings for a dual-core ThinkPad T500. For some reason, I seem to remember there being something in the old #! forums, but I couldn't find it (and for those who have kept the forum archived, thank you thank you thank you!).

Basically, I set up the temperature settings like this:

${color}Temp:${goto 60}Current${alignr}Critical
Core0${goto 60}${hwmon 1 temp 2}°C${alignr}105°C
Core1${goto 60}${hwmon 1 temp 3}°C${alignr}105°C

This reflects the same temperatures for Core0 and Core1 when I run sensors in a terminal, however I came upon these sort of by trial and error as opposed to anything resembling matching the temperature setting to the particular core.

So . . . is there a place where the Conky gurus get their wisdom and knowledge, and if so, could you point me to it? Thanks in advance.


Res publica non dominetur

Offline

#2 2016-09-07 12:44:49

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Looking for hwmon documentation for Conky

I use on my T500 lm-sensors

$ apt-cache policy lm-sensors
lm-sensors:
  Installiert:           1:3.3.5-2
  Installationskandidat: 1:3.3.5-2
  Versionstabelle:
 *** 1:3.3.5-2 0
        500 http://ftp.rrzn.uni-hannover.de/debian/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

in different conky configurations as so:

...
${goto 245}${font DroidSans:size=8,weight:bold}CPU1${goto 285}${execi 20 sensors | grep 'Core 0'|cut -c16-17}°
${goto 245}${font DroidSans:size=8,weight:bold}CPU2${goto 285}${execi 20 sensors | grep 'Core 1'|cut -c16-17}°
...

or

...
${voffset 90}${goto 130}${color ffcc00}${cpu cpu}%
${voffset 10}${goto 100}${execpi 6 sensors | grep 'Core 0' | cut -c16-17 | xargs ~/Olgmen/colorizecore0.sh}°C${color}${goto 150}${execpi 6 sensors | grep 'Core 1' | cut -c16-17 | xargs ~/Olgmen/colorizecore0.sh}°C${color}
...

Offline

#3 2016-09-07 12:51:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Looking for hwmon documentation for Conky

mrpeachy re-wrote the Using Sensors at CPS.  Good place to start ... if you can I'd go for the platform method.

'hwmon' has been know to move objects around on occasion.  It's noted in the write up as well.

can you run this in a terminal for me:

sensors && echo '=-=-=-=-=-=-=' && inxi -s

You should see something like this:

 07 Sep 16 @ 09:50:58 ~
  $ sensors && echo '=-=-=-=-=-=-=' && inxi -s
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.49 V  
in1:          +1.00 V  
in2:          +1.51 V  
in3:          +0.86 V  
in4:          +0.00 V  
in5:          +0.00 V  
in6:          +0.00 V  
3VSB:         +3.39 V  
Vbat:         +2.96 V  
fan1:        1877 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +33.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +31.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +25.0°C  (high = +70.0°C)

=-=-=-=-=-=-=
Sensors:   System Temperatures: cpu: 31.0C mobo: 25.4C gpu: 43C
           Fan Speeds (in rpm): cpu: 1877 fan-2: 0 fan-3: 0
 
 07 Sep 16 @ 09:51:04 ~
  $ 

Sensors tells you what the temps are, inxi tells you what they belong to.

Notice I still needed sensors k10temp-pci-00c3 in my temps to get my mobo - my 'sensors' conky

${alignc}${color5}Sensors
${color1}${swapbar 0}${color}
${color5}${alignc}TEMPS
${color6}CPU${color} ${platform f71882fg.2560 temp 2}°
${color6} MB${color} ${execpi 15 sensors k10temp-pci-00c3 | grep -n 'temp1' | cut -c 18-19}°
${color6}SDA${color} ${hddtemp /dev/sda}°
${color6}GPU${color} ${nvidia temp}°
${color1}${swapbar 0}${color}
${alignc}${color5}CPU
${alignc}${color6}3.2 GHz
${alignc}${color5}CPU MHz
${color6}1${alignr}${color}${freq 1}
${color6}2${alignr}${color}${freq 2}
${color6}3${alignr}${color}${freq 3}
${color1}${swapbar 0}${color}
${color6}CPU Fan${color}
  ${platform f71882fg.2560 fan 1}
${color1}${swapbar 0}${color}
${alignc}${color5}CPU %
${alignc}${color6}A${color} ${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${color9}${cpu cpu0}${color}${endif}${endif}
${alignc}${color5}${swapbar 0,20}
${alignc}${color6}1${color} ${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${color9}${cpu cpu1}${color}${endif}${endif}
${alignc}${color6}2${color} ${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${color9}${cpu cpu2}${color}${endif}${endif}
${alignc}${color6}3${color} ${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${color9}${cpu cpu3}${color}${endif}${endif}
${color1}${swapbar 0}${color}

I have an AMD it doesn't support temps for separate 'cores'

Side note - not sensors:  When it comes to CPU % used cpu0 is a 'total' or average cpu usage.

I have a triple core AMD: so cpu1 cpu2 cpu3 and finally the average: cpu0  Do not confuse conkys usage of cpu here with Intel's use of 'cores'


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4 2016-09-07 14:45:04

lcafiero
The BL Guy
From: Felton, California, USA
Registered: 2015-09-30
Posts: 49
Website

Re: Looking for hwmon documentation for Conky

Muchissimas gracias, Sector11! I saw that page you mention, but I did not put together that mrpeachy wrote it. It was very helpful, to say the least.

Here is the code you asked me to post:

lcafiero@thinkpadt500:~$ sensors && echo '=-=-=-=-=-=-=' && inxi -s
acpitz-virtual-0
Adapter: Virtual device
CPU_0:        +34.0°C  (crit = +127.0°C)
CPU_1:        +34.0°C  (crit = +100.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +30.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +34.0°C  (high = +105.0°C, crit = +105.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
FAN:            0 RPM
CPU:          +34.0°C  
WLAN:         +35.0°C  
HDD?:         +29.0°C  
BAT1:         +25.0°C  
BAT2:         +25.0°C  
RAM:          +33.0°C  
VGA:          +37.0°C  
WWAN:         +33.0°C  

=-=-=-=-=-=-=
bash: inxi: command not found

I found something on ThinkWiki (a ThinkPad site) here, which said to add this to a file called /etc/sensors.d/tpsensors (I didn't have a file with that name, so I made one -- I can easily delete it if you think it is unnecessary):

Put this in /etc/sensors.d/tpsensors

chip "acpitz-virtual-0"
   label temp1 "CPU_0"
   label temp2 "CPU_1"
chip "thinkpad-isa-0000"
   label fan1   "FAN"
   label temp1  "CPU"
   label temp2  "WLAN"
   label temp3  "HDD?"
   ignore temp4
   label temp5  "BAT1"
   ignore temp6
   label temp7  "BAT2"
   ignore temp8
   label temp9  "RAM"
   label temp10 "VGA"
   label temp11 "WWAN"
   ignore temp12
   ignore temp13
   ignore temp14
   ignore temp15
   ignore temp16

Your best point: "Do not confuse conkys usage of cpu here with Intel's use of 'cores'." Maybe my terminology is off, because I am really more concerned with the temperature of the CPU. Anyway, thank you both, Sector11 and unklar, for your help, and I will keep reading more.

Last edited by lcafiero (2016-09-07 14:46:03)


Res publica non dominetur

Offline

#5 2016-09-07 18:07:49

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Looking for hwmon documentation for Conky

Did you run:
sudo sensors-detect and and at the end say yes to add the info to a file?

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 10h thermal sensors' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
f71882fg
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)

Say "yes"!  smile

And if possible show thew ending of sensors-detect like I did.  I don't "think" you need the file: /etc/sensors.d/tpsensors ... from the link you provided:

lm-sensors/libsensors uses the hwmon interface exposed through /sys/bus/platform/devices/thinkpad_hwmon/ to read the temperatures, note that the sysfs interface returns normal open errors instead of weird values for sensors that are not active (which the simplistic sensors command ignore). lm-sensors/libsensors can be configured to give proper names to each sensor, which will be used by any properly written sensor applet.

Do you have this directory:  /sys/bus/platform/devices/thinkpad_hwmon/
and if yes, what is in it?
anything with an extension of _input is usable in conky.
-----
You don't have inxi?

sudo apt-get install inxi

I was certain it comes installed in BL.

and grab the recommends if you don't have them either:
  $ dep inxi
alias dep=apt-cache depends
inxi
  Recommends: dmidecode
  Recommends: file
  Recommends: hddtemp
  Recommends: iproute2
  Recommends: lm-sensors
  Recommends: mesa-utils
  Recommends: module-init-tools
  Recommends: net-tools
  Recommends: sudo
  Recommends: usbutils
  Recommends: x11-utils
  Recommends: x11-xserver-utils

I have them all.

---
CPU vs CORE

You buy a "CPU"; brand name 'Intel' - it is a Dual-Core and Intel labels them 'Core 0' and 'Core 1'

I buy a "CPU"; brand name 'AMD' - it is a Dual-Core and AMD labels them 'CPU 1' and 'CPU 2'

Conky does NOT make a distinction for 'cpu' % usage

Intel: ${cpu cpu1}% (for 'Core 0' and ${cpu cpu2} for 'Core 1' AND ${cpu} or ${cpu cpu0} to get the total usage (average)
AMD: ${cpu cpu1}% (for 'CPU 1' and ${cpu cpu2} for 'CPU 1' AND ${cpu} or ${cpu cpu0} to get the total usage (average)

Intel 'Core X' comes inro play when talking temperatures.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#6 2016-09-07 18:10:59

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Looking for hwmon documentation for Conky

"Sensors" (temps, fan speeds, etc) are very machine specific.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#7 2016-09-07 22:22:11

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Looking for hwmon documentation for Conky

I came across this quick "rule of thumb" method one day (Gentoo forum, I thnk):

After you run sensors-detect and get all the pertinent modules loaded, in a terminal, get the output of sensors:

sensors1.jpg

That first group of temps is hwmon0, the second hwmon1, the third hwmon2 etc ...

Check with:

ls /sys/class/hwmon/

and you should see them listed there.

We are interested in CPU core temps, so on my machine, I want hwmon2 - for which there are three temps listed.

use -

ls /sys/class/hwmon/hwmon2/

and note that the temps are given as temp1 temp2 and temp3 - my CPU core temps correspond to temp2 and temp3

hwmon2.jpg

This method has worked on the 3 computers I use conky to monitor temps.

In my conkyrc, I use:

Core1:${offset 8}${if_match ${hwmon 2 temp 2}<=50}${color7}${else}${if_match ${hwmon 2 temp 2}<=70}${color8}${else}${if_match ${hwmon 2 temp 2}>70}${color9}${endif}${endif}${endif}${hwmon 2 temp 2}${offset 2}°C${color}${offset 32}\
Core2:${offset 8}${if_match ${hwmon 2 temp 3}<=50}${color7}${else}${if_match ${hwmon 2 temp 3}<=70}${color8}${else}${if_match ${hwmon 2 temp 3}>70}${color9}${endif}${endif}${endif}${hwmon 2 temp 3}${offset 2}°C${color}${offset 32}\

for color-coded temp output.

Last edited by PackRat (2016-09-07 22:24:59)


You must unlearn what you have learned.
    -- yoda

Offline

#8 2016-09-07 22:51:33

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Looking for hwmon documentation for Conky

@PackRat - Thank you - I'm always looking for Intel stuff as I'm an AMD guy.

Here's mine: I have 0, 1 and 2 with lots of stuff.  and as I said: Conky uses the "_input" endings:

sensors:

 07 Sep 16 @ 19:39:07 ~
  $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.49 V  
in1:          +1.18 V  
in2:          +1.51 V  
in3:          +0.86 V  
in4:          +0.00 V  
in5:          +0.00 V  
in6:          +0.00 V  
3VSB:         +3.39 V  
Vbat:         +2.98 V  
fan1:        1971 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +38.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +37.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +29.0°C  (high = +70.0°C)

 
 07 Sep 16 @ 19:39:10 ~
  $ 

What you say is hwmon0 (+30.0°C) NEVER changes on my machine - have no idea what it is.

The next group (hwmon1) is where most of my stuff is and the final entry - I read somewhere is "Motherboard" and matches what inxi -s tells me:

 07 Sep 16 @ 19:39:10 ~
  $ inxi -s
Sensors:   System Temperatures: cpu: 37.0C mobo: 29.4C gpu: 47C
           Fan Speeds (in rpm): cpu: 2029 fan-2: 0 fan-3: 0
 
 07 Sep 16 @ 19:45:31 ~
  $ 

and to this day I have no clue how to figure out where the volts are.

And in keeping with hwmon directories you talked about:

 07 Sep 16 @ 19:36:02 ~
  $ ls /sys/class/hwmon/
hwmon0	hwmon1	hwmon2
 
 07 Sep 16 @ 19:36:15 ~
  $ ls /sys/class/hwmon/hwmon0
name  power  subsystem	temp1_crit  temp1_input  uevent
 
 07 Sep 16 @ 19:36:37 ~
  $ ls /sys/class/hwmon/hwmon1
device	power  subsystem  uevent
 
 07 Sep 16 @ 19:36:47 ~
  $ ls /sys/class/hwmon/hwmon1/device
driver		 in5_input		     pwm2_auto_point1_pwm	 temp1_alarm	   temp2_max_beep
fan1_alarm	 in6_input		     pwm2_auto_point1_temp	 temp1_crit	   temp2_max_hyst
fan1_beep	 in7_input		     pwm2_auto_point1_temp_hyst  temp1_crit_alarm  temp2_type
fan1_full_speed  in8_input		     pwm2_auto_point2_pwm	 temp1_crit_beep   temp3_alarm
fan1_input	 modalias		     pwm2_auto_point2_temp	 temp1_crit_hyst   temp3_crit
fan2_alarm	 name			     pwm2_auto_point2_temp_hyst  temp1_fault	   temp3_crit_alarm
fan2_beep	 power			     pwm2_enable		 temp1_input	   temp3_crit_beep
fan2_full_speed  pwm1			     pwm2_interpolate		 temp1_max	   temp3_crit_hyst
fan2_input	 pwm1_auto_channels_temp     pwm3			 temp1_max_beep    temp3_fault
fan3_alarm	 pwm1_auto_point1_pwm	     pwm3_auto_channels_temp	 temp1_max_hyst    temp3_input
fan3_beep	 pwm1_auto_point1_temp	     pwm3_auto_point1_pwm	 temp1_type	   temp3_max
fan3_full_speed  pwm1_auto_point1_temp_hyst  pwm3_auto_point1_temp	 temp2_alarm	   temp3_max_beep
fan3_input	 pwm1_auto_point2_pwm	     pwm3_auto_point1_temp_hyst  temp2_crit	   temp3_max_hyst
hwmon		 pwm1_auto_point2_temp	     pwm3_auto_point2_pwm	 temp2_crit_alarm  temp3_type
in0_input	 pwm1_auto_point2_temp_hyst  pwm3_auto_point2_temp	 temp2_crit_beep   uevent
in1_input	 pwm1_enable		     pwm3_auto_point2_temp_hyst  temp2_crit_hyst
in2_input	 pwm1_interpolate	     pwm3_enable		 temp2_fault
in3_input	 pwm2			     pwm3_interpolate		 temp2_input
in4_input	 pwm2_auto_channels_temp     subsystem			 temp2_max
 
 07 Sep 16 @ 19:36:55 ~
  $ ls /sys/class/hwmon/hwmon2/device
broken_parity_status	  device	   hwmon	  msi_bus    rescan	       temp1_input
class			  dma_mask_bits    irq		  name	     resource	       temp1_max
config			  driver	   local_cpulist  numa_node  subsystem	       uevent
consistent_dma_mask_bits  driver_override  local_cpus	  power      subsystem_device  vendor
d3cold_allowed		  enable	   modalias	  remove     subsystem_vendor
 
 07 Sep 16 @ 19:37:01 ~
  $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#9 2016-09-08 01:21:07

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Looking for hwmon documentation for Conky

@S11 -

instead of:

${color6} MB${color} ${execpi 15 sensors k10temp-pci-00c3 | grep -n 'temp1' | cut -c 18-19}°

have you tried?

${color6} MB${color} ${hwmon 2 temp 1}°C

for your MB temp? Save yourself a bit of CPU.

Any idea what the three temps are in hwmon1? Apparently one of them (temp2) is your core temp from the inxi output; I think temp1 is you other core temp - you have dual core AMD correct?

When I run that command on my i3 laptop, inxi only reports the core temp for one core

# sensors && echo '=-=-=-=-=-=-=' && inxi -s
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +46.0°C  (high = +80.0°C, crit = +90.0°C)
Core 2:       +46.0°C  (high = +80.0°C, crit = +90.0°C)

=-=-=-=-=-=-=
Sensors:   System Temperatures: cpu: 46.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
# sensors && echo '=-=-=-=-=-=-=' && inxi -s
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +49.0°C  (high = +80.0°C, crit = +90.0°C)
Core 2:       +46.0°C  (high = +80.0°C, crit = +90.0°C)

=-=-=-=-=-=-=
Sensors:   System Temperatures: cpu: 49.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
#

And what is that temp3? I'd be a concerned that something is running at 127 °C - especially when the critical temp is 85 °C.

Final note; screenshot from my laptop (Void linux), just to show the hwmon temps aren't necessarily sequential:

scrot-shot-7sep1473296843.jpg

Last edited by PackRat (2016-09-08 19:07:52)


You must unlearn what you have learned.
    -- yoda

Offline

#10 2016-09-08 03:09:27

lcafiero
The BL Guy
From: Felton, California, USA
Registered: 2015-09-30
Posts: 49
Website

Re: Looking for hwmon documentation for Conky

Sector11 wrote:

Did you run:
sudo sensors-detect and and at the end say yes to add the info to a file?

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 10h thermal sensors' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
f71882fg
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)

Say "yes"!  smile

Yes. Absolutely. Here's the copy:

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)yes
Successful!
Sector11 wrote:

I don't "think" you need the file: /etc/sensors.d/tpsensors ...

OK, I'll remove it. I thought it was odd, but hey, what do I know? smile

Sector11 wrote:

Do you have this directory:  /sys/bus/platform/devices/thinkpad_hwmon/
and if yes, what is in it?

Yes. I sort of understand how that works, after taking a look at it (I think). But here it is:

lcafiero@thinkpadt500:/sys/bus/platform/devices/thinkpad_hwmon$ ls -a
.           modalias     subsystem     temp14_input  temp3_input  temp8_input
..          name         temp10_input  temp15_input  temp4_input  temp9_input
driver      power        temp11_input  temp16_input  temp5_input  uevent
fan1_input  pwm1         temp12_input  temp1_input   temp6_input
hwmon       pwm1_enable  temp13_input  temp2_input   temp7_input
lcafiero@thinkpadt500:/sys/bus/platform/devices/thinkpad_hwmon$
Sector11 wrote:

You don't have inxi? (code removed)
I was certain it comes installed in BL.

Apparently I didn't have it, but now I do. I don't know if it does come installed with BL, but I installed from a download from the bl-Hydrogen-amd64_20160710.iso ISO (I haven't checked the 32-bit version yet). I don't know if that needs checking or not, but I do have it now. I also grabbed the Recommends, as you -- ahem -- recommend (though they all seemed to be there) smile

PackRat wrote:

In my conkyrc, I use:

Core1:${offset 8}${if_match ${hwmon 2 temp 2}<=50}${color7}${else}${if_match ${hwmon 2 temp 2}<=70}${color8}${else}${if_match ${hwmon 2 temp 2}>70}${color9}${endif}${endif}${endif}${hwmon 2 temp 2}${offset 2}°C${color}${offset 32}\
Core2:${offset 8}${if_match ${hwmon 2 temp 3}<=50}${color7}${else}${if_match ${hwmon 2 temp 3}<=70}${color8}${else}${if_match ${hwmon 2 temp 3}>70}${color9}${endif}${endif}${endif}${hwmon 2 temp 3}${offset 2}°C${color}${offset 32}\

for color-coded temp output.

PackRat -- Did you post something like this elsewhere in the forums? I remember seeing something like this and thinking how cool it would be to have something like this. Hat tip to you and to whomever else might have posted this elsewhere.

Thanks for all your help, guys! I think I'm on the right track now.


Res publica non dominetur

Offline

#11 2016-09-08 03:28:55

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,558
Website

Re: Looking for hwmon documentation for Conky

(inxi isn't in the default BL package list atm)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#12 2016-09-08 03:50:32

lcafiero
The BL Guy
From: Felton, California, USA
Registered: 2015-09-30
Posts: 49
Website

Re: Looking for hwmon documentation for Conky

Thanks for clearing that up, johnraff!


Res publica non dominetur

Offline

#13 2016-09-08 12:05:37

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Looking for hwmon documentation for Conky

PackRat -- Did you post something like this elsewhere in the forums? I remember seeing something like this and thinking how cool it would be to have something like this. Hat tip to you and to whomever else might have posted this elsewhere.

Pretty sure it is in the BL conky thread, definitely the old #! forum conky thread if it's still available to read.

Or you can just get it here.

Of course you'll need to modify it for your system - note that use "own_window_type = dock" and have conky reside in the fluxbox slit (dock in openbox world) and always be  above/visible.


You must unlearn what you have learned.
    -- yoda

Offline

#14 2016-09-08 16:56:06

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Looking for hwmon documentation for Conky

PackRat wrote:

@S11 -

instead of:

${color6} MB${color} ${execpi 15 sensors k10temp-pci-00c3 | grep -n 'temp1' | cut -c 18-19}°

have you tried?

${color6} MB${color} ${hwmon 2 temp1}°C

for your MB temp? Save yourself a bit of CPU.

Not the same.  Remember, you're running an Intel chip, I'm running an AMD - they do things differently.
2016_09_08_13_48_59_Scrot11.jpg

In the conky:

hwmon 2 temp1 = ${hwmon 2 temp1}
and sensors:
${color6} MB${color} ${execpi 15 sensors k10temp-pci-00c3 | grep -n 'temp1' | cut -c 18-19}°
 08 Sep 16 @ 13:51:29 ~
  $ sensen
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.49 V  
in1:          +1.18 V  
in2:          +1.51 V  
in3:          +0.86 V  
in4:          +0.00 V  
in5:          +0.00 V  
in6:          +0.00 V  
3VSB:         +3.39 V  
Vbat:         +2.98 V  
fan1:        1965 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +39.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +37.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +29.0°C  (high = +70.0°C)

=-=-=-=-=-=-=
Sensors:   System Temperatures: cpu: 37.0C mobo: 29.0C gpu: 47C
           Fan Speeds (in rpm): cpu: 1965 fan-2: 0 fan-3: 0
 
 08 Sep 16 @ 13:51:33 ~
  $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#15 2016-09-08 17:23:23

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Looking for hwmon documentation for Conky

@ lcafiero

OK, you have an Intel chip and I'm spinning my wheels here so I'm going to defer to PackRat since he's got the code for Intel right here.

The hwmon method that he mentioned for my machine didn't work.
What can I say!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#16 2016-09-08 19:14:21

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Looking for hwmon documentation for Conky

@S11 - typo, my bad; should have been"

${color6} MB${color} ${hwmon 2 temp 1}°C

I forget that conkyrc needs that gap (temp 1 not temp1) even though it's not how their named in /sys/class/hwmon/hwmon

So hwmon doesn't work at all with your AMD? That something new[ish], it works/worked on my older single and dual core AMD.

Last edited by PackRat (2016-09-09 12:20:41)


You must unlearn what you have learned.
    -- yoda

Offline

#17 2016-09-08 19:40:26

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Looking for hwmon documentation for Conky

@PackRat

OK that fixed it ... I should have seen/known that as well.  An OOPS! for you an OOPS! for me we are even.
2016_09_08_16_37_12_Scrot11.jpg

${color6} MB${color} ${execpi 15 sensors k10temp-pci-00c3 | grep -n 'temp1' | cut -c 18-19}° <----
${color6} MB${color} ${hwmon 2 temp 1}° <----
${color6}SDA${color} ${hddtemp /dev/sda}°
${color6}GPU${color} ${nvidia temp}°
----------------------
temp1 ${platform f71882fg.2560 temp 1}° ${color6}${hwmon 1 temp 1}°C${color}
temp2 ${platform f71882fg.2560 temp 2}° (CPU)  ${color6}${hwmon 1 temp 2}°C${color}
temp3 ${platform f71882fg.2560 temp 3}° ${color6}${hwmon 1 temp 3}°C${color}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB