LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-20-2012, 11:10 PM   #1441
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slackware_64 13.37
Posts: 183

Rep: Reputation: 21

Question, I have a 6 core AMD processor and would like to show average CPU use and temp. What is the best way to do that with conky?
 
Old 03-20-2012, 11:46 PM   #1442
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 72
Quote:
Originally Posted by ceh383 View Post
Question, I have a 6 core AMD processor and would like to show average CPU use and temp. What is the best way to do that with conky?
the average of all 6 cores would be ${cpu cpu}

for the useage of each core individually you would define each one:

${cpu cpu1}
${cpu cpu2}
...

Don't know about the temp, never had much use for it as I'm not an overclocker.
 
Old 03-21-2012, 12:10 AM   #1443
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slackware_64 13.37
Posts: 183

Rep: Reputation: 21
Quote:
Originally Posted by trademark91 View Post
the average of all 6 cores would be ${cpu cpu}

for the useage of each core individually you would define each one:

${cpu cpu1}
${cpu cpu2}
...

Don't know about the temp, never had much use for it as I'm not an overclocker.
Thanks, I'll give it a try...
 
Old 03-22-2012, 09:12 AM   #1444
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64&i386, Raspbian Jessie, various VMs
Posts: 3,213

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
I'm not sure what the situation is with current AMD CPUs but with my older one there doesn't seem to be a way to access the temperature directly from conky, so I use the following to get CPU and motherboard temperatures.
Code:
${execi 8 sensors | grep "CPU Temperature"}
${execi 8 sensors | grep "MB Temperature"}
It could be better, I know, but it's a start.
 
Old 03-22-2012, 10:58 PM   #1445
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slackware_64 13.37
Posts: 183

Rep: Reputation: 21
Here's the latest Screen Shot
 
Old 03-24-2012, 12:55 PM   #1446
ckt1g3r
Member
 
Registered: Sep 2007
Posts: 50

Rep: Reputation: 23
Slackware-13.37 + openbox + tint2 + wbar + conky
http://ompldr.org/vZDRxdQ

Last edited by ckt1g3r; 03-24-2012 at 12:56 PM.
 
Old 03-25-2012, 06:05 AM   #1447
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 52

Rep: Reputation: 16
Hello Everybody.

I want to create a conky with lua rings.I look deeply in the net , in order to figure out how could i draw rings with conky but with no luck.
I have installed conky and lua packages. I run conky configuration with rings but no the rings doesn't show at all.

I found a package that said lua rings, i installed from source .....but again fail to draw the rings in my conky .

Does anybody knows what is missing here?????

Thnaks guys (....and girls)
 
Old 03-25-2012, 07:14 AM   #1448
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 832

Rep: Reputation: 167Reputation: 167
you need to install conky with lua support, if you have installed it from slackbuilds the slackbuild script needs modifying see the readme
 
Old 03-25-2012, 07:57 AM   #1449
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 52

Rep: Reputation: 16
Quote:
Originally Posted by Keith Hedger View Post
you need to install conky with lua support, if you have installed it from slackbuilds the slackbuild script needs modifying see the readme
Keith thank you very very very very very very much .....i appreciate!!!!!!

Problem solved
 
Old 03-26-2012, 09:46 PM   #1450
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slackware_64 13.37
Posts: 183

Rep: Reputation: 21
conky question

Last night I was compiling some slackbuilds and noticed something. Conky showed my CPU usage at 15~20% yet the top CPU tasks only added up to 2~3%
What would cause them to be so different?
Here's my conky script...

Code:
alignment top_right
double_buffer yes
gap_x 25
gap_y 100
update_interval 1.5
background yes
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
minimum_size 250 5
maximum_width 225 5
use_xft yes
xftalpha 0.5
xftfont micro.pfc L:size=8
temperature_unit fahrenheit

TEXT
${font size=7}${color #ff0000}Info $hr${color }${font }

User: ${alignr}$alignc${exec whoami} @ $nodename
Kernel: ${alignr}$kernel ($machine)
Uptime: ${alignr}$uptime
Time: ${alignr}${time %H:%M:%S}
Date: ${alignr}${time %d.%m.%y}
Filesystem: $alignr${fs_type}

${font size=7}${color #ff0000}CPU Usage $hr${color }${font }

Average% ${alignr}${cpu cpu}%
${cpugraph cpu1 12, 200}
Temprature${alignr}${hwmon temp 1}F

${font size=7}${color #ff0000}CPU Tasks $hr${color }${font }

${color #F50AD9}${top name 1}${alignr}${top cpu 1}%${color }
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%
${top name 4}${alignr}${top cpu 4}%
${top name 5}${alignr}${top cpu 5}%

${font size=7}${color #ff0000}Ram Usage $hr${color }${font }

RAM ${alignr}$mem/$memmax
${membar 8, 200}

${font size=7}${color #ff0000}RAM Tasks  $hr${color }${font }

${color #F50AD9}${top_mem name 1}${alignr}${top_mem mem 1}%${color }
${top_mem name 2}${alignr}${top_mem mem 2}%
${top_mem name 3}${alignr}${top_mem mem 3}%
${top_mem name 4}${alignr}${top_mem mem 4}%
${top_mem name 5}${alignr}${top_mem mem 5}%

${font size=7}${color #ff0000}Network $hr${color }${font }
IP (Lan): $alignr${addr eth0}
IP (Public): $alignr${execi 600 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
Total Down $alignr${totaldown eth0}
Total Up   $alignr${totalup eth0}

Download ${alignr}${downspeed eth0}
${downspeedgraph eth0 12, 210}

Upload ${alignr}${upspeed eth0}
${upspeedgraph eth0 12, 210}

${font size=7}${color #ff0000}Filesystem $hr${color }${font }

/home ${alignr}${fs_free /home}
${fs_bar 8, 200 /}

/archives ${alignr}${fs_free /archives}
${fs_bar 8, 200 /}

/extras ${alignr}${fs_free /extras}
${fs_bar 8, 200 /}
 
Old 03-27-2012, 08:24 AM   #1451
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware and Porteus
Posts: 648

Rep: Reputation: 45
ceh383, it seems You have a bit too much awesomeness and it eats up some of the CPU cycles
:^)
Just kidding, it's probably the way both conky and top calculate the CPU load, You might even compare it to gkrellm and wmcpu or some further CPU gauge for X...

Best regards,
Stevan C.
 
Old 03-27-2012, 04:39 PM   #1452
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Original Poster
Rep: Reputation: 196Reputation: 196
ceh383,

in my system conky displays 11-15% of CPU usage while the command:

top -b -n 40 | grep '^Cpu' | sort -n

displays 4.1-11.8% of CPU usage (the median usage is 9.5%).

So top reports significantly lower CPU usage than conky. I don't know the reason for such a difference.
 
Old 03-27-2012, 05:13 PM   #1453
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slackware_64 13.37
Posts: 183

Rep: Reputation: 21
Quote:
Originally Posted by w1k0 View Post
ceh383,

in my system conky displays 11-15% of CPU usage while the command:

top -b -n 40 | grep '^Cpu' | sort -n

displays 4.1-11.8% of CPU usage (the median usage is 9.5%).

So top reports significantly lower CPU usage than conky. I don't know the reason for such a difference.
I read somewhere that conky doesn't show processes that run as root under the top CPU processes. I don't know if that is true, but if it is, how would one get those to show up?
 
Old 03-28-2012, 07:33 AM   #1454
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Original Poster
Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by ceh383 View Post
I read somewhere that conky doesn't show processes that run as root under the top CPU processes. I don't know if that is true, but if it is, how would one get those to show up?
It doesn't seem true. I run as root the command:

ls -R /

and conky using the following configuration:

Code:
${top cpu 1} ${top name 1}
${top cpu 2} ${top name 2}
${top cpu 3} ${top name 3}
${top cpu 4} ${top name 4}
${top cpu 5} ${top name 5}
showed the ``ls'' process.
 
Old 03-28-2012, 07:40 AM   #1455
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by trademark91 View Post
the average of all 6 cores would be ${cpu cpu}

for the useage of each core individually you would define each one:

${cpu cpu1}
${cpu cpu2}
...

Don't know about the temp, never had much use for it as I'm not an overclocker.
Start counting from 0
 
  


Reply

Tags
background, cwm, dwm, framebuffer, gui, i3, ion3, kde, monitor, musca, screenshot, tmux, wallpaper, xfce4, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3D Desktop on Slackware? darkhatter Slackware 3 10-10-2006 12:26 PM
Slackware 10.0 with NO Desktop NiPP Linux - Newbie 2 01-02-2006 10:43 AM
3d desktop on Slackware k1ll3r_x Linux - Software 1 09-20-2005 10:47 PM
Desktop Slackware s0no Slackware 5 12-04-2004 11:20 AM
I can't get my desktop in Slackware 10 DraGoNsLaYeR Linux - Newbie 1 06-27-2004 02:00 PM


All times are GMT -5. The time now is 07:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration