LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-22-2011, 03:13 PM   #1
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,355
Blog Entries: 2

Rep: Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979
Conky: not updating the output for the cpu object


I compiled Conky with the flags
Code:
--prefix=/usr \
  --libdir=/usr/lib${LBIDIRSUFFIX} \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --enable-shared=yes \
  --enable-static=no \
  --enable-ibm \
  --enable-hddtemp \
  --disable-xft \
  --enable-weather-metar \
  --enable-weather-xoap \
  --enable-portmon \
  --enable-mpd=yes \
  --enable-rss=yes \
  --enable-wlan=yes \
  --disable-x11 \
  --disable-xdamage \
  --disable-own-window \
  --build=$ARCH-slackware-linux \
  --host=$ARCH-slackware-linux
That way I simply can use it to produce text output that I can use for wmii's panel. I set up my conkyrc this way:
Code:
out_to_console yes
total_run_times 1

TEXT          
mem ${memperc}% swap ${swapperc}% / ${fs_used_perc /}% /home ${fs_used_perc /home}% | ${freq_g cpu1} ${freq_g cpu2} | ${cpu}% | ${battery_short} | ${time %a %d %b %T}
Conky is periodically called from wmii and the output is displayed to the panel just fine. There is only one problem with it. The output from ${cpu} is stuck at the value it got when Conky is started for the first time. So currently it is displaying 6% all the time, even when I start heavy compile jobs.

Anyone had that issue and knows a solution or a link to a solution?

Thanks in advance.

Last edited by TobiSGD; 10-22-2011 at 03:14 PM. Reason: fixed typo
 
Old 10-23-2011, 03:23 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,355
Blog Entries: 2

Original Poster
Rep: Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979
Ok, after searching a bit more on the web I found that some objects (like the cpu and net objects) won't work when total_runtime is set to 1.

So sadly there seems to be no solution for this.
I will mark this as solved, even if there is no solution.
 
Old 11-28-2011, 03:25 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,355
Blog Entries: 2

Original Poster
Rep: Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979
Luckily, w1k0 delivered the solution to my problem with the solution to his problem in this thread. Now I use his solution to overwrite a file with the conky output and just cat the file into my status bar, works fine.
 
  


Reply

Tags
conky, cpu, stuck


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
dipsplay cpu and memory usage using conky cccc Linux - Software 5 04-23-2011 04:50 AM
[SOLVED] Is there any way to get conky to only output to console (no X window)? Allamgir Slackware 5 12-24-2009 12:19 PM
Conky: problems displaying output from certain scripts or commands zymos Linux - Software 1 09-10-2009 05:59 PM
Conky Script-Output Problem ganimo Linux - General 2 05-10-2009 07:15 AM
conky not showing all output wilsid Linux - Software 0 06-05-2008 03:54 PM


All times are GMT -5. The time now is 02:42 PM.

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