Package: acpid
Version: 1:2.0.18-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu saucy ubuntu-patch

Dear Maintainer,

Setup: in Mate settings I've setup to put laptop to sleep when power
button is pressed.

Actions: press power button.

Result: laptop turns off.

Expected result: laptop goes to sleep mode.

Reason: Mate DE uses 'mate-settings-daemon' instead of
'gnome-settings-daemon'. Powerbtn.sh doesn't check if
'mate-settings-daemon' is running and since no other sessings daemon
(from gnome or kde) is running it assumes default behaviour and shuts
system down.

  * debian/powerbtn.sh: add support for mate-settings-daemon. LP: #1184831


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers raring-updates
  APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 'raring')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8.0-22-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog'

=== modified file 'debian/powerbtn.sh'
--- debian/powerbtn.sh	2012-05-30 17:45:36 +0000
+++ debian/powerbtn.sh	2013-05-28 01:35:28 +0000
@@ -34,6 +34,7 @@
 [ -r /usr/share/acpi-support/power-funcs ] && getXconsole
 PMS="gnome-settings-daemon kpowersave xfce4-power-manager"
 PMS="$PMS guidance-power-manager.py dalston-power-applet"
+PMS="$PMS mate-settings-daemon"
 
 if pidof x $PMS > /dev/null; then
         exit

Reply via email to