Closed LinuxOnTheDesktop closed 5 years ago
More specifially, git bisect suggests the following.
Confirmed? Tested more than once? I'm not familiar with code, but the offending commit seems unlikely because convert.lua
is used to convert old configs to v1.10
lua syntax, I assume, always at startup.
You can read up on syntax differences between 1.9 and earlier versions and 1.1.0 and later versions. https://github.com/brndnmtthws/conky/wiki/Configurations
However, the problem is intermittent and my checking (of whether the stall was present with each commit) could have been more thorough.
I guess not confirmed. The commit seems to add support for old config draw_blended yes
to draw_blended = true
. Also, draw_blended
is added in v1.11.0
(11th iteration) so one could argue that this ought be ignored in old configs instead... to encourage users to use newer configs.
It just seems unlikely to me right now. Maybe try again.
Lasers,
Were you to supply me with the requisite two git checkout
commands - one for the source with this commit, one for the source before that - then that would make it easier for me to test my hypothesis more thoroughly.
It may be that the commit does something unintended.
git log
shows logs. git log -p
will show code too. For you, use git log --oneline
. From there, grep, less, etc.
git checkout 2a0d2a7 # offending git checkout e5e9e43 # right before offending
Cheers.
I may have confused concurrence with causation - the problem may have been a script I called from conky (and it is not even a lua script) rather than conky itself. Closing.
It might be worth adding the following observation.
The cause of my shutdown stalls was a bash script run by Conky. The script ran a network command, repeatedly, and from within a for
loop. I do not know whether it is the responsibility of conky or of the bash script to ensure that instances of the command in question terminate properly. Perhaps it is the latter's responsibility. Anyhow, the problem can be fixed at the bash level, as follows.
for (( c=1; c<"$threshold_seconds" ; c++ )) ; do
read -r signal < <(\
timeout -k1 2 \
iwconfig "$interface" | grep Signal | awk '{ print $4 }' | cut -d "=" -f 2 \
&)
cmd_pid=$! ; wait $cmd_pid
# Use the 'wait' command, and the backgrounding above (the '&') to allow proper termination of the network command, despite the peculiarities of loops in Bash. The 'timeout' is in their for good measure (but will itself not work if one uses a simpler way of reading the output of the 'iwconfig' command into the variable!).
sleep 1
done
Issue
Often, my computer is slow to shutdown when running Conky. The problem occurs with Conky >= 1.11.1. More specifially,
git bisect
suggests the following.With builds prior to that version, or with my lua scripts disabled, Conky shuts down fine. However, the problem is intermittent and my checking (of whether the stall was present with each commit) could have been more thorough.
Information Linux Mint 19.1 x64 Cinnamon. Conky version: see above.
This lua script suffices to trigger the problem: