Thanks a lot dude, it really worked!

On Sat, Jul 13, 2013 at 1:21 AM, Eric Kitaif <[email protected]> wrote:

> Here is how you fix that.
>
> In your file:
>
> /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
>
> Make sure you have two settings in there
>
> [Enable hibernate by default in upower]
> Identity=unix-user:*
> Action=org.freedesktop.upower.hibernate
> ResultActive=yes
>
> [Enable hibernate by default in logind]
> Identity=unix-user:*
> Action=org.freedesktop.login1.hibernate
> ResultActive=yes
>
> Here is why. In this file:
>
> /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
>
> it sets the two options to "no"
>
> The file you created should be executed after the one in /var/lib so it
> should take priority over it (Tested it and it does). You can read the
> information for that here under the section "Evaluation Order". When
> your "upower" option is set to "yes" you can select hibernate from the
> power settings in Ubuntu. However, you are still unable to hibernate
> because the 10-vendor.d file was setting the login1.hibernate to "no"
> and that must also be a "yes"
>
> Looks like the bug is that Ubuntu should check both options before
> allowing hibernate to be selected.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1194328
>
> Title:
>   Ubuntu 13.10 Close LID actions Ignored
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1194328/+subscriptions
>


-- 
[]'s
Alfredo Casanova
Linux User #228230
msn: [email protected]
tel: +55 61 9655 9619

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1194328

Title:
  Ubuntu 13.10 Close LID actions Ignored

Status in “gnome-settings-daemon” package in Ubuntu:
  Confirmed

Bug description:
  Running ubuntu 13.10 testing with gnome
  Linux tatooine 3.9.0-7-generic #15-Ubuntu SMP Fri Jun 21 12:22:17 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

  # lsb_release -rd
  Description:  Ubuntu Saucy Salamander (development branch)
  Release:      13.10

  I've set my "on close lid" action to hibernate (i've done all the
  polkit stuff and sudo pm-hibernate works fine) on settings - power,
  but it just doesn't work.

  I've installed the acpi_listen package, and when I run it and close
  the lid, nothing happens. There is no /var/log/acpid either.

  tests:

  # acpi_available 
  # echo $?
  0

  # acpi_listen 
  (at this moment i closed the lid)
  #NOTHING HAPPENED!
  ^C
  root@tatooine:~# echo $?
  130

  # service acpid status
  acpid start/running, process 1089

  # ls /etc/acpi/ -R
  /etc/acpi/:
  asus-keyboard-backlight.sh  asus-wireless.sh  events  ibm-wireless.sh  
powerbtn.sh  tosh-wireless.sh  undock.sh

  /etc/acpi/events:
  asus-keyboard-backlight-down  asus-keyboard-backlight-up  asus-wireless-off  
asus-wireless-on  ibm-wireless  lenovo-undock powerbtn  thinkpad-cmos  
tosh-wireless

  
  I'm running a Samsung Ultrabook NP530UC

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1194328/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to