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.
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 realize 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:
and than install a text editor like gedit, and edit a file:
and paste these lines at the end of the file:
and use keys Ctrl+S to save it.
The power button should suspend your laptop now.
This doesn't quite solve anything for Lubuntu 18.04, but LXQt has new settings for power button in Power Management in lxqt-powermanagement version 0.16.0. Lubuntu 18.04 has version 0.12.0, the current LTS Lubuntu 20.04 has vaersion 0.14.1 and 20.10 uses version 0.15.0.
I hope that the new version will soon be included in Lubuntu, but until then there are some instructions how to build and install the latest version on the projects GitHub page.
This is just to note, that the required setting may some day be readily available in Lubuntu, without the need to install gnome-settings-daemon.