cpu usage when idle
I've been using powertop on my librem 5 to identify applications with higher-than-expected cpu usage when idle, and noticed that kgx consistently shows up in the top list of wake up offenders:
| Usage | Events/s | Category | Description |
|--------|-----------|------------|--------------------------------------------------------------|
| 0.0% | 17.6 | kWork | set_brightness_delayed |
| 3.1% | 0.7 | Process | [PID 9821] /usr/bin/kgx --gapplication-service |
| 0.1% | 7.7 | Timer | tick_sched_timer |
| 0.0% | 6.4 | Process | [PID 13] [rcu_preempt] |
| 0.1% | 4.3 | Process | [PID 10099] [kworker/0:1] |
| 1.0% | 0.15 | Process | [PID 10576] powertop --html=powertop-no-sleep-inhibitor.html |
| 0.0% | 3.1 | kWork | sdio_irq_work |
| 0.0% | 2.8 | Interrupt | [1] IPI |
| 0.0% | 2.7 | Interrupt | [57] mmc0 |
| 0.0% | 1.8 | Process | [PID 46] [kcompactd0] |
Even when kgx is launched, no commands or input is done in the app, and it's not visible on the L5 (e.g. some other app is in foreground), it continues to show cpu usage when idle.
This is with kgx 0.4 on Alpine Linux/postmarketOS
$ kgx --version
# KGX v3.15.0_alpha20210804-5582-g5394d7ae57 using VTE 0.66.1 +BIDI +GNUTLS +ICU -SYSTEMD
Edited by clayton craft