LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Suspend to ram as non-root (https://www.linuxquestions.org/questions/slackware-14/suspend-to-ram-as-non-root-4175471661/)

markush 08-06-2013 02:44 PM

Quote:

Originally Posted by mancha (Post 5003700)
...
As far as backends we have:

  1. swsusp: which can be invoked directly with things like: echo {mem,disk,both} > /sys/power/state
  2. uswsusp: which in the case of s3 is a wrapper to swsusp and in the case of s4 is a complete userland implementation.
  3. tuxonice: set of kernel patches that provide a versatile and feature-rich extensible kernel-land framework.

As for higher-level mechanisms, we have:

  1. pm-utils: wrappers to upower; used to wrap HAL
  2. acpi events: event-triggered suspend/hibernate (buttons, lids, etc.)
  3. polkit with upower actions: used by polkit-aware applications
  4. others
...

This shows that there are quite some ways to go. Additionally I found that we already have a short HOWTO about suspend and hibernate at Slackdocs. Maybe someone adds his experiences in order to make it more complete.

Furthermore I wonder if we shouldn't start a poll here at LQ about which way Slackware users enable suspend and hibernate on their laptops, but I'm not yet sure which questions to ask.

Quote:

Originally Posted by Woodsman
I never raised that point. I've been using Slackware for many years. Markus raised that point, and I believe, only in a tongue-in-cheek manner.

Well, indeed I don't want you to leave Slackware ;)

Markus

Woodsman 08-06-2013 03:03 PM

Quote:

Furthermore I wonder if we shouldn't start a poll here at LQ about which way Slackware users enable suspend and hibernate on their laptops, but I'm not yet sure which questions to ask.
I'm guessing if such a question is asked to Slackers --- people who routinely pop open terminals and text editors to provide their own solutions, that the result will be many "geek" answers. We've already seen as much in this thread. :)

Possibly a more relevant question is how to best design the stock Slackware such that non-root users can place laptops to sleep without imitating Houdini. The goal should be that sleep "just works." :)

Quote:

Well, indeed I don't want you to leave Slackware
Yeah, I knew that. :)

markush 08-07-2013 01:16 AM

Quote:

Originally Posted by Woodsman (Post 5004249)
I'm guessing if such a question is asked to Slackers --- people who routinely pop open terminals and text editors to provide their own solutions, that the result will be many "geek" answers. We've already seen as much in this thread. :)
...

My goal would be to provide one Slackware-way which is documented very well. This would point newbies in the right direction.
Quote:

...
Possibly a more relevant question is how to best design the stock Slackware such that non-root users can place laptops to sleep without imitating Houdini. The goal should be that sleep "just works." :)
...
I think those of us who want it to "just work" use KDE or XFCE. I'm using Xmonad and I3 and have the same issues when installing a new laptop.

Markus

Woodsman 08-09-2013 01:13 PM

I'm tagging this thread as solved. Refer to Comment 4 for the solution I used.

As noted in the thread, some folks reported that suspend/sleep works out of the box without the pkla file. I don't know why. :)


All times are GMT -5. The time now is 09:28 PM.