Updates after fedora shuts down

I have been running Fedora 41 on my XPS laptop. One problem I have had is related to the following behaviour: sometimes when I shutdown my laptop the screen goes black and then restarts again, prompting me for my password to decrypt the disk so that fedora can then install some vital updates.

This is a problem because at the point that the screen goes black, I assume it is shut down, close the laptop, unplug it, and then put it in my bag where it maybe stays for several days before I open it again. And then it won’t boot up because the battery is dead.

Or at least, I think that is the explanation for what was happening. I repeatedly discovered that my laptop wouldn’t boot up without plugging into a power source and letting it recharge.

Is there some other way to change this behavior? Have the updates get installed when I actually want to boot up the laptop? Is there also some way to have the laptop automatically shut down when it has been asleep for too long? (Maybe this also happened because I didn’t even shut down the laptop.)

What is your desktop environment? GNOME (Workstation) or KDE?

      .;cccccccccccccccccccccc;.          OS: Fedora Linux 41 (Workstation Edition) x86_64
    .:cccccccccccccccccccccccccc:.        Host: XPS 9315
  .;ccccccccccccc;.:dddl:.;ccccccc;.      Kernel: Linux 6.13.7-200.fc41.x86_64
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.     Uptime: 5 mins
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:.    Packages: 2797 (rpm), 13 (flatpak), 9 (snap)
,cccccccccccccc;MMM.;cc;;WW:;cccccccc,    Shell: bash 5.2.32
:cccccccccccccc;MMM.;cccccccccccccccc:    Display (SHP1548): 1920x1200 @ 60 Hz in 13" [Built-in]
:ccccccc;oxOOOo;MMM000k.;cccccccccccc:    DE: GNOME 47.4
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc;    WM: Mutter (Wayland)
ccccc;XMO';cccc;MMM.;cccccccccccccccc'    WM Theme: Breeze
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;     Theme: Breeze [GTK2/3/4]
ccccc;0MNc.ccc.xMMd;ccccccccccccccc;      Icons: breeze [GTK2/3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:,       Font: Noto Sans (10pt) [GTK2/3/4]
cccccccc;.:odl:.;cccccccccccccc:,.        Cursor: breeze (24px)
ccccccccccccccccccccccccccccc:'.          Terminal: GNOME Terminal 3.54.0
:ccccccccccccccccccccccc:;,..             Terminal Font: Source Code Pro (10pt)
 ':cccccccccccccccc::;,.                  CPU: 12th Gen Intel(R) Core(TM) i7-1250U (12) @ 4.70 GHz
                                          GPU: Intel Iris Xe Graphics @ 0.95 GHz [Integrated]
                                          Memory: 3.80 GiB / 30.96 GiB (12%)
                                          Swap: 0 B / 8.00 GiB (0%)
                                          Disk (/): 28.79 GiB / 952.27 GiB (3%) - btrfs

Does this behavior depend on the desktop environment?

The behaviour could depend on the desktop, because maybe you have automatic updates enabled via say Gnome Software. If so, then best to disable automatic updates.

I would recommend updating via command line, once every week or two,