-   Linux - Software (
-   -   Conky: not updating the output for the cpu object (

TobiSGD 10-22-2011 03:13 PM

Conky: not updating the output for the cpu object
I compiled Conky with the flags

--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 \

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:

out_to_console yes
total_run_times 1

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.

TobiSGD 10-23-2011 03:23 PM

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.

TobiSGD 11-28-2011 03:25 PM

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.

All times are GMT -5. The time now is 08:20 PM.