s2disk works, but hibernation from menu gets stuck afer login The 2019 Stack Overflow Developer Survey Results Are InHibernate and resume from a swap fileI hibernated my PC, but it has not able to resume it. (Ubuntu 18.10)Using /usr/local/bin/mpd instead of /usr/bin/mpdWhy does my systemd service shut down immediately after running?how to make linux prefer sudo pm-hibernate over systemctl hibernate as default?Force hibernate using hibernate instead of pm-hibernatePrevent Suspend and Hibernation on 16.04ubuntu 18 hibernation using the power buttonSystemd runs start and stop commands simultaneously on Ubuntu 18.04 - Minecraft server issuesHibernation using Power Button : 18.04ubuntu snmpd ignores /etc/default/snmpd

If a Druid sees an animal’s corpse, can they wild shape into that animal?

What is the most effective way of iterating a std::vector and why?

Are spiders unable to hurt humans, especially very small spiders?

Are there any other methods to apply to solving simultaneous equations?

Is bread bad for ducks?

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

How can I autofill dates in Excel excluding Sunday?

Origin of "cooter" meaning "vagina"

Falsification in Math vs Science

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

How to notate time signature switching consistently every measure

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

Shouldn't "much" here be used instead of "more"?

Resizing object distorts it (Illustrator CC 2018)

How to deal with fear of taking dependencies

Why isn't airport relocation done gradually?

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Pokemon Turn Based battle (Python)

How to support a colleague who finds meetings extremely tiring?

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Why do we hear so much about the Trump administration deciding to impose and then remove tariffs?

Button changing it's text & action. Good or terrible?



s2disk works, but hibernation from menu gets stuck afer login



The 2019 Stack Overflow Developer Survey Results Are InHibernate and resume from a swap fileI hibernated my PC, but it has not able to resume it. (Ubuntu 18.10)Using /usr/local/bin/mpd instead of /usr/bin/mpdWhy does my systemd service shut down immediately after running?how to make linux prefer sudo pm-hibernate over systemctl hibernate as default?Force hibernate using hibernate instead of pm-hibernatePrevent Suspend and Hibernation on 16.04ubuntu 18 hibernation using the power buttonSystemd runs start and stop commands simultaneously on Ubuntu 18.04 - Minecraft server issuesHibernation using Power Button : 18.04ubuntu snmpd ignores /etc/default/snmpd



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Running Xubuntu 18.04 LTS, I've set up hibernation with uswsusp, and it works flawlessly (s2disk).



Then, I've integrated s2disk to Systemd (systemctl hibernate) by overriding the systemd-hibernate service to



[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /usr/lib/systemd/system-sleep


As expected, sudo systemctl hibernate works without any issues.



The problem appears when clicking the hibernate button on the power menu (enabled via polkit) fails - it looks like it worked, but when resuming the system freezes completely upon login.



I suspect that the button does not actually run the same commands as the other methods, but I couldn't find how to set it.



Update: This seems to be machine-specific. I have another PC, with very similar setup (same Xubuntu version and hibernation configuration - from here). On the other PC, it works correctly, but for the machine in question (it's a laptop), it still does not.



Update 2: I've tried to restart Plymouth upon resume (this is a solution to similar issues I've found), but it didn't help.










share|improve this question
























  • It should run the same commands via logind's bus methods. Did you make your service Type=oneshot? No idea why that should matter, though.

    – intelfx
    May 12 '18 at 17:50












  • Yes, it is oneshot. Just to clarify, sudo systemctl hibernate works as expected (no freezing at login or anything). Only from the XFCE powr dialog, the issue appears.

    – matan129
    May 12 '18 at 19:03











  • Would be creating a .desktop file on your desktop be a suitable solution?

    – Fabby
    May 17 '18 at 19:56







  • 1





    @Fabby It's not a bad idea, but I want to specifically make the hibernate button on the power menu work. So.. no.

    – matan129
    May 17 '18 at 21:26











  • Give some comments on the laptop model and hardware, so we can see if there are any compatibility issues.

    – Leo
    May 21 '18 at 23:51

















1















Running Xubuntu 18.04 LTS, I've set up hibernation with uswsusp, and it works flawlessly (s2disk).



Then, I've integrated s2disk to Systemd (systemctl hibernate) by overriding the systemd-hibernate service to



[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /usr/lib/systemd/system-sleep


As expected, sudo systemctl hibernate works without any issues.



The problem appears when clicking the hibernate button on the power menu (enabled via polkit) fails - it looks like it worked, but when resuming the system freezes completely upon login.



I suspect that the button does not actually run the same commands as the other methods, but I couldn't find how to set it.



Update: This seems to be machine-specific. I have another PC, with very similar setup (same Xubuntu version and hibernation configuration - from here). On the other PC, it works correctly, but for the machine in question (it's a laptop), it still does not.



Update 2: I've tried to restart Plymouth upon resume (this is a solution to similar issues I've found), but it didn't help.










share|improve this question
























  • It should run the same commands via logind's bus methods. Did you make your service Type=oneshot? No idea why that should matter, though.

    – intelfx
    May 12 '18 at 17:50












  • Yes, it is oneshot. Just to clarify, sudo systemctl hibernate works as expected (no freezing at login or anything). Only from the XFCE powr dialog, the issue appears.

    – matan129
    May 12 '18 at 19:03











  • Would be creating a .desktop file on your desktop be a suitable solution?

    – Fabby
    May 17 '18 at 19:56







  • 1





    @Fabby It's not a bad idea, but I want to specifically make the hibernate button on the power menu work. So.. no.

    – matan129
    May 17 '18 at 21:26











  • Give some comments on the laptop model and hardware, so we can see if there are any compatibility issues.

    – Leo
    May 21 '18 at 23:51













1












1








1


1






Running Xubuntu 18.04 LTS, I've set up hibernation with uswsusp, and it works flawlessly (s2disk).



Then, I've integrated s2disk to Systemd (systemctl hibernate) by overriding the systemd-hibernate service to



[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /usr/lib/systemd/system-sleep


As expected, sudo systemctl hibernate works without any issues.



The problem appears when clicking the hibernate button on the power menu (enabled via polkit) fails - it looks like it worked, but when resuming the system freezes completely upon login.



I suspect that the button does not actually run the same commands as the other methods, but I couldn't find how to set it.



Update: This seems to be machine-specific. I have another PC, with very similar setup (same Xubuntu version and hibernation configuration - from here). On the other PC, it works correctly, but for the machine in question (it's a laptop), it still does not.



Update 2: I've tried to restart Plymouth upon resume (this is a solution to similar issues I've found), but it didn't help.










share|improve this question
















Running Xubuntu 18.04 LTS, I've set up hibernation with uswsusp, and it works flawlessly (s2disk).



Then, I've integrated s2disk to Systemd (systemctl hibernate) by overriding the systemd-hibernate service to



[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /usr/lib/systemd/system-sleep


As expected, sudo systemctl hibernate works without any issues.



The problem appears when clicking the hibernate button on the power menu (enabled via polkit) fails - it looks like it worked, but when resuming the system freezes completely upon login.



I suspect that the button does not actually run the same commands as the other methods, but I couldn't find how to set it.



Update: This seems to be machine-specific. I have another PC, with very similar setup (same Xubuntu version and hibernation configuration - from here). On the other PC, it works correctly, but for the machine in question (it's a laptop), it still does not.



Update 2: I've tried to restart Plymouth upon resume (this is a solution to similar issues I've found), but it didn't help.







xubuntu power-management 18.04 systemd hibernate






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 15 '18 at 19:26







matan129

















asked May 12 '18 at 14:01









matan129matan129

566




566












  • It should run the same commands via logind's bus methods. Did you make your service Type=oneshot? No idea why that should matter, though.

    – intelfx
    May 12 '18 at 17:50












  • Yes, it is oneshot. Just to clarify, sudo systemctl hibernate works as expected (no freezing at login or anything). Only from the XFCE powr dialog, the issue appears.

    – matan129
    May 12 '18 at 19:03











  • Would be creating a .desktop file on your desktop be a suitable solution?

    – Fabby
    May 17 '18 at 19:56







  • 1





    @Fabby It's not a bad idea, but I want to specifically make the hibernate button on the power menu work. So.. no.

    – matan129
    May 17 '18 at 21:26











  • Give some comments on the laptop model and hardware, so we can see if there are any compatibility issues.

    – Leo
    May 21 '18 at 23:51

















  • It should run the same commands via logind's bus methods. Did you make your service Type=oneshot? No idea why that should matter, though.

    – intelfx
    May 12 '18 at 17:50












  • Yes, it is oneshot. Just to clarify, sudo systemctl hibernate works as expected (no freezing at login or anything). Only from the XFCE powr dialog, the issue appears.

    – matan129
    May 12 '18 at 19:03











  • Would be creating a .desktop file on your desktop be a suitable solution?

    – Fabby
    May 17 '18 at 19:56







  • 1





    @Fabby It's not a bad idea, but I want to specifically make the hibernate button on the power menu work. So.. no.

    – matan129
    May 17 '18 at 21:26











  • Give some comments on the laptop model and hardware, so we can see if there are any compatibility issues.

    – Leo
    May 21 '18 at 23:51
















It should run the same commands via logind's bus methods. Did you make your service Type=oneshot? No idea why that should matter, though.

– intelfx
May 12 '18 at 17:50






It should run the same commands via logind's bus methods. Did you make your service Type=oneshot? No idea why that should matter, though.

– intelfx
May 12 '18 at 17:50














Yes, it is oneshot. Just to clarify, sudo systemctl hibernate works as expected (no freezing at login or anything). Only from the XFCE powr dialog, the issue appears.

– matan129
May 12 '18 at 19:03





Yes, it is oneshot. Just to clarify, sudo systemctl hibernate works as expected (no freezing at login or anything). Only from the XFCE powr dialog, the issue appears.

– matan129
May 12 '18 at 19:03













Would be creating a .desktop file on your desktop be a suitable solution?

– Fabby
May 17 '18 at 19:56






Would be creating a .desktop file on your desktop be a suitable solution?

– Fabby
May 17 '18 at 19:56





1




1





@Fabby It's not a bad idea, but I want to specifically make the hibernate button on the power menu work. So.. no.

– matan129
May 17 '18 at 21:26





@Fabby It's not a bad idea, but I want to specifically make the hibernate button on the power menu work. So.. no.

– matan129
May 17 '18 at 21:26













Give some comments on the laptop model and hardware, so we can see if there are any compatibility issues.

– Leo
May 21 '18 at 23:51





Give some comments on the laptop model and hardware, so we can see if there are any compatibility issues.

– Leo
May 21 '18 at 23:51










1 Answer
1






active

oldest

votes


















0














Perhaps you forgot (like me) to specify the resume & resume_offset Linux boot parameters? Without the resume_offset I had nearly the same problem: black screen on "s2disk: Returned to userspace" message.



I've written here a full answer to be able to resume from a swap file.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035345%2fs2disk-works-but-hibernation-from-menu-gets-stuck-afer-login%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Perhaps you forgot (like me) to specify the resume & resume_offset Linux boot parameters? Without the resume_offset I had nearly the same problem: black screen on "s2disk: Returned to userspace" message.



    I've written here a full answer to be able to resume from a swap file.






    share|improve this answer



























      0














      Perhaps you forgot (like me) to specify the resume & resume_offset Linux boot parameters? Without the resume_offset I had nearly the same problem: black screen on "s2disk: Returned to userspace" message.



      I've written here a full answer to be able to resume from a swap file.






      share|improve this answer

























        0












        0








        0







        Perhaps you forgot (like me) to specify the resume & resume_offset Linux boot parameters? Without the resume_offset I had nearly the same problem: black screen on "s2disk: Returned to userspace" message.



        I've written here a full answer to be able to resume from a swap file.






        share|improve this answer













        Perhaps you forgot (like me) to specify the resume & resume_offset Linux boot parameters? Without the resume_offset I had nearly the same problem: black screen on "s2disk: Returned to userspace" message.



        I've written here a full answer to be able to resume from a swap file.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        Anthony O.Anthony O.

        6392715




        6392715



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035345%2fs2disk-works-but-hibernation-from-menu-gets-stuck-afer-login%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?