Closed therealcodlord closed 1 year ago
same here.
I'm on Manjaro and my conky is behaving like this too. I've set update_interval
to 0.01
but it seems like updating at 0.5 seconds.
Confirmed with openSUSE. Update interval appears to be 2 - 4 seconds! My work-around is to turn off the seconds in the time display.
Additionally (and I'm not 100% sure it's related) if I don't have a ${cpu anycore} in the conkyec, then the cpu variables in lua always return 0.
@analoginterface0 o.k. so it's not just me then! @RichardGladman I don't have seconds shown in the time display and still not found any workaround. Obviously since I logged this Ubuntu has gone through lots of patches etc which I kind of hoped might solve this issue given that it seemed to start with Ubuntu 20.10
I had same issue on ubuntu 20.10. Then I tried to divide my recipi to two, one has no lua_load but with cpu variables, another has lua_load without cpu variables. Then run two conky palallely, thoes work well.
Could it be related to this issue of slow conky_parse()
/ lua_parse()
functions that apparently got introduced with one of the 1.11.x updates?
Could you try if removing the conky_parse()
calls from your lua scripts makes a difference?
gottfriedm I tried as you mentioned, then it works without any delay. Hmmm, but my recipes, conky without cpu variables and lua with conky_purse(), works well also, I can't understand what happnes.
ubuntu 20.10, conky 1.11.6-2
I can confirm with my setup that it does seem what @gottfriedm said about the linked issue.
For me it seems to be conky_parse() calls which are now much slower than before. My script has several calls
So it does seem that as per the linked issue - before the update conky_parse() calls were very fast and now they are much much slower.
they are horrible slow and it is basically not usable anymore. I'm waiting for a solution since October 2020 now - not even a maintainer cared about the issue... the only solution I have is not to upgrade conky anymore. Unfortunately I can't upgrade ubuntu without upgrading conky... I'm wondering if there is no ubuntu maintainer that could revert the upgrade in the repositories.
Unfortunately I can't upgrade ubuntu without upgrading conky
My "solution" is to check out the 1.10.8 version git tag and compile it myself, which thankfully is fairly easy.
But I agree, this problem should be addressed.
My conky uses many lua scripts and several of those scripts use conky_parse
. My conky contains various cpu
objects too. Yet, I do not have the problem. My wider setup is (as helpfully displayed by my conky!):
(Ignore the '25.3s'. It is how long boot took.)
Perhaps then the problem is Ubuntu 20.10 itself, or some component (but not Conky?) therein. Or else perhaps what solves the problem is the newer version of Conky that I have - a version that, I think, I compiled myself from the code on github.
My conky uses many lua scripts and several of those scripts use conky_parse. My conky contains various cpu objects too. Yet, I do not have the problem.
I can confirm that the issue seems to be gone with one of the newer conky releases.
Timing of conky_parse()
with conky-1.10.8
time: 0.018849849700928
time: 0.019077062606812
time: 0.018664836883545
time: 0.018887042999268
time: 0.018595933914185
With conky-1.11.6 (as detailed here):
time: 0.30080986022949
time: 0.30092906951904
time: 0.30434203147888
time: 0.30092811584473
time: 0.30187606811523
time: 0.30196404457092
time: 0.30118894577026
With the newest version available from my package manager, conky-1.12.2:
time: 0.010081052780151
time: 0.010499954223633
time: 0.011132001876831
time: 0.010730981826782
time: 0.010843992233276
time: 0.011169910430908
It seems that the problem got fixed with the conky-1.12 release. If others can confirm as well, then we can close these issues.
I'm on Fedora Linux 35 KDE & Manjaro KDE with the latest conky-1.12 packages. I confirm this issue has been resolved in version 1.12.
It's working on openSUSE with 1.12
The issue seems to be solved, but i'm afraid i can't close it. I think only original reporter can.
@therealcodlord You might want to consider closing this issue.
Issue
I don't really know if this is an issue with Conky or with Ubuntu but I am trying to debug/solve. I have 3 Ubuntu installations with Conky and previously they would update every second as expected. Since updating to Ubuntu 20.10 they all now exhibit the same behaviour - Conky updating only every 5 or 6 seconds.
I could not find any open or closed issues relating to slowdown or the "cpu" variable causing issues so I tried to do a bit of debugging. No errors in the conky log.
I simplified my conky config to show JUST the time with seconds and that works fine (Conky updates every second). So I slowly started adding things to the config until I found that if I have any cpu variable line in my config I get the slow Conky update every 5 or 6 seconds. So for example:
${hwmon 1 temp 1}
and/or${top cpu 1}
works fine but add this:${cpu cpu3}
And I get the slow updates.BUT if I remove the
lua_load
line in my config then all values (including the CPU values) show correctly and at the correctupdate_interval
, so it seems to be some combination of LUA and the cpu variable.SUMMARY: No lua_load (just text values including cpu variables) = works ok. lua_load but no cpu variables = works ok. lua_load with cpu variables = slow updates.
Information
OS: Ubuntu 20.10, Gnome 3.38.1 X11 5.8.0-25-generic #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Conky: I am just using the supplied package version which is currently 1.11.6
EXAMPLE CONFIG: Note: If I comment out any of the $cpu variable lines it updates every second as expected. With one or more $cpu variable lines I get the slow update every 5 or 6 seconds.