Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] +policykit for elogind if I want suspend to ram?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Mon Apr 05, 2021 12:33 pm    Post subject: [SOLVED] +policykit for elogind if I want suspend to ram? Reply with quote

Do I need to enable the "policykit" USE flag for elogind if I want to suspend to ram?

When I install elogind without the "policykit" USE flag, ebuild prints the following info:

Code:

loginctl will not be able to perform privileged operations without "USE="policykit"! That means e.g. no suspend or hibernate.


But then I ran "sudo loginctl suspend" to suspend to ram, the computer went to sleep just fine, and then woke up without any problem.

So do I need to enable the "policykit" USE flag or not?


Last edited by smartding on Mon Apr 05, 2021 1:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Mon Apr 05, 2021 1:05 pm    Post subject: Reply with quote

smartding wrote:
But then I ran "sudo loginctl suspend" to suspend to ram, the computer went to sleep just fine, and then woke up without any problem.


I think you answered your own question. If you do it as root, it works fine. If you wanted to do it as user (e.g. via a button in your desktop environment) then you would need policykit.
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Mon Apr 05, 2021 1:11 pm    Post subject: Reply with quote

Etal wrote:
smartding wrote:
But then I ran "sudo loginctl suspend" to suspend to ram, the computer went to sleep just fine, and then woke up without any problem.


I think you answered your own question. If you do it as root, it works fine. If you wanted to do it as user (e.g. via a button in your desktop environment) then you would need policykit.



I thought the warning from ebuild means I won't be able to suspend even with sudo.

Thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum