Lubuntu 18.10 LXQt power button actions
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
add a comment |
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
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 islxqt-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
add a comment |
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
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
lubuntu power-management settings button lxqt
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 islxqt-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
add a comment |
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 islxqt-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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
edited Jan 30 at 23:08
answered Jan 30 at 22:47
leeuwtjeleeuwtje
467
467
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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