OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
power-suspend medium occasional DISPUTE

Fix Omarchy's power menu crashing after masking power-profiles-daemon for TLP

omarchyarchlaptoptlppower-profiles-daemon
AUDITED Audited against its sources and confirmed accurate.

Symptom

After masking power-profiles-daemon so TLP could take over, Omarchy's power panel throws on every AC/battery transition and when opened. Crash logs show Signal: 6 (ABRT) si_code: SI_TKILL with a stack through PyGILState_Ensure() → _Py_FatalErrorFunc() → abort().

Cause

powerprofilesctl is a Python/PyGObject tool. When the D-Bus service is absent it takes a different error path in which a finalizer callback fires after the interpreter's GIL has been destroyed, and the interpreter aborts. Omarchy's shell plugins call powerprofilesctl unconditionally on power events.

Fix

The clean fix is to keep something answering on that D-Bus name. Either go back to power-profiles-daemon:


sudo systemctl disable --now tlp.service
sudo systemctl unmask power-profiles-daemon.service
sudo systemctl enable --now power-profiles-daemon.service

or keep TLP and install its D-Bus compatibility layer so the API still responds:


sudo pacman -S tlp-pd

Before invoking powerprofilesctl from any script of your own, guard it:


systemctl is-active --quiet power-profiles-daemon.service && powerprofilesctl set balanced

With no daemon at all you can still read/write the CPU energy hint directly:


cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference
echo balance_power | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference

Verify

powerprofilesctl prints the profile list and exits 0. The Omarchy power panel opens and switching profiles no longer produces an ABRT in the logs.

Sources

omarchy-powerprofilesctl-crash-ppd-masked