gnome-session-quit --power-off option ignored

Bug #1819920 reported by Tero Gusto on 2019-03-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)

Bug Description

OS: Ubuntu 18.04

Command: gnome-session-quit --power-off
Expected behaviour: Power off dialogue, with "Power Off" selected
Actual behaviour: Power off dialogue, with "Cancel" selected

Daniel van Vugt (vanvugt) wrote :

Unfortunately this is the default power button behaviour.

Even though we have

  Settings > Power > When the Power Button is Pressed = Power Off

to gnome-shell "Power Off" just means to show the dialog.

This is confusing, and something I have complained about myself. But if you wait 60 seconds without selecting anything in the dialog then it will eventually power off. Just as you asked.

If you want an faster system power off then try: sudo poweroff

The Settings GUI option of "Power Off" is actually just an illusion presented by gnome-control-center. The actual list of options supported internally is:

  <enum id="org.gnome.settings-daemon.GsdPowerButtonActionType">
    <value nick="nothing" value="0"/>
    <value nick="suspend" value="1"/>
    <value nick="hibernate" value="2"/>
    <value nick="interactive" value="3"/>

So there is no "Power Off" option in gnome-shell in reality. What you are seeing is the "interactive" option.

For gnome-session-quit to offer the "--power-off" parameter sounds like a promise it can't keep. Gnome only supports the four options listed above.


  gnome-session-quit --power-off --no-prompt

still prompts the user :P

tags: added: bionic disco
Changed in gnome-session (Ubuntu):
status: New → Opinion
Daniel van Vugt (vanvugt) wrote :

That all said, it is a bug in gnome-session to represent that --power-off and --no-prompt should work at all.

Changed in gnome-session (Ubuntu):
status: Opinion → Confirmed
Sebastien Bacher (seb128) wrote :

Ideally should be reported upstream on

Changed in gnome-session (Ubuntu):
importance: Undecided → Low
Tero Gusto (tero-gusto) wrote :

Thank you @Daniel van Vugt for your thorough explanation and @Sebastien Bacher for suggestion of reporting at, I have created this issue:

Sebastien Bacher (seb128) wrote :


affects: gnome-session-shutdown → gnome-session
Changed in gnome-session:
importance: Undecided → Unknown
status: New → Unknown
Changed in gnome-session:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.