Resume from Suspend closes applications












0














Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.



This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?










share|improve this question



























    0














    Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.



    This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?










    share|improve this question

























      0












      0








      0







      Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.



      This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?










      share|improve this question













      Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.



      This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?







      suspend laptop power-management






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 3 '15 at 12:04









      d. Fowler

      11




      11






















          2 Answers
          2






          active

          oldest

          votes


















          2














          Create the file /etc/acpi/local/lid.sh.post and add the following to it:



          #!/bin/bash
          grep -q closed /proc/acpi/button/lid/*/state
          if [ $? = 0 ]
          then
          /usr/sbin/pm-suspend
          fi


          Make the file executable with chmod +x lid.sh.post and your problem should be solved.






          share|improve this answer





















          • @d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
            – TellMeWhy
            Nov 3 '15 at 13:47





















          0














          I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.



          I was able to resolve it by updating my kernel (Ubuntu):




          sudo apt-get update
          sudo apt-get upgrade linux-generic



          For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/






          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%2f693394%2fresume-from-suspend-closes-applications%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Create the file /etc/acpi/local/lid.sh.post and add the following to it:



            #!/bin/bash
            grep -q closed /proc/acpi/button/lid/*/state
            if [ $? = 0 ]
            then
            /usr/sbin/pm-suspend
            fi


            Make the file executable with chmod +x lid.sh.post and your problem should be solved.






            share|improve this answer





















            • @d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
              – TellMeWhy
              Nov 3 '15 at 13:47


















            2














            Create the file /etc/acpi/local/lid.sh.post and add the following to it:



            #!/bin/bash
            grep -q closed /proc/acpi/button/lid/*/state
            if [ $? = 0 ]
            then
            /usr/sbin/pm-suspend
            fi


            Make the file executable with chmod +x lid.sh.post and your problem should be solved.






            share|improve this answer





















            • @d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
              – TellMeWhy
              Nov 3 '15 at 13:47
















            2












            2








            2






            Create the file /etc/acpi/local/lid.sh.post and add the following to it:



            #!/bin/bash
            grep -q closed /proc/acpi/button/lid/*/state
            if [ $? = 0 ]
            then
            /usr/sbin/pm-suspend
            fi


            Make the file executable with chmod +x lid.sh.post and your problem should be solved.






            share|improve this answer












            Create the file /etc/acpi/local/lid.sh.post and add the following to it:



            #!/bin/bash
            grep -q closed /proc/acpi/button/lid/*/state
            if [ $? = 0 ]
            then
            /usr/sbin/pm-suspend
            fi


            Make the file executable with chmod +x lid.sh.post and your problem should be solved.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 3 '15 at 12:17









            TellMeWhy

            7,8211766114




            7,8211766114












            • @d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
              – TellMeWhy
              Nov 3 '15 at 13:47




















            • @d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
              – TellMeWhy
              Nov 3 '15 at 13:47


















            @d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
            – TellMeWhy
            Nov 3 '15 at 13:47






            @d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
            – TellMeWhy
            Nov 3 '15 at 13:47















            0














            I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.



            I was able to resolve it by updating my kernel (Ubuntu):




            sudo apt-get update
            sudo apt-get upgrade linux-generic



            For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/






            share|improve this answer




























              0














              I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.



              I was able to resolve it by updating my kernel (Ubuntu):




              sudo apt-get update
              sudo apt-get upgrade linux-generic



              For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/






              share|improve this answer


























                0












                0








                0






                I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.



                I was able to resolve it by updating my kernel (Ubuntu):




                sudo apt-get update
                sudo apt-get upgrade linux-generic



                For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/






                share|improve this answer














                I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.



                I was able to resolve it by updating my kernel (Ubuntu):




                sudo apt-get update
                sudo apt-get upgrade linux-generic



                For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 21 '18 at 16:37

























                answered Dec 18 '18 at 15:38









                mepler

                1013




                1013






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f693394%2fresume-from-suspend-closes-applications%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

                    Mouse cursor on multiple screens with different PPI

                    Agildo Ribeiro

                    Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”