Hi everyone,
I had the same bug and fixed it by installing the packages from 
"resolute-proposed".


Please find below my report:

**Independent verification of gnome-session 50.1-0ubuntu0.2 – PASS**

Tested on 1 December 2026 on a physical machine running Ubuntu Desktop
26.04.1 LTS.

**Test environment:**

- AMD Ryzen 5 3600, amd64
- Kernel: 7.0.0-44-generic
- systemd: 259.9-0ubuntu0.1
- GNOME Shell: 50.1-0ubuntu1.5
- Ptyxis: 50.1-1ubuntu2
- Secure Boot enabled
- LUKS2 with TPM2-assisted automatic unlocking using Clevis and Dracut
- OpenSSH with socket activation

**Before the update:**

With gnome-session 50.1-0ubuntu0.1, the issue was reproducible using
`top` and `sudo sleep 30` in Ptyxis.

Both commands triggered a GNOME logout inhibitor, resulting in the
following logind inhibitor:

```
WHAT: shutdown
WHY: user session inhibited
MODE: block
```

The inhibitor disappeared after the foreground process terminated.

Administrative reboot requests, including `sudo systemctl reboot
--firmware-setup`, had previously failed.

**Update procedure:**

The following packages were selectively upgraded from resolute-proposed
to version 50.1-0ubuntu0.2:

- gnome-session-bin
- gnome-session-common
- ubuntu-session

No additional packages were installed, upgraded or removed.

After logging out and back in, I verified that the running gnome-
session-service executable matched the newly installed executable using
SHA-256 checksums.

**Results after the update:**

With `top` running in Ptyxis, the GNOME logout inhibitor remained
active, but the corresponding logind inhibitor changed from `block` to
`block-weak`.

The D-Bus properties confirmed the expected behaviour:

```
BlockInhibited:
handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

BlockWeakInhibited:
shutdown

DelayInhibited:
shutdown:sleep
```

Both Ptyxis settings remained enabled:

```
inhibit-logout=true
prompt-on-close=true
```

**Functional verification:**

1. Administrative reboot from a local Ptyxis terminal with an active logout 
inhibitor: PASS.
2. Administrative reboot over SSH with an active local GNOME session and logout 
inhibitor: PASS.
3. Reboot using the GNOME graphical system menu: PASS.
4. Reboot directly into UEFI using `sudo systemctl reboot --firmware-setup`: 
PASS.
5. Automatic TPM2-assisted LUKS unlocking: PASS.
6. SSH availability after reboot without a local graphical login: PASS.

All four reboot operations were verified using changed kernel boot IDs.
No inhibitor-bypassing or force options were used.

The unattended-upgrades shutdown delay inhibitor remained active. No
modifications to Polkit, systemd-logind or Ptyxis settings were
necessary.

The graphical reboot dialog continued to warn about other logged-in
sessions, although no separate warning about the running terminal
process was observed.

No failed systemd units or operational regressions were observed within
the tested scope.

**Conclusion:**

The proposed package successfully resolves the reported administrative
reboot issue on this physical amd64 system.

This verification used `top` instead of `vi` and included additional
local, remote and firmware reboot scenarios.

Thank you for providing the fix! :-)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/2173713

Title:
  [SRU] gnome-session: logout inhibitor is "block", so logind rejects
  reboot/poweroff

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2173713/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to