You are not logged in.
Solution for the wrong display of the network speed in conky v1.11.6
In several posts here in the forum I had reported about the wrong display of the speed and last named LUA as the culprit. Here in [beryllium] I also had the original
conky.conf from the package conky-all for my configuration to reproduce the problem.
The new configuration was correct, the old one still with this error. But that was still not it.
This is all scattered around the forum, which is why I am writing this post.
------------------
The workaround is quite simple and is to avoid using the variable "execpi" and use "execi or texeci" instead.
I found this solution here yesterday and it works:
https://bbs.archlinux.org/viewtopic.php?id=258220
Continuing from this thread, Upstream claims that the bug was introduced with conky v1.11.3 / 1.11.4
was introduced. After almost 2 years it was fixed according to brndnmtthws...
Last edited by unklar (2021-04-04 09:55:14)
Offline
Oh man. So check this out.
You are correct about execpi, but it only matters in the execi/execpi/ entry directly above the net entries! None of this makes any sense to me as I am not using execpi in the lines for net. Why would one affect the other here?
conky.text = [[
${font Dejavu Sans:Book:size=12}${execi 999999 lsb_release -is} $alignr${time %T}
${hr}
${font Dejavu Sans:Book:size=10}Kernel${alignr}${kernel}
Governor: ${alignr}${execpi 120 $HOME/.config/conky/scripts/gov}
IO Sched: ${alignr}${ioscheduler /dev/sda}
Uptime:${alignr}${uptime}
Total Installed: ${alignr}${execpi 360 $HOME/.config/conky/scripts/apps}
Processes:${alignr}${processes}
CPU:${alignr}${cpu cpu0}%
${cpubar 4 ,60}
${color}Ram:${alignr}$mem / $memmax
${membar 4}
${color}Swap:${alignr}$swap / $swapmax
${swapbar 4}
Root: $alignr ${fs_used /} / ${fs_size /}
${fs_bar 4 /}
Home: $alignr ${fs_used /home} / ${fs_size /home}
${fs_bar 4 /home}
Up: $alignr${upspeed wlp2s0}
$alignr${upspeedgraph wlp2s0 8,180}
Down: $alignr${downspeed wlp2s0}
$alignr${downspeedgraph wlp2s0 8,180}
Battery:$alignr${battery_percent BAT0}%
$alignr${battery_bar 4,180 BAT0}
${execi 3114 fortune -s | fold -s -w24}
${execpi 20 $HOME/.config/conky/scripts/drive}
]];
On a whim I changed line 10 to read execi without noticing I had a few other lines with execpi as well and it still works!
Total Installed: ${alignr}${execi 360 $HOME/.config/conky/scripts/apps}
This changed the values to the correct readout. No change for the ram problem though.
Really surprised this hasn't been fixed in sid yet.
Thank you for the new post:)
Last edited by sleekmason (2021-04-04 18:03:39)
Offline
Nice find for a better fix for this bug. Now just a decent fix for RAM and then these will be a good workaround till the bug(s) get fixed in a future Conky update.
Last edited by DeepDayze (2021-04-04 18:20:39)
Real Men Use Linux
Offline
You are correct about execpi, but it only matters in the execi/execpi/ entry directly above the net entries! None of this makes any sense to me as I am not using execpi in the lines for net. Why would one affect the other here?
^But you use here
Governor: ${alignr}${execpi 120 $HOME/.config/conky/scripts/gov}
here
Total Installed: ${alignr}${execpi 360 $HOME/.config/conky/scripts/apps}
here
${execpi 20 $HOME/.config/conky/scripts/drive}
execpi interval command Same as execp but with specific interval. Interval can't be less than update_interval in configuration. Note that the output from the $execpi command is still parsed and evaluated at every interval.
In my attempts, NET was also right at the beginning.
The execpi does not have to be in the line of NET. It is sufficient if it is placed once below TEXT, which is your values
Up: $alignr${upspeed wlp2s0}
$alignr${upspeedgraph wlp2s0 8,180}
Down: $alignr${downspeed wlp2s0}
$alignr${downspeedgraph wlp2s0 8,180}
will be printed incorrectly.
There are other inconsistencies:
- v1.10.8 (lithium)
no moving of the conky by Alt+leftclick/hold
but syntax 1.9 is executed in this version without any problems
- v1.11.6 (beryllium)
here moving with Alt+leftclick/hold is possible again
but again the syntax 1.9 is not executed, although it is not abolished
$ conky -v
conky 1.11.6 compiled 2020-08-17 for Linux x86_64
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
General:
* math
* hddtemp
* portmon
* IPv6
* IRC
* Curl
* RSS
* ICal
* iconv
* Weather (METAR)
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* builtin default configuration
* old configuration syntax <=======
* Imlib2
* OSS mixer support
* apcupsd
* iostats
* ncurses
* Internationalization support
* PulseAudio
Lua bindings:
* Cairo
* Imlib2
* RSVG
X11:
* Xdamage extension
* Xinerama extension (virtual display)
* Xshape extension (click through)
* XDBE (double buffer extension)
* Xft
* ARGB visual
* Own window
Music detection:
* Audacious
* CMUS
* MPD
* MOC
* XMMS2
Default values:
* Netdevice: eno1
* Local configfile: $HOME/.conkyrc
* Localedir: /usr/share/locale
* Maximum netdevices: 256
* Maximum text size: 16384
* Size text buffer: 256
I am very curious, if with 1.12.1 the problems will finally be solved, because, this is not normal.
After @Nilli had mentioned that, I already tried to compile 1.12.1 on [beryllium]. Unfortunately, I did not succeed. There are so many packages needed for the compile environment...
Do not you have a tip there ?
Offline
Nice find for a better fix for this bug. Now just a decent fix for RAM and then these will be a good workaround till the bug(s) get fixed in a future Conky update.
the FIX from @Nili
${exec free -h --si | awk 'NR==2{printf $3}'}
Offline
${exec free -h --si | awk 'NR==2{printf $3}'} = ${mem}
1.2G = 1.23G
fluctuates between 1.24|1.23|1.25
BUT because of the link in unklar's OP I managed to fix up a few things on my main conky:
Your talking about conky v1.11.6 gave me some v1.9 answers
Thank you.
The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!
Offline
DeepDayze wrote:Nice find for a better fix for this bug. Now just a decent fix for RAM and then these will be a good workaround till the bug(s) get fixed in a future Conky update.
the FIX from @Nili
${exec free -h --si | awk 'NR==2{printf $3}'}
Oh yea forgot about that one. Did try it and it works
Real Men Use Linux
Offline
There are other inconsistencies:
- v1.10.8 (lithium)
no moving of the conky by Alt+leftclick/hold
This came up in November: https://forums.bunsenlabs.org/viewtopic.php?id=7111
As a workaround for bl-conkymove we could just put
pkill -x -HUP conky
at the top of the script, but that bypasses whatever the real issue is. We could just do that, though, and hope that the issue is fixed upstream before Bullseye...
That's been added to the conky-mover utility in the BL menu.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )
Offline
^I know, johnraff, I already had your thread in mind and just hadn't mentioned it because in [beryllium] with 1.11.6 the problem with Alt+left click/hold no longer exists.
@Sector11
I had anticipated it and know you are an attentive reader.
----------------------------------------
This morning I checked archlinux and found that version 1.12.1 is available there in [testing].
So, I installed that part (my old conky-lua 1.11.5pre was removed).
After a reboot of the system I can report, it works with moving the conky window just like with running the old syntax1.9.
It is missing the with
----Lua----
lua_load = '~/Dokumente/scripts/draw-bg.lua',
lua_draw_hook_pre = 'draw_bg 5 0 0 0 0 0x000000 0.25',
"round corners" of the conky's, but this is not so important for now and needs later investigation.
First conclusion is positive, and hopefully Debian will bring it at the latest in [bookworm].
Last edited by unklar (2021-04-05 10:33:54)
Offline
Offline