brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

Floating mode in bspwm causes high CPU usage #425

Closed Vintodrimmer closed 10 months ago

Vintodrimmer commented 6 years ago

Good day.

I'm running the default config except for own_window_type = 'normal' and font = 'Fira Mono:size=13'.

If I launch the Conky in the tiling mode, everything is normal (90% of the time at least), but if I make the window floating or even simply move the tile, the cpu load skyrockets to 20-22% and stays there. Launching in the floating mode yields the same high load.

Here's the conky -v:

conky 1.10.6_pre compiled Sat Dec 10 05:22:59 UTC 2016 for Linux 4.2.5_1 x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 General:
  * math
  * hddtemp
  * portmon
  * IPv6
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * builtin default configuration
  * old configuration syntax
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support

 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:
  * MPD
  * MOC

 Default values:
  * Netdevice: eth0
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 64
  * Maximum text size: 16384
  * Size text buffer: 256

Distribution is Void Linux with musl if that helps.

What may be the problem here?

Conky started in tiling mode Conky moved in tiling mode Conky started in floating mode

easysid commented 6 years ago

I can confirm this issue with bspwm on Arch linux.

Floating mode causes high cpu usage. Not sure if it is a bspwm issue or a conky one.

lasers commented 6 years ago

10 months passed. Can you determine if you're still having this problem today on 1.10.9 or preferably 1.10.10_pre (git)? The older versions are not trustworthy due to too many changes that can be hard to track. Thank you.

Vintodrimmer commented 6 years ago

I'll check, but isn't the latest release still 1.10.8?

su8 commented 6 years ago
git clone https://github.com/brndnmtthws/conky
cd conky
mkdir -p build
cd build
cmake ..
make -j4 # 4 cores to run in parallel
src/conky -c myconf.conf # <-- your config goes here
Vintodrimmer commented 6 years ago

Thanks for the detailed instructions! Though I'm still curious about the version 1.10.9. There seems to be no corresponding tag on GitHub or am I missing something?

And yes, unfortunately, the bug is still there for me. Here's a free floating "default" window: Default window And fixed "dock" variant: Dock

EDIT: Changed the second picture to be from the same git version.

plikhari commented 6 years ago

Yes the current released version is 1.10.8 - git under development version is 1.10.9_pre

lasers commented 6 years ago

bswpm with conky's own_window_type = 'normal'... which is killed later.

2018-09-06-083717_900x601_scrot copy

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

github-actions[bot] commented 10 months ago

This issue was closed because it has been stalled for 30 days with no activity.