LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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: Slack_64 14.2
Posts: 226

Rep: Reputation: 29

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: 74
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: Slack_64 14.2
Posts: 226

Rep: Reputation: 29
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
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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: Slack_64 14.2
Posts: 226

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

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: 64

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
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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: 64

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: Slack_64 14.2
Posts: 226

Rep: Reputation: 29
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
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
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 (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
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: Slack_64 14.2
Posts: 226

Rep: Reputation: 29
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 (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
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: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
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, gnome, gui, i3, ion3, kde, monitor, musca, screenshot, tmux, wallpaper, xfce4, xterm



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration