Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #171815 > unrolled thread

[xfce] - power management

Started byHerbert Fortes <terberh@gmail.com>
First post2016-09-06 16:10 +0200
Last post2016-09-06 22:30 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  [xfce] - power management Herbert Fortes <terberh@gmail.com> - 2016-09-06 16:10 +0200
    Re: [xfce] - power management deloptes <deloptes@gmail.com> - 2016-09-06 20:50 +0200
    Re: [xfce] - power management Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-06 22:30 +0200
    Re: [xfce] - power management Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-06 22:30 +0200

#171815 — [xfce] - power management

FromHerbert Fortes <terberh@gmail.com>
Date2016-09-06 16:10 +0200
Subject[xfce] - power management
Message-ID<sepey-30H-49@gated-at.bofh.it>
Hi,

I switched from gnome to xfce because the notebook
can not run gnome and pycharm at the same time.

I am facing problems with power management. Suspend
works is I click on the button. Hibernate does not
seems to work properly because I see a lot of 'OK'
when I notebook wakes up.


I tried to config policykit without success. I put a
.pkla file in /etc/polkit-1/localauthority/50-local.d/
about suspend and hibernate:

Identity=unix-user:*
Action=org.freedesktop.XXXXX.XXXXX
ResultActive=yes

XXXXX can be upower|login1 and suspend|hibernate. The
message asking a password says login1.

I also tried putting a file in /usr/share/polkit-1/rules.d/
with:

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.login1.suspend" ||
        action.id == "org.freedesktop.login1.suspend-multiple-sessions" ||
        action.id == "org.freedesktop.login1.hibernate" ||
        action.id == "org.freedesktop.login1.hibernate-multiple-sessions")
    {
        return polkit.Result.YES;
    }
});


# Debian Testing
$ pkaction --version
pkaction version 0.105


If someone can help me please Cc me because I am
not on the list.



Regards,
Herbert

[toc] | [next] | [standalone]


#171820

Fromdeloptes <deloptes@gmail.com>
Date2016-09-06 20:50 +0200
Message-ID<setBw-5FR-17@gated-at.bofh.it>
In reply to#171815
Herbert Fortes wrote:

> /etc/polkit-1/

do you have
/usr/share/polkit-1/actions/org.freedesktop.upower.policy

and what is libupower or libupower-glib1 version

I still keep 

hi  policykit-1                            0.105-3                             
amd64        framework for managing administrative policies and privileges
hi  upower                                 0.9.23-2+b1                         
amd64        abstraction for power management

dpkg -l | grep libupower
ii  libupower-glib1                        0.9.17-1                            
amd64        abstraction for power management - shared library

Hibernate and suspend are/were in org.freedesktop.upower.policy

regards

[toc] | [prev] | [next] | [standalone]


#171826

FromStephan Beck <sbeck@secure.mailbox.org>
Date2016-09-06 22:30 +0200
Message-ID<sevai-6LS-3@gated-at.bofh.it>
In reply to#171815
Hi Herbert,

I don't have XFCE installed, and I don't have a solution to your problem
right now, but have you checked if your /etc/systemd/logind.conf file
has the option #HandleHibernateKey=hibernate uncommented?

Does your window manager handle this type of ACPI event(s) now?
/usr/bin/xfce4-power-manager

Does acpid handle those events? Check the scripts in /etc/acpid/events
and section Troubleshooting on acpid's man page.

Stephan

Herbert Fortes:
> Hi,
> 
> I switched from gnome to xfce because the notebook
> can not run gnome and pycharm at the same time.
> 
> I am facing problems with power management. Suspend
> works is I click on the button. Hibernate does not
> seems to work properly because I see a lot of 'OK'
> when I notebook wakes up.
> 
> 
> I tried to config policykit without success. I put a
> .pkla file in /etc/polkit-1/localauthority/50-local.d/
> about suspend and hibernate:
> 
> Identity=unix-user:*
> Action=org.freedesktop.XXXXX.XXXXX
> ResultActive=yes
> 
> XXXXX can be upower|login1 and suspend|hibernate. The
> message asking a password says login1.
> 
> I also tried putting a file in /usr/share/polkit-1/rules.d/
> with:
> 
> polkit.addRule(function(action, subject) {
>     if (action.id == "org.freedesktop.login1.suspend" ||
>         action.id == "org.freedesktop.login1.suspend-multiple-sessions" ||
>         action.id == "org.freedesktop.login1.hibernate" ||
>         action.id == "org.freedesktop.login1.hibernate-multiple-sessions")
>     {
>         return polkit.Result.YES;
>     }
> });
> 
> 
> # Debian Testing
> $ pkaction --version
> pkaction version 0.105
> 
> 
> If someone can help me please Cc me because I am
> not on the list.
> 
> 
> 
> Regards,
> Herbert
> 
> 

[toc] | [prev] | [next] | [standalone]


#171827

FromStephan Beck <sbeck@secure.mailbox.org>
Date2016-09-06 22:30 +0200
Message-ID<sevai-6LS-5@gated-at.bofh.it>
In reply to#171815
Hi Herbert,

I don't have XFCE installed, and I don't have a solution to your problem
right now, but have you checked if your /etc/systemd/logind.conf file
has the option #HandleHibernateKey=hibernate uncommented?

Does your window manager handle this type of ACPI event(s) now?
/usr/bin/xfce4-power-manager

Does acpid handle those events? Check the scripts in /etc/acpid/events
and section Troubleshooting on acpid's man page.

Stephan


Herbert Fortes:
> Hi,
> 
> I switched from gnome to xfce because the notebook
> can not run gnome and pycharm at the same time.
> 
> I am facing problems with power management. Suspend
> works is I click on the button. Hibernate does not
> seems to work properly because I see a lot of 'OK'
> when I notebook wakes up.
> 
> 
> I tried to config policykit without success. I put a
> .pkla file in /etc/polkit-1/localauthority/50-local.d/
> about suspend and hibernate:
> 
> Identity=unix-user:*
> Action=org.freedesktop.XXXXX.XXXXX
> ResultActive=yes
> 
> XXXXX can be upower|login1 and suspend|hibernate. The
> message asking a password says login1.
> 
> I also tried putting a file in /usr/share/polkit-1/rules.d/
> with:
> 
> polkit.addRule(function(action, subject) {
>     if (action.id == "org.freedesktop.login1.suspend" ||
>         action.id == "org.freedesktop.login1.suspend-multiple-sessions" ||
>         action.id == "org.freedesktop.login1.hibernate" ||
>         action.id == "org.freedesktop.login1.hibernate-multiple-sessions")
>     {
>         return polkit.Result.YES;
>     }
> });
> 
> 
> # Debian Testing
> $ pkaction --version
> pkaction version 0.105
> 
> 
> If someone can help me please Cc me because I am
> not on the list.
> 
> 
> 
> Regards,
> Herbert
> 
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web