Thanks to #4. And I'd like to share my work around on Fedora 17.
Modify /etc/acpi/actions/power.sh
Add one line of $2 ~ /mate-power-manager/ || And it becomes like:
# Check that there is a power manager, otherwise shut down. [ "$uid_session" ] && ps axo uid,cmd | \ awk ' $1 == '$uid_session' && ($2 ~ /gnome-power-manager/ || $2 ~ /kpowersave/ || $2 ~ /xfce4-power-manager/ || $2 ~ /\/usr\/libexec\/gnome-settings-daemon/ || $2 ~ /mate-power-manager/ || $2 ~ /kded4/ || $3 ~ /guidance-power-manager/) \ { found = 1; exit } END { exit !found } ' || shutdown -h now
Thanks to #4. And I'd like to share my work around on Fedora 17.
Modify /etc/acpi/ actions/ power.sh
Add one line of $2 ~ /mate-power- manager/ ||
And it becomes like:
# Check that there is a power manager, otherwise shut down. power-manager/ || $2 ~ /kpowersave/ || power-manager/ || $2 ~ /\/usr\ /libexec\ /gnome- settings- daemon/ || manager/ || power-manager/ ) \
[ "$uid_session" ] &&
ps axo uid,cmd | \
awk '
$1 == '$uid_session' &&
($2 ~ /gnome-
$2 ~ /xfce4-
$2 ~ /mate-power-
$2 ~ /kded4/ || $3 ~ /guidance-
{ found = 1; exit }
END { exit !found }
' ||
shutdown -h now