Windows 10 auto-logout on <5 minutes of inactivity

Have updated to windows 10 pro edition

In power options have sleep/turn off display - never when powered and 30/15 minutes when battery.

Computer is powered

Every time i go out for 1-2 minutes it allez dans login screen, broke all my opened ssh session etc.

Anyone have same? Any way fix it? Maybe there is somewhere logoff timeout option?

This is most likely happening due to a hidden power option called System unattended sleep timeout. On my machine it was set to 2 minutes, which was mighty annoying, as it would cause behavior described by OP (sleep, wake-up, login screen, Observateur d’événements saying: “The system is entering sleep; Sleep Reason: System Idle”). Vous devez enable this option in registry before being able to change it.

From [http://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/windows-10-keeps-going-into-sleep-after-1-minute](1):

  • Cliquez sur the windows icon

  • Type regedit

  • Faites un clic droit sur regedit icon, click Run en tant qu’administrateur

  • Allez dans HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0

  • Double-cliquez sur on Attributes

  • Enter number 2.

  • Allez dans Advanced power settings (cliquez sur Windows button, write power options, cliquez sur Options d’alimentation, in the selected plan cliquez sur the Change plan settings, cliquez sur the Change advanced power settings).

  • Cliquez sur the Change settings that are currently unavailable

  • Click Sleep, then System unattended sleep timeout, then change these settings from 2 Minutes to 20 par exemple.

This solved the issue for me.