Lubuntu 18.10 LXQt power button actions












1















My system shuts down when I push te power button instead of suspending like most laptops.
There are many complex forum solutions for that on the net, but I like to solve it with this command:



"gsettings set org.gnome.settings-daemon.plugins.power button-power suspend;"



The only problem is lubuntu uses LXQt now, so the result is: No such schema “org.gnome.settings-daemon.plugins.power”...



My question, what would be the equilavent gsettings command for lubuntu 18.10?
Thanks for any idea's offered.










share|improve this question

























  • Do you want to use only the power button to suspend? Why not just use the suspend option under "Leave"? Wouldn't that achieve the same purpose? In any case, the command that is run when you choose the suspend option from the menu is lxqt-leave --suspend. You could bind that to an convenient keyboard shortcut such as meta+L (where meta is the Super or Windows key). After logging out and logging back in (just to be sure the command is registered with the system), pressing Meta+L would bring up a small dialog window asking if you really want to suspend.

    – DK Bose
    Dec 3 '18 at 12:32











  • Thanks DK Bose, just I use windows on the same laptop somtimes, a press on the power button in windows will suspend my laptop. That's the problem, I'm used to it for a long time. Also in elementary os it works the same which is a daughter of ubuntu. Now, when I don't think about it, I press the switch button and my system halts when I don't want it......

    – leeuwtje
    Dec 4 '18 at 18:52
















1















My system shuts down when I push te power button instead of suspending like most laptops.
There are many complex forum solutions for that on the net, but I like to solve it with this command:



"gsettings set org.gnome.settings-daemon.plugins.power button-power suspend;"



The only problem is lubuntu uses LXQt now, so the result is: No such schema “org.gnome.settings-daemon.plugins.power”...



My question, what would be the equilavent gsettings command for lubuntu 18.10?
Thanks for any idea's offered.










share|improve this question

























  • Do you want to use only the power button to suspend? Why not just use the suspend option under "Leave"? Wouldn't that achieve the same purpose? In any case, the command that is run when you choose the suspend option from the menu is lxqt-leave --suspend. You could bind that to an convenient keyboard shortcut such as meta+L (where meta is the Super or Windows key). After logging out and logging back in (just to be sure the command is registered with the system), pressing Meta+L would bring up a small dialog window asking if you really want to suspend.

    – DK Bose
    Dec 3 '18 at 12:32











  • Thanks DK Bose, just I use windows on the same laptop somtimes, a press on the power button in windows will suspend my laptop. That's the problem, I'm used to it for a long time. Also in elementary os it works the same which is a daughter of ubuntu. Now, when I don't think about it, I press the switch button and my system halts when I don't want it......

    – leeuwtje
    Dec 4 '18 at 18:52














1












1








1








My system shuts down when I push te power button instead of suspending like most laptops.
There are many complex forum solutions for that on the net, but I like to solve it with this command:



"gsettings set org.gnome.settings-daemon.plugins.power button-power suspend;"



The only problem is lubuntu uses LXQt now, so the result is: No such schema “org.gnome.settings-daemon.plugins.power”...



My question, what would be the equilavent gsettings command for lubuntu 18.10?
Thanks for any idea's offered.










share|improve this question
















My system shuts down when I push te power button instead of suspending like most laptops.
There are many complex forum solutions for that on the net, but I like to solve it with this command:



"gsettings set org.gnome.settings-daemon.plugins.power button-power suspend;"



The only problem is lubuntu uses LXQt now, so the result is: No such schema “org.gnome.settings-daemon.plugins.power”...



My question, what would be the equilavent gsettings command for lubuntu 18.10?
Thanks for any idea's offered.







lubuntu power-management settings button lxqt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 3 '18 at 11:06







leeuwtje

















asked Dec 3 '18 at 11:00









leeuwtjeleeuwtje

467




467













  • Do you want to use only the power button to suspend? Why not just use the suspend option under "Leave"? Wouldn't that achieve the same purpose? In any case, the command that is run when you choose the suspend option from the menu is lxqt-leave --suspend. You could bind that to an convenient keyboard shortcut such as meta+L (where meta is the Super or Windows key). After logging out and logging back in (just to be sure the command is registered with the system), pressing Meta+L would bring up a small dialog window asking if you really want to suspend.

    – DK Bose
    Dec 3 '18 at 12:32











  • Thanks DK Bose, just I use windows on the same laptop somtimes, a press on the power button in windows will suspend my laptop. That's the problem, I'm used to it for a long time. Also in elementary os it works the same which is a daughter of ubuntu. Now, when I don't think about it, I press the switch button and my system halts when I don't want it......

    – leeuwtje
    Dec 4 '18 at 18:52



















  • Do you want to use only the power button to suspend? Why not just use the suspend option under "Leave"? Wouldn't that achieve the same purpose? In any case, the command that is run when you choose the suspend option from the menu is lxqt-leave --suspend. You could bind that to an convenient keyboard shortcut such as meta+L (where meta is the Super or Windows key). After logging out and logging back in (just to be sure the command is registered with the system), pressing Meta+L would bring up a small dialog window asking if you really want to suspend.

    – DK Bose
    Dec 3 '18 at 12:32











  • Thanks DK Bose, just I use windows on the same laptop somtimes, a press on the power button in windows will suspend my laptop. That's the problem, I'm used to it for a long time. Also in elementary os it works the same which is a daughter of ubuntu. Now, when I don't think about it, I press the switch button and my system halts when I don't want it......

    – leeuwtje
    Dec 4 '18 at 18:52

















Do you want to use only the power button to suspend? Why not just use the suspend option under "Leave"? Wouldn't that achieve the same purpose? In any case, the command that is run when you choose the suspend option from the menu is lxqt-leave --suspend. You could bind that to an convenient keyboard shortcut such as meta+L (where meta is the Super or Windows key). After logging out and logging back in (just to be sure the command is registered with the system), pressing Meta+L would bring up a small dialog window asking if you really want to suspend.

– DK Bose
Dec 3 '18 at 12:32





Do you want to use only the power button to suspend? Why not just use the suspend option under "Leave"? Wouldn't that achieve the same purpose? In any case, the command that is run when you choose the suspend option from the menu is lxqt-leave --suspend. You could bind that to an convenient keyboard shortcut such as meta+L (where meta is the Super or Windows key). After logging out and logging back in (just to be sure the command is registered with the system), pressing Meta+L would bring up a small dialog window asking if you really want to suspend.

– DK Bose
Dec 3 '18 at 12:32













Thanks DK Bose, just I use windows on the same laptop somtimes, a press on the power button in windows will suspend my laptop. That's the problem, I'm used to it for a long time. Also in elementary os it works the same which is a daughter of ubuntu. Now, when I don't think about it, I press the switch button and my system halts when I don't want it......

– leeuwtje
Dec 4 '18 at 18:52





Thanks DK Bose, just I use windows on the same laptop somtimes, a press on the power button in windows will suspend my laptop. That's the problem, I'm used to it for a long time. Also in elementary os it works the same which is a daughter of ubuntu. Now, when I don't think about it, I press the switch button and my system halts when I don't want it......

– leeuwtje
Dec 4 '18 at 18:52










1 Answer
1






active

oldest

votes


















2














Right...



Well thanks to all support I found the solution in the end for lubuntu LXQt 18.10
Finally I got rid of my laptop shutting down instead of suspending after pushing the power button...



I realise a power button logically should switch off power, but since the last 15 of years or so, people are used to have their laptops suspending by pushing it.



For others that have the same annoying thing and getting no answer for this simple question try this:



open terminal and run this command:




gsettings set org.gnome.settings-daemon.plugins.power power-button-action suspend




and than install a text editor like gedit, and edit a file:




sudo apt install gedit -y;



sudo gedit /etc/systemd/logind.conf;




