-
Notifications
You must be signed in to change notification settings - Fork 37
Description
After I implemented this module into my polybar configuration, I noticed that my idle cpu usage was slightly higher than usual. After disabling the module, I would get about ~10% lower cpu usage on average.
After looking a bit more into it, I found the processes that were the culprit:
/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
/usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
Each one of them usually consumes ~5% of my cpu utilization (i5-8600k).
After looking up what these processes could be (before I realized it was this polybar module), I found out that they were spamming/flooding dbus messages (by running sudo dbus-monitor --system). The messages look something like this:
method call time=1612465796.559282 sender=:1.13176 -> destination=org.freedesktop.DBus serial=11 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=ListNames
method return time=1612465796.559295 sender=org.freedesktop.DBus -> destination=:1.13176 serial=12 reply_serial=11
array [
string "org.freedesktop.DBus"
string ":1.7"
string "org.freedesktop.login1"
string "org.freedesktop.timesync1"
string "org.freedesktop.ColorManager"
string ":1.9"
string "org.freedesktop.DisplayManager"
string ":1.30"
string "org.freedesktop.systemd1"
string ":1.13174"
string ":1.42"
string ":1.31"
string "org.freedesktop.PolicyKit1"
string ":1.173"
string ":1.151"
string ":1.10"
string "org.bluez"
string ":1.13176"
string ":1.33"
string ":1.22"
string "org.freedesktop.NetworkManager"
string "org.freedesktop.UPower"
string ":1.12"
string ":1.13"
string ":1.0"
string ":1.25"
string ":1.14"
string ":1.1"
string ":1.2"
string ":1.38"
string ":1.3"
string "org.freedesktop.resolve1"
string ":1.4"
string "org.freedesktop.RealtimeKit1"
string ":1.29"
string "org.freedesktop.Accounts"
string ":1.5"
]
signal time=1612465796.561545 sender=org.freedesktop.DBus -> destination=:1.13176 serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.13176"
signal time=1612465796.561560 sender=org.freedesktop.DBus -> destination=(null destination) serial=26487 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.13176"
string ":1.13176"
string ""
Again, after disabling the spotify module, the messages don't appear anymore.
I belive I have properly edited both .sh files, but I will include them in the attachments just in case, along with the polybar module. Since GitHub doesn't support uploading .sh files, I will upload screenshots of the files instead.
Any help is greatly appreciated,
thanks in advance.


