Bug 2009353 - power off request becomes a reboot whenever 'install pending software updates' is checked
Summary: power off request becomes a reboot whenever 'install pending software updates...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Müllner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-30 13:00 UTC by Chris Murphy
Modified: 2021-09-30 14:23 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-09-30 14:23:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris Murphy 2021-09-30 13:00:21 UTC
Description of problem:

Anytime I choose Power Off/Log Out -> Power Off, from the right-side UI drop-down menu, and the "Install Pending Software Updates" option is checked, the system reboots instead of shutting down.


Version-Release number of selected component (if applicable):
gnome-shell-41.0-1.fc35.x86_64

How reproducible:
2 for 2


Steps to Reproduce:
1. Upon software updates being available, either by notification or by noticing the "Install Pending Software Updates" option in a reboot dialog, try to shutdown using GNOME Shell's UI (Power Off)
2.
3.

Actual results:

System reboots.


Expected results:

System shuts down.

Additional info:

Comment 1 Michael Catanzaro 2021-09-30 13:23:46 UTC
When you select "Power Off" with "Install Pending Software Updates" the expected behavior is: system should reboot, install pending updates, and then shut down.

Whereas if you select "Reboot" with "Install Pending Software Updates" the expected behavior is: system should reboot, install pending updates, and then reboot again.

Comment 2 Chris Murphy 2021-09-30 13:32:23 UTC
>When you select "Power Off" with "Install Pending Software Updates" the expected behavior is: system should reboot, install pending updates, and then shut down.

It's a catch-22 because "install pending" is ambiguous when to install, before or after the requested shutdown. But in my case I was concerned and surprised because the laptop had less than 20% battery. While it's not a bug because it's working as designed, I'm not sure the design accounts for low battery situations where perhaps the default would be to detect that state, and have "install pending" unchecked by default. But yeah, that's a RFE...

Comment 3 Michael Catanzaro 2021-09-30 13:49:50 UTC
(In reply to Chris Murphy from comment #2)
> While it's not a bug
> because it's working as designed, I'm not sure the design accounts for low
> battery situations where perhaps the default would be to detect that state,
> and have "install pending" unchecked by default. But yeah, that's a RFE...

I actually implemented exactly that behavior. Are you sure GNOME considered you to be in low power state? Previously, it *always* told you to plug in when on battery power, but that was annoying rather than useful IMO. Now, once it displays a warning that you're on low power (you should get a desktop notification and the battery icon in the top-right should have a color warning indicator), then the "install updates" button should be unchecked and it should display a message telling you to plug in before installing updates.

So tbh I think your battery was just not low enough, and everything is probably working as designed.

Comment 4 Chris Murphy 2021-09-30 14:23:47 UTC
yep sounds like it, i'll reopen if i discover something different


Note You need to log in before you can comment on or make changes to this bug.