#5 High CPU usage for bluetooth applet in COSMIC
Opened by ktaylora. Modified

Hi COSMIC SIG -

I'm experiencing unusually high CPU usage for the bluetooth applet on a Framework 13 laptop. I can toggle bluetooth on / off and it doesn't affect the applet's CPU usage. I'm using COSMIC from the group install on Fedora 42.

# sudo systemctl stop bluetooth
# ps aux | grep bluetooth
user       527396 10.6  0.1 436160 56012 tty2     Sl+  08:47  10:04 cosmic-applet-bluetooth
root      550709  1.3  0.0   9100  5852 ?        Ss   10:22   0:00 /usr/libexec/bluetooth/bluetoothd
# killall cosmic-applet-bluetooth
# cosmic-applet-bluetooth 
2025-05-01T16:24:14.909631Z ERROR cosmic::config: CosmicTk config entry error why=GetKey("show_minimize", Os { code: 2, kind: NotFound, message: "No such file or directory" })
2025-05-01T16:24:14.909672Z ERROR cosmic::config: CosmicTk config entry error why=GetKey("show_maximize", Os { code: 2, kind: NotFound, message: "No such file or directory" })
2025-05-01T16:24:14.909675Z ERROR cosmic::config: CosmicTk config entry error why=GetKey("icon_theme", Os { code: 2, kind: NotFound, message: "No such file or directory" })
2025-05-01T16:24:14.909677Z ERROR cosmic::config: CosmicTk config entry error why=GetKey("header_size", Os { code: 2, kind: NotFound, message: "No such file or directory" })
2025-05-01T16:24:14.909679Z ERROR cosmic::config: CosmicTk config entry error why=GetKey("interface_density", Os { code: 2, kind: NotFound, message: "No such file or directory" })
Error getting config: com.system76.CosmicTk [GetKey("show_minimize", Os { code: 2, kind: NotFound, message: "No such file or directory" }), GetKey("show_maximize", Os { code: 2, kind: NotFound, message: "No such file or directory" }), GetKey("icon_theme", Os { code: 2, kind: NotFound, message: "No such file or directory" }), GetKey("header_size", Os { code: 2, kind: NotFound, message: "No such file or directory" }), GetKey("interface_density", Os { code: 2, kind: NotFound, message: "No such file or directory" })]
2025-05-01T16:24:14.942486Z  WARN sctk_adwaita::buttons: Ignoring unknown button type:     
bluetooth request error: Bluetooth operation in progress: In Progress
bluetooth request error: Bluetooth operation failed: le-connection-abort-by-local
### now it's usage is just fine.
# ps aux | grep bluetooth
root      550709  0.0  0.0   9260  5852 ?        Ss   10:22   0:00 /usr/libexec/bluetooth/bluetoothd
user       551262  0.1  0.1 427296 51120 pts/3    Sl+  10:24   0:00 cosmic-applet-bluetooth
user      551656  0.0  0.0 231380  2576 pts/4    S+   10:25   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv bluetooth
# rpm -qa | grep -i cosmic                                                                                                                                
cosmic-randr-1.0.0~alpha.7-1.fc42.x86_64
cosmic-panel-1.0.0~alpha.7-1.fc42.x86_64
cosmic-settings-daemon-1.0.0~alpha.7-1.fc42.x86_64
cosmic-screenshot-1.0.0~alpha.7-1.fc42.x86_64
cosmic-icon-theme-1.0.0~alpha.7-1.fc42.noarch
cosmic-comp-1.0.0~alpha.7-1.fc42.x86_64
cosmic-settings-1.0.0~alpha.7-1.fc42.x86_64
cosmic-config-fedora-0~git.20241103.1.d35e087-2.fc42.noarch
cosmic-greeter-1.0.0~alpha.7-1.fc42.x86_64
cosmic-workspaces-1.0.0~alpha.7-1.fc42.x86_64
cosmic-files-1.0.0~alpha.7-5.fc42.x86_64
cosmic-app-library-1.0.0~alpha.7-1.fc42.x86_64
cosmic-applets-1.0.0~alpha.7-1.fc42.x86_64
cosmic-bg-1.0.0~alpha.7-1.fc42.x86_64
cosmic-idle-1.0.0~alpha.7-1.fc42.x86_64
cosmic-launcher-1.0.0~alpha.7-1.fc42.x86_64
cosmic-notifications-1.0.0~alpha.7-1.fc42.x86_64
cosmic-osd-1.0.0~alpha.7-1.fc42.x86_64
cosmic-term-1.0.0~alpha.7-2.fc42.x86_64
xdg-desktop-portal-cosmic-1.0.0~alpha.7-1.fc42.x86_64
initial-setup-gui-wayland-cosmic-0~git.20241103.1.d35e087-2.fc42.noarch
cosmic-session-1.0.0~alpha.7-1.fc42.x86_64
cosmic-edit-1.0.0~alpha.7-2.fc42.x86_64
cosmic-store-1.0.0~alpha.7-1.fc42.x86_64
cosmic-player-1.0.0~alpha.7-1.fc42.x86_64
cosmic-wallpapers-1.0.0~alpha.7-1.fc42.noarch

I end up having to kill off the bluetooth applet on every boot. Bluetooth works fine on Gnome desktop. There's something goofy with cosmic's applet that I'm not seeing.


Metadata