No option to set the action of the power button of a PC using LXQT

I only found the option based in idle time. I wanted to supend the computer when the power button be pressed.
Any idea?

  • Open /etc/systemd/logind.conf as root in a text editor, for example:
    sudo vim /etc/systemd/logind.conf

  • Uncomment (if commented) the HandlePowerKey option and add the action you want to it.

  • Save and quit

  • Reboot

That may not work with all the DEs as far as I know, but seems to be working in lxqt.

Exactly what kind of suspension do you want? Is there no suspend key on the keyboard?

1 Like

It workd. U are awesome. Thank you.

It’s my pleasure. :slight_smile: