Question is how to determine PowerDevil status? It's KDED module, so does not appear in list of processes. Some distributions only tests if kded4 process is running - it should be enough assume that some power manager is running but... Another approach is to use DBUS - org.kde.powerdevilsystem.
For guidance it's easy: power-manager/ || $2 ~ /kpowersave/ || $3 ~ /guidance- power-manager/ ) \
# ($2 ~ /gnome-
Question is how to determine PowerDevil status? It's KDED module, so does not appear in list of processes. Some distributions only tests if kded4 process is running - it should be enough assume that some power manager is running but... Another approach is to use DBUS - org.kde. powerdevilsyste m.