Jump to content


Conky breakthrough.

conky temps

  • Please log in to reply
8 replies to this topic

#1 OFFLINE   sunrat

sunrat

    Discussion Deity

  • Forum Moderators
  • 3,573 posts

Posted 16 July 2012 - 11:36 AM

I've always been slightly bothered that I couldn't get Conky to show temps below 40°C. I used this in conkyrc:
CPU1:${color white}${platform coretemp.0 temp 2}C ${color #666666} CPU2:${color white}${platform coretemp.0 temp 3}C

lm-sensors shows what seem to be more accurate figures, but only for the whole CPU but not each core:
root@brain:/usr/local/bin# sensors |grep temp
coretemp-isa-0000
temp1:		+31.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:		+22.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal diode
temp3:		 -2.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp1 is CPU and temp2 is mobo, temp3 I think is a quantum space link to the refrigerator so we'll skip that. :)

But how to display this in Conky? With exec to run sensors of course. I used execi to run sensors at 5 second intervals and cut to get the relevant bits. Voile! Entry in conkyrc:
$alignc${color #666666}CPU: ${color white}${execi 5 sensors | grep temp1 | cut -c16-22} ${color #666666}Mobo: ${color white}${execi 5 sensors | grep temp2 | cut -c16-22}
:thumbsup: B)
registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted Image  
Today's subliminal thought is:

#2 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 12,840 posts

Posted 16 July 2012 - 11:39 AM

Very nice Sunrat :thumbup:
Posted ImagePosted Image
Posted Image π
Comhack.com/CNI Radio/Linux User #363317/G+/Configs

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#3 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,834 posts

Posted 16 July 2012 - 11:48 AM

I've never had the ambition to setup a conky on any of my systems. Maybe one day.

Posted Image


#4 OFFLINE   sunrat

sunrat

    Discussion Deity

  • Forum Moderators
  • 3,573 posts

Posted 16 July 2012 - 12:01 PM

Also can get Nvidia GPU temp with:
GPU:${color white}${execi 10 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C

View PostV.T. Eric Layton, on 16 July 2012 - 11:48 AM, said:

I've never had the ambition to setup a conky on any of my systems. Maybe one day.
It's more fun than watching reruns of Happy Days.
registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted Image  
Today's subliminal thought is:

#5 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,834 posts

Posted 16 July 2012 - 12:42 PM

Reruns of Happy Days? Ugg! Posted Image

Posted Image


#6 OFFLINE   sunrat

sunrat

    Discussion Deity

  • Forum Moderators
  • 3,573 posts

Posted 16 July 2012 - 09:22 PM

View PostV.T. Eric Layton, on 16 July 2012 - 12:42 PM, said:

Reruns of Happy Days? Ugg! Posted Image
Haha, yeah much more fun than that! :D Maybe on a par with Hogan's Heroes. :thumbsup: B)
registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted Image  
Today's subliminal thought is:

#7 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,834 posts

Posted 16 July 2012 - 11:16 PM

I have the complete Hogan's Heroes on DVD. :yes:

Posted Image


#8 OFFLINE   abarbarian

abarbarian

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,082 posts

Posted 18 July 2012 - 04:05 PM

Thanks for the tips sunrat they will be very useful to me when I attempt a conky set up.Though I doubt watching conky will be as much fun as reruns of Futurama. :breakfast:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#9 OFFLINE   sunrat

sunrat

    Discussion Deity

  • Forum Moderators
  • 3,573 posts

Posted 18 July 2012 - 09:49 PM

Here is my .conkyrc , hopefully it may be useful for someone:
# maintain spacing between certain elements
use_spacer right

# set to yes if you want tormo to be forked in the background
background yes

use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono-8

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 1.0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 300 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no # amplifies text

# Draw borders around text
draw_borders no

# border margins
#border_margin 9

# border width
#border_width 1

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 20
gap_y 50

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# stuff after 'TEXT' will be formatted on screen

TEXT
$alignc${color #666666}$sysname $kernel $machine
$alignc${color #666666}Uptime:$color $uptime ${color #666666} Load:$color $loadavg
$alignc${color #666666}CPU Speed:$color ${freq_g}GHz ${color #666666} CPU1:${color white}${platform coretemp.0 temp 2}C ${color #666666} CPU2:${color white}${platform coretemp.0 temp 3}C
$alignc${color #666666}CPU: ${color white}${execi 5 sensors | grep temp1 | cut -c16-22} ${color #666666}Mobo: ${color white}${execi 5 sensors | grep temp2 | cut -c16-22} ${color #666666}GPU:${color white}${execi 10 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C
$alignc${color #666666} Fan1:${color white}${platform it87.656 fan 1}rpm ${color #666666} Fan4:${color white}${platform it87.656 fan 4}rpm

$alignc${color #ffffff}${time}$color

$alignc${color #666666}CPU1:$color ${cpu cpu1}% ${color #ffffff}${cpubar cpu1 10,200}
$alignc${color #666666}CPU2:$color ${cpu cpu2}% ${color #ffffff}${cpubar cpu2 10,200}

$alignc${color black}${cpugraph cpu1 30, 130 ffffff 666666} ${color black}${cpugraph cpu2 30, 130 666666 ffffff}

$alignc${color #666666}RAM:$color $mem / $memmax ${color #ffffff} ${membar 10, 120} $memperc%

$alignc${color #666666}HD:$color ${fs_used /} / ${fs_size /} ${fs_bar 10,120 /} ${fs_used_perc} %

$alignc${color #666666}DISK I/O  ${color #666666} READ:${color #ffffff} ${diskio_read} ${color #666666} WRITE:${color #ffffff} ${diskio_write}   
$alignc$color${diskiograph 16,200 000000 7f8ed3 90000}

$alignc${color #666666}IP Address:$color${addr wlan0}

	  ${color #666666}Down:$color${downspeed wlan0}/s${color #666666}${offset 65}Up:$color${upspeed wlan0}/s
$alignc${color black}${downspeedgraph wlan0 30,130 ffffff 666666} ${color black}${upspeedgraph wlan0 30, 130 666666 ffffff}

$alignc${color #666666}>> T o p - P r o c e s s e s <<$color

$alignc${color #ffffff}Name			   PID   CPU%  MEM%
$alignc${color #666666}${top name 1}${top pid 1}${top cpu 1}${top mem 1}
$alignc${color #ffffff}${top name 2}${top pid 2}${top cpu 2}${top mem 2}
$alignc${color #ffffff}${top name 3}${top pid 3}${top cpu 3}${top mem 3}
$alignc${color #ffffff}${top name 4}${top pid 4}${top cpu 4}${top mem 4}
$alignc${color #ffffff}${top name 5}${top pid 5}${top cpu 5}${top mem 5}

$alignc${color #666666}>> T o p - M e m o r y <<$color

$alignc${color #ffffff}Name			   PID   CPU%  MEM%
$alignc${color #666666}${top_mem name 1}${top_mem pid 1}${top_mem cpu 1}${top_mem mem 1}
$alignc${color #ffffff}${top_mem name 2}${top_mem pid 2}${top_mem cpu 2}${top_mem mem 2}
$alignc${color #ffffff}${top_mem name 3}${top_mem pid 3}${top_mem cpu 3}${top_mem mem 3}
$alignc${color #ffffff}${top_mem name 4}${top_mem pid 4}${top_mem cpu 4}${top_mem mem 4}
$alignc${color #ffffff}${top_mem name 5}${top_mem pid 5}${top_mem cpu 5}${top_mem mem 5}

registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted Image  
Today's subliminal thought is:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users