How to modify event that occurs when a laptop is closed?












1















I have Acer Aspire laptop with Kubuntu 16.04 installed on it. (KDE dekstop).



Currently when I close laptop it goes into weird suspend mode. It is not possible to wake it up. Only way is to force reset.



I am looking for any way to modify event that occurs when a laptop is closed. Either via GUI or terminal.










share|improve this question





























    1















    I have Acer Aspire laptop with Kubuntu 16.04 installed on it. (KDE dekstop).



    Currently when I close laptop it goes into weird suspend mode. It is not possible to wake it up. Only way is to force reset.



    I am looking for any way to modify event that occurs when a laptop is closed. Either via GUI or terminal.










    share|improve this question



























      1












      1








      1


      1






      I have Acer Aspire laptop with Kubuntu 16.04 installed on it. (KDE dekstop).



      Currently when I close laptop it goes into weird suspend mode. It is not possible to wake it up. Only way is to force reset.



      I am looking for any way to modify event that occurs when a laptop is closed. Either via GUI or terminal.










      share|improve this question
















      I have Acer Aspire laptop with Kubuntu 16.04 installed on it. (KDE dekstop).



      Currently when I close laptop it goes into weird suspend mode. It is not possible to wake it up. Only way is to force reset.



      I am looking for any way to modify event that occurs when a laptop is closed. Either via GUI or terminal.







      16.04 kubuntu suspend kde laptop






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 19 '16 at 12:45







      Kunok

















      asked Aug 19 '16 at 12:06









      KunokKunok

      2643625




      2643625






















          1 Answer
          1






          active

          oldest

          votes


















          1














          There are two GUI ways to achieve the desired result.



          Description




          1. Per Energy Saving tab: System Settings > Power Management > Energy Saving > On AC Power (or another tab) > Button Event Handling > When laptop lid closed, and choose desired action.

          2. Setting per KDE Activity: System Settings > Power Management > Activity Settings > Your chosen Activity name, choose radio-button Use separate settings (advanced users only) and select the desired action in Button Event Handling > When laptop lid closed.


          I would like to use Activity settings, because it allows to add more flexibility (of course, if you use different KDE Activities for different tasks).



          Screenshots



          Energy Saving tab
          Energy Saving tab



          Activity Settings
          Activity settings






          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%2f814180%2fhow-to-modify-event-that-occurs-when-a-laptop-is-closed%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









            1














            There are two GUI ways to achieve the desired result.



            Description




            1. Per Energy Saving tab: System Settings > Power Management > Energy Saving > On AC Power (or another tab) > Button Event Handling > When laptop lid closed, and choose desired action.

            2. Setting per KDE Activity: System Settings > Power Management > Activity Settings > Your chosen Activity name, choose radio-button Use separate settings (advanced users only) and select the desired action in Button Event Handling > When laptop lid closed.


            I would like to use Activity settings, because it allows to add more flexibility (of course, if you use different KDE Activities for different tasks).



            Screenshots



            Energy Saving tab
            Energy Saving tab



            Activity Settings
            Activity settings






            share|improve this answer






























              1














              There are two GUI ways to achieve the desired result.



              Description




              1. Per Energy Saving tab: System Settings > Power Management > Energy Saving > On AC Power (or another tab) > Button Event Handling > When laptop lid closed, and choose desired action.

              2. Setting per KDE Activity: System Settings > Power Management > Activity Settings > Your chosen Activity name, choose radio-button Use separate settings (advanced users only) and select the desired action in Button Event Handling > When laptop lid closed.


              I would like to use Activity settings, because it allows to add more flexibility (of course, if you use different KDE Activities for different tasks).



              Screenshots



              Energy Saving tab
              Energy Saving tab



              Activity Settings
              Activity settings






              share|improve this answer




























                1












                1








                1







                There are two GUI ways to achieve the desired result.



                Description




                1. Per Energy Saving tab: System Settings > Power Management > Energy Saving > On AC Power (or another tab) > Button Event Handling > When laptop lid closed, and choose desired action.

                2. Setting per KDE Activity: System Settings > Power Management > Activity Settings > Your chosen Activity name, choose radio-button Use separate settings (advanced users only) and select the desired action in Button Event Handling > When laptop lid closed.


                I would like to use Activity settings, because it allows to add more flexibility (of course, if you use different KDE Activities for different tasks).



                Screenshots



                Energy Saving tab
                Energy Saving tab



                Activity Settings
                Activity settings






                share|improve this answer















                There are two GUI ways to achieve the desired result.



                Description




                1. Per Energy Saving tab: System Settings > Power Management > Energy Saving > On AC Power (or another tab) > Button Event Handling > When laptop lid closed, and choose desired action.

                2. Setting per KDE Activity: System Settings > Power Management > Activity Settings > Your chosen Activity name, choose radio-button Use separate settings (advanced users only) and select the desired action in Button Event Handling > When laptop lid closed.


                I would like to use Activity settings, because it allows to add more flexibility (of course, if you use different KDE Activities for different tasks).



                Screenshots



                Energy Saving tab
                Energy Saving tab



                Activity Settings
                Activity settings







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 22 at 11:57









                karel

                59.2k13128150




                59.2k13128150










                answered Jan 22 at 11:31









                OdisseyRVOdisseyRV

                113




                113






























                    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%2f814180%2fhow-to-modify-event-that-occurs-when-a-laptop-is-closed%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

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