Using Ubuntu 24.03LTS.
Is there any way to turn off my computer without doing four separate mouse “clicks”?
Using Ubuntu 24.03LTS.
Is there any way to turn off my computer without doing four separate mouse “clicks”?
Welcome to Ubuntu Discourse ![]()
Open a terminal with Ctrl+Alt+T and run this command:
systemctl poweroff
You could adjust the behavior of your power button in the settings to bring up the poweroff dialog (which automatically times out, you do not need to actually click it …) then just pressing power will turn off the system after the timeout …
Thanks. The “Power Button Behavior” in my settings is set to “Power Off.” Never the less, if I click the power button at the very upper right hand corner of my screen, it opens a window that contains multiple items . This window also contains another power button. If I click THAT power button, it brings up a “Power Off” dialog which includes the option “Power Off…” If I click THAT option it opens yet another Power Off dialog which invites me to either “Cancel” or actually “Power Off.” That is a lot of clicks just to turn my computer off – and I can’t just wait for the time-out because I have other equipment that needs to be turned off as well as the computer for safety reasons. That’s a lot of clicks (but better than opening a terminal and doing a “systemctl”)
I appreciate the reply. It looks like I will need to create my own one-click Power Off widget.
“Power Button Behavior” corresponds to the physical power button on your computer, not the “Power Off” button in the menu.
If you’ve set that, then just press your power button on your computer once and that should call the shutdown process.
If you want the ⏻ to initiate the “shutdown” command sequence, without need for confirmation, you can set that as follows:
As for modifying the “Switch Off” Panel App behaviour,
again to suppress the options pop-up, you can open the Ayatana Preferences menu and change the setting next to
I go into settings → keyboard → keyboard shortcuts → customs shortcuts → add custom shortcut. Select a key that you never use, on 104 key keyboard I use the “pause” button then assign the command that Rubi1200 recommends above “systemctl poweroff”.
This topic was automatically closed after 30 days. New replies are no longer allowed.