Comment 34 for bug 1201180

Revision history for this message
Jhonny Oliveira (jhonny-oliveira) wrote :

Hi,

this patch:

if pidof systemd-logind >/dev/null; then
    exit 0
fi

together with this line:
PMS="$PMS unity-settings-daemon"

are preventing me from using the power button to immediatly shutdown Ubuntu without any confirmation. In my case I want to be able to shut down an Ubuntu VM through acpi from virsh.

With the current powerbtn.sh the following configuration lines this won't have much effect :-(

gsettings set org.gnome.settings-daemon.plugins.power button-power 'shutdown'
gsettings set org.gnome.SessionManager logout-prompt false
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true