Win 11 closes my session overnight despite sleep settings set to "never"


Jose Hidalgo

Member
Local time
6:17 AM
Posts
81
OS
Windows 11
Hi everybody. I have a desktop PC.

Here are my current power and screen saver settings (in french, but I'm sure you can understand ;-)):

2024.02.14 - 12.38.58.png

2024.02.14 - 12.41.01.png

As you can see, after 6 minutes idling, the screen saver kicks in, without ever leaving the session.
After 15 minutes the screen turns off. But the computer supposedly never goes to sleep.

At least that's what I thought. Yesterday I left it on for the night, and today I was surprised to see that my whole session had been closed! I was directly at the logon screen. after entering my password, my session opened again: all my startup apps had to load again, and Win 11 opened again both my browsers, which I had left open on purpose. But Win 11 didn't even open them well: when I left for the night they both were fullscreen (but minimized in the taskbar) and Win 11 opened them in windowed mode (so I had to click on the enlarge window button for each of them).

It all was quite annoying, and I'd like to prevent this from happening again if possible.
So how can I make sure that Win 11 never leaves the current session without me explicitly telling it to do so?

Thanks in advance! :-)
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
Have you configured never to sleep state at your chosen power plan mode from Power options, make sure battery and power cable connections are set to never.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Please explain how to reach those options you talk about. I thought my screenshots were all possible options. Thank you.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
From "Control Panel --> Power Options" select the power plan you configured for your computer and set the Sleep to Never.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
A screenshot of power configuration would be helpful. English helps too
From cmd prompt as admin powercfg -a
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3593
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
From "Control Panel --> Power Options" select the power plan you configured for your computer and set the Sleep to Never.
That's exactly what my first screenshot is about.
"Mettre l'ordinateur en veille" means "Set the computer to sleep" and "Jamais" means "Never".

A screenshot of power configuration would be helpful. English helps too
From cmd prompt as admin powercfg -a
There you go (translation below):

2024.02.14 - 19.41.03.png

Translation :
  • S3 and hibernation are supported.
  • S0, S1 and S2 are not supported.
  • Hybrid sleep is not supported.
  • Fast Startup is disabled.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
Check to see if you have lated UEFI bios.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3593
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
I have latest UEFI BIOS : ASUS v2214 for my B650M motherboard.

Tonight I went out. Left my PC at 21:20, came back at 0:50. That makes 3h30.
I pressed Esc and I went straight into my session, everything was OK.

So whatever happened last night, happened after 3h30 of idle time apparently.
I'm going to try tonight and see what happens tomorrow morning.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
I have latest UEFI BIOS : ASUS v2214 for my B650M motherboard.

Tonight I went out. Left my PC at 21:20, came back at 0:50. That makes 3h30.
I pressed Esc and I went straight into my session, everything was OK.

So whatever happened last night, happened after 3h30 of idle time apparently.
I'm going to try tonight and see what happens tomorrow morning.
Take a look at the Windows Event Viewer, navigate to Windows Logs > System. Locate the time period just prior to when you brought the system back up. Check to see if there is any event indicating a problem. What I would expect most likely to find is an event possibly indicating that the system lost power unexpectedly.

Image1.jpg
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
I think I may have found what just happened.
Turns out that during the night, Windows tried to perform some system updates.

2024.02.15 - 01.38.08.png

Could it be that one of the updates required a reboot?
But if that was the case, how come my session was restored with open browsers? Usually after a reboot nothing is open.

Now I have disabled updates for a few weeks. We'll see if the issue happens again.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
LOL. Yeah, that makes perfect sense. Yesterday was patch Tuesday. The browser can automatically re-launch with tabs you had open previously restored. It's a feature :-). Even things like notepad can do that now.

Let me see if I can grab some details for you. Back in a few minutes...
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Okay, here are few settings. "Automatically save my restartable apps and restart them when I sign back in" is one of them. Not all apps are restartable, but browsers like Edge are one of them.

Also, the setting "Use my sign-in info to automatically finish setting up after an update" is an interesting one. The idea is that after rebooting from installing updates, this setting will cause Windows to sign you in with a special token, then instantly lock the screen. So, it would behave exactly the same you as you rebooting, signing in, then locking the screen. As a result, you are actually logged in at that point. This is why you would see the lock screen displayed at this point in time.

Image1.jpg

Also, as I noted earlier, Notepad is another example of a restartable app. In addition, look for this option in Notepad settings:

Image2.jpg

Just be aware that even without this setting, if memory serves correctly, I believe that since it is a restartable app, it can still maintain what you have across a reboot.

This can actually be extremely helpful. I often run with a dozen or more browser tabs open. I love that I can reboot my system and have all of them open even after a reboot. Also, if I have some notes jotted down in Notepad, I won't lose those.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Thank you! Wow. Windows has become so complex, there are settings everywhere! 😅

This morning I found my PC in a normal state, just like I left it. So I guess all this was due to Windows Update.
Sadly Microsoft made updates mandatory ("it's for the greater good"... lol). So for users to swallow the pill without complaining too much, they also created such sign-in options, so that users could at least find a part of their open apps when they came back.

Anyway, mystery solved I guess.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers

Latest Support Threads

Back
Top Bottom