and paste these lines at the end of the file:




HandlePowerKey=suspend
PowerKeyIgnoreInhibited=yes




and use keys ctrl+s to save it.



-restart your laptop.



The power button should suspend your laptop now.






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%2f1098113%2flubuntu-18-10-lxqt-power-button-actions%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









    2














    Right...



    Well thanks to all support I found the solution in the end for lubuntu LXQt 18.10
    Finally I got rid of my laptop shutting down instead of suspending after pushing the power button...



    I realise a power button logically should switch off power, but since the last 15 of years or so, people are used to have their laptops suspending by pushing it.



    For others that have the same annoying thing and getting no answer for this simple question try this:



    open terminal and run this command:




    gsettings set org.gnome.settings-daemon.plugins.power power-button-action suspend




    and than install a text editor like gedit, and edit a file:




    sudo apt install gedit -y;



    sudo gedit /etc/systemd/logind.conf;




    and paste these lines at the end of the file:




    HandlePowerKey=suspend
    PowerKeyIgnoreInhibited=yes




    and use keys ctrl+s to save it.



    -restart your laptop.



    The power button should suspend your laptop now.






    share|improve this answer






























      2














      Right...



      Well thanks to all support I found the solution in the end for lubuntu LXQt 18.10
      Finally I got rid of my laptop shutting down instead of suspending after pushing the power button...



      I realise a power button logically should switch off power, but since the last 15 of years or so, people are used to have their laptops suspending by pushing it.



      For others that have the same annoying thing and getting no answer for this simple question try this:



      open terminal and run this command:




      gsettings set org.gnome.settings-daemon.plugins.power power-button-action suspend




      and than install a text editor like gedit, and edit a file:




      sudo apt install gedit -y;



      sudo gedit /etc/systemd/logind.conf;




      and paste these lines at the end of the file:




      HandlePowerKey=suspend
      PowerKeyIgnoreInhibited=yes




      and use keys ctrl+s to save it.



      -restart your laptop.



      The power button should suspend your laptop now.






      share|improve this answer




























        2












        2








        2







        Right...



        Well thanks to all support I found the solution in the end for lubuntu LXQt 18.10
        Finally I got rid of my laptop shutting down instead of suspending after pushing the power button...



        I realise a power button logically should switch off power, but since the last 15 of years or so, people are used to have their laptops suspending by pushing it.



        For others that have the same annoying thing and getting no answer for this simple question try this:



        open terminal and run this command:




        gsettings set org.gnome.settings-daemon.plugins.power power-button-action suspend




        and than install a text editor like gedit, and edit a file:




        sudo apt install gedit -y;



        sudo gedit /etc/systemd/logind.conf;




        and paste these lines at the end of the file:




        HandlePowerKey=suspend
        PowerKeyIgnoreInhibited=yes




        and use keys ctrl+s to save it.



        -restart your laptop.



        The power button should suspend your laptop now.






        share|improve this answer















        Right...



        Well thanks to all support I found the solution in the end for lubuntu LXQt 18.10
        Finally I got rid of my laptop shutting down instead of suspending after pushing the power button...



        I realise a power button logically should switch off power, but since the last 15 of years or so, people are used to have their laptops suspending by pushing it.



        For others that have the same annoying thing and getting no answer for this simple question try this:



        open terminal and run this command:




        gsettings set org.gnome.settings-daemon.plugins.power power-button-action suspend




        and than install a text editor like gedit, and edit a file:




        sudo apt install gedit -y;



        sudo gedit /etc/systemd/logind.conf;




        and paste these lines at the end of the file:




        HandlePowerKey=suspend
        PowerKeyIgnoreInhibited=yes




        and use keys ctrl+s to save it.



        -restart your laptop.



        The power button should suspend your laptop now.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 30 at 23:08

























        answered Jan 30 at 22:47









        leeuwtjeleeuwtje

        467




        467






























            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%2f1098113%2flubuntu-18-10-lxqt-power-button-actions%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

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?