[SOLVED] Dbus-send, UPower, HybridSleep and Slackware-current
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On my machine there isn't a HybridSleep method to call, but I don't know whether that is just because of my hardware so you'd best check yours as well.
If all else fails, you can always ignore all this dbus crap and just create a sudo rule and optionally a wrapper script to call pm-suspend-hybrid directly.
Last edited by GazL; 06-25-2019 at 07:16 AM.
Reason: typo
I would recommend using ConsoleKit instead. The UPower we have in Slackware is quite old, and the new version is not going to have shutdown/restart/hybernate/suspend at all, so better to migrate now.
Edit: I just tried it and it works, but I needed to be root. I assume that is because of this (from the link above):
Quote:
This method assumes that you are given permission to shut the system down via PolicyKit. The default group for this is wheel. To change this, edit /etc/polkit-1/localauthority.conf.d/50-localauthority.conf as root.
Last edited by montagdude; 06-25-2019 at 07:27 AM.
No hybrid-sleep there neither, now I know, thank you ! (I was looking for such information)
Quote:
I would recommend using ConsoleKit instead. The UPower we have in Slackware is quite old, and the new version is not going to have shutdown/restart/hybernate/suspend at all, so better to migrate now.
Great thanks for listing all these commands. It works as previously (even might be faster). As it is for my laptop, mostly one user member of the wheel group, I had no need to edit /etc/polkit-1/localauthority.conf.d/50-localauthority.conf as root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.