• [gentoo-user] pm-suspend replacement?

    From Marco Rebhan@21:1/5 to All on Sat Sep 18 20:43:18 2021
    On Saturday, 18 September 2021 20.39.45 CEST Alan Mackenzie wrote:
    I used to have a utility pm-suspend which would suspend the current
    state of the machine to RAM (or, maybe to the swap partition) and shut
    the machine down to a resting state. A keypress or mouse movement
    would restore full functionality in a few seconds.

    Is there anything to take its place?

    I'm pretty sure pm-suspend is deprecated. loginctl suspend should do the
    same thing.
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEUuA5X09baU5GfLYxyND744GinTYFAmFGM0YACgkQyND744Gi nTYELhAAnU9pmbb+7RmLZ2gxD6WTCKen6NVvt6YnSYjRHLIJk+DnAyg+ZIGnDpbu sw3oljWI4pI4urxSkqqlTX0u4xoeCOccIGl4Dp9AG77/buxWIUgJIGuO4kZtfrV5 IOgCGlRQ8S8eznSQkta3iEEQ6QnNUCiogSRtdA0qAQaO5N6uat0FdGFaRk28siVB aa+gwPllN8rXnJL+5Y9wq0S8IO28U/dRSnDv2aOj/dkU7x7Rkur78SH9jxM2KKRx 8WWvQx/FB06v4LTnioV269nN+YOtn2hpQ4TK1miyiLHdBlvCkM+3g/X95MutUcFb UPnxnLoDraEuW4/T24QM0YaxvJM2VG0dpSNXK5VmFvHAcf/cQEzsEnBVVxttVa0D NLnza7xGp7b8dUCPbWL49xYyHH9Y0uYvbdmSsmGiSZvN+dIgf6g1/IEK9q44JnC+ /s81JFxjGwH0TWq5N8N/cZNWoKEd1ZmJt5Ws6dLDeiBIVctT7zBWy+60wBJRtnrJ PDddgojnMxawr2VrCTPJBFXdwNPDueWmoEQZ7hFMn1uPKlCkfLNtftOzsYjRstBi WyQ+IMmhNLFqVAPxUTFbvn391Sa5INPcmyvQTx3WTZJJQe981iAKtOVYpZvjlVij qGo6uqhkB1n04q96ReUusfA94m09GkPmSDoShd5ZFWSblRxU4fI=
    =jNP+
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Mackenzie@21:1/5 to All on Sat Sep 18 20:40:02 2021
    Hello, Gentoo.

    I used to have a utility pm-suspend which would suspend the current
    state of the machine to RAM (or, maybe to the swap partition) and shut
    the machine down to a resting state. A keypress or mouse movement would restore full functionality in a few seconds.

    I think I lost this program in the emerge --depclean I did a couple of
    months ago (the one that wanted to make my machine unbootable).

    Is there anything to take its place? In particular I want actively to
    put the machine into resting state (as opposed to it happening after a
    period of inactivity), and I would prefer to do this without having to
    start a GUI session.

    I feel there must be something like this in portage, I just don't know
    how to find it.

    Thanks for the help!

    --
    Alan Mackenzie (Nuremberg, Germany).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tastytea@21:1/5 to acm@muc.de on Sat Sep 18 21:00:01 2021
    On 2021-09-18 18:39+0000 Alan Mackenzie <acm@muc.de> wrote:

    Hello, Gentoo.

    I used to have a utility pm-suspend which would suspend the current
    state of the machine to RAM (or, maybe to the swap partition) and shut
    the machine down to a resting state. A keypress or mouse movement
    would restore full functionality in a few seconds.

    I think I lost this program in the emerge --depclean I did a couple of
    months ago (the one that wanted to make my machine unbootable).

    Is there anything to take its place? In particular I want actively to
    put the machine into resting state (as opposed to it happening after a
    period of inactivity), and I would prefer to do this without having to
    start a GUI session.

    I feel there must be something like this in portage, I just don't know
    how to find it.

    Thanks for the help!


    `loginctl suspend`[1] if you use sys-auth/elogind. `echo mem > /sys/power/state`[2] if not.

    [1] <https://wiki.gentoo.org/wiki/Elogind#loginctl>
    [2] <https://www.kernel.org/doc/html/v5.10/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation>
    --
    Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>.

    -----BEGIN PGP SIGNATURE-----

    iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCYUY0yQAKCRDPw5SX8bJu B8ocAQCMzAGbieHG3Um2L9Zcc0BotD64FSoBWb6pYsWdTxV5gQD/ZWYi/SDPnc7F iAFZ9oVPKlWLDzJIyJZpuN1WIAjMuSk=
    =s2Kv
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anna =?utf-8?B?4oCcQ3liZXJUYWlsb3Li@21:1/5 to Alan Mackenzie on Sat Sep 18 21:20:01 2021
    On 2021-09-18 18:39, Alan Mackenzie wrote:
    I feel there must be something like this in portage, I just don't know
    how to find it.

    https://wiki.gentoo.org/wiki/Suspend_and_hibernate

    sys-power/suspend
    sys-power/hibernate-script

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Mackenzie@21:1/5 to tastytea on Sun Sep 19 13:10:02 2021
    On Sat, Sep 18, 2021 at 20:49:45 +0200, tastytea wrote:
    On 2021-09-18 18:39+0000 Alan Mackenzie <acm@muc.de> wrote:

    Hello, Gentoo.

    I used to have a utility pm-suspend which would suspend the current
    state of the machine to RAM (or, maybe to the swap partition) and shut
    the machine down to a resting state. A keypress or mouse movement
    would restore full functionality in a few seconds.

    I think I lost this program in the emerge --depclean I did a couple of months ago (the one that wanted to make my machine unbootable).

    Is there anything to take its place? In particular I want actively to
    put the machine into resting state (as opposed to it happening after a period of inactivity), and I would prefer to do this without having to start a GUI session.

    I feel there must be something like this in portage, I just don't know
    how to find it.

    Thanks for the help!


    `loginctl suspend`[1] if you use sys-auth/elogind. `echo mem > /sys/power/state`[2] if not.

    Thanks!

    Unfortunately, neither of them works. I tried s2ram too. It also
    doesn't work.

    What they all do is suspend the system, then immediately restore it,
    without the keyboard or mouse being touched.

    I'm sure the kernel isn't the problem: I tried it with three kernels
    going back to 5.4.97 and it failed on them all. pm-suspend worked on
    these. Similarly, I doubt my HW is the problem.

    At this stage, I think it's time to give up. I don't want to spend hours submitting bug reports and following up, or on endless web searches for solutions. The feature just isn't that important, convenient though it
    would be.

    Or maybe I'll try and find pm-suspend again on the web. Maybe it had
    some feature (or bug workaround) which the more modern packages are
    lacking.

    [1] <https://wiki.gentoo.org/wiki/Elogind#loginctl>
    [2] <https://www.kernel.org/doc/html/v5.10/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation>
    --
    Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>.

    --
    Alan Mackenzie (Nuremberg, Germany).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Mackenzie@21:1/5 to Alan Mackenzie on Sun Sep 19 22:30:01 2021
    Hello again, Gentoo.

    On Sun, Sep 19, 2021 at 11:03:00 +0000, Alan Mackenzie wrote:
    On Sat, Sep 18, 2021 at 20:49:45 +0200, tastytea wrote:
    On 2021-09-18 18:39+0000 Alan Mackenzie <acm@muc.de> wrote:

    Hello, Gentoo.

    I used to have a utility pm-suspend which would suspend the current
    state of the machine to RAM (or, maybe to the swap partition) and shut the machine down to a resting state. A keypress or mouse movement
    would restore full functionality in a few seconds.

    I think I lost this program in the emerge --depclean I did a couple of months ago (the one that wanted to make my machine unbootable).

    Is there anything to take its place? In particular I want actively to put the machine into resting state (as opposed to it happening after a period of inactivity), and I would prefer to do this without having to start a GUI session.

    I feel there must be something like this in portage, I just don't know how to find it.

    Thanks for the help!


    `loginctl suspend`[1] if you use sys-auth/elogind. `echo mem > /sys/power/state`[2] if not.

    Thanks!

    Unfortunately, neither of them works. I tried s2ram too. It also
    doesn't work.

    What they all do is suspend the system, then immediately restore it,
    without the keyboard or mouse being touched.

    I'm sure the kernel isn't the problem: I tried it with three kernels
    going back to 5.4.97 and it failed on them all. pm-suspend worked on
    these. Similarly, I doubt my HW is the problem.

    At this stage, I think it's time to give up. I don't want to spend hours submitting bug reports and following up, or on endless web searches for solutions. The feature just isn't that important, convenient though it
    would be.

    Or maybe I'll try and find pm-suspend again on the web. Maybe it had
    some feature (or bug workaround) which the more modern packages are
    lacking.

    That's just what I did. A web search for pm-utils found it easily
    enough. pm-suspend works again, and I'm a happy chappy - almost. Why
    was pm-utils taken off of portage in the first place? Was there some
    sort of security problem, or was it just because it hadn't been updated
    in a fair while (since 2013, I think)?

    That's another feature missing from portage - a systematic way of
    discovering why a package has been removed.

    [1] <https://wiki.gentoo.org/wiki/Elogind#loginctl>
    [2] <https://www.kernel.org/doc/html/v5.10/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation>
    --
    Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>.

    --
    Alan Mackenzie (Nuremberg, Germany).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tastytea@21:1/5 to acm@muc.de on Sun Sep 19 23:00:01 2021
    On 2021-09-19 20:24+0000 Alan Mackenzie <acm@muc.de> wrote:

    […]
    Or maybe I'll try and find pm-suspend again on the web. Maybe it
    had some feature (or bug workaround) which the more modern packages
    are lacking.

    That's just what I did. A web search for pm-utils found it easily
    enough. pm-suspend works again, and I'm a happy chappy - almost. Why
    was pm-utils taken off of portage in the first place? Was there some
    sort of security problem, or was it just because it hadn't been
    updated in a fair while (since 2013, I think)?

    It was removed because upstream abandoned it. It was announced in <https://www.gentoo.org/support/news-items/2020-04-14-elogind-default.html> which references <https://bugs.gentoo.org/659616>.

    That's another feature missing from portage - a systematic way of
    discovering why a package has been removed.

    `eselect news read all | less` is sometimes helpful. 😄

    --
    Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>.

    -----BEGIN PGP SIGNATURE-----

    iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCYUeilgAKCRDPw5SX8bJu B0cbAP9YhRXFjBvPi+HkdH70Aual2nvvyD4Mrbstrc1R0zJpBAD+J37/bQj65h5K tLHaKHlHzmnkM7YXTg4GYZLBoaihnko=
    =4oON
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Mackenzie@21:1/5 to tastytea on Mon Sep 20 19:50:01 2021
    Hello, tastytea.

    On Sun, Sep 19, 2021 at 22:50:30 +0200, tastytea wrote:
    On 2021-09-19 20:24+0000 Alan Mackenzie <acm@muc.de> wrote:

    […]
    Or maybe I'll try and find pm-suspend again on the web. Maybe it
    had some feature (or bug workaround) which the more modern packages
    are lacking.

    That's just what I did. A web search for pm-utils found it easily
    enough. pm-suspend works again, and I'm a happy chappy - almost. Why
    was pm-utils taken off of portage in the first place? Was there some
    sort of security problem, or was it just because it hadn't been
    updated in a fair while (since 2013, I think)?

    It was removed because upstream abandoned it. It was announced in <https://www.gentoo.org/support/news-items/2020-04-14-elogind-default.html> which references <https://bugs.gentoo.org/659616>.

    It was indeed. I think I missed it because "pm-utils" didn't ring any
    alarm bells whereas "pm-suspend" would have done.

    That's another feature missing from portage - a systematic way of discovering why a package has been removed.

    `eselect news read all | less` is sometimes helpful. 😄

    Thanks!

    --
    Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>.

    --
    Alan Mackenzie (Nuremberg, Germany).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)