Atlas-OS / Atlas

🚀 An open and lightweight modification to Windows, designed to optimize performance, privacy and usability.
https://atlasos.net
GNU General Public License v3.0
13.12k stars 511 forks source link

[BUG] - Lid action on a laptop always resets to "Do nothing" even when set to "Sleep" before #1141

Open Vybo opened 2 months ago

Vybo commented 2 months ago

Before continuing...

Description

I use Atlas 0.4.0 on a Laptop. I would expect that when I set the closing lid action to "Sleep", it would stay that way. However, after each restart (or even boot from hibernation), the action is reset to "Do nothing".

I have not customized anything besides the default Atlas setup. Power savings are set to default/enabled.

Steps to reproduce

  1. Set the close lid action to "Sleep"
  2. Reboot Windows
  3. Check what the closing lid action is set to ("Do nothing" instead of "Sleep")

image

Expected behavior

I would expect the setting to retain the set value.

Actual behavior

The setting loses the set value after each Windows reboot.

Atlas Edition

Atlas for Windows 11 23H2

Desktop information

Lenovo Thinkpad T15g Gen 1

Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 32 GB RAM Mobile RTX2070S Max-Q (31.0.15.3859; 538.59); Intel UHD (30.0.101.1122) OS on Hynix 512GB SSD, Secondary SSD: WD SN580 2 TB

Additional content

No response

ghost commented 3 weeks ago

Its Atlas @he3als I have the same issue

@Vybo try restoring the powersaving settings:

https://[raw.githubusercontent.com/Atlas-OS/Atlas/main/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1](https://raw.githubusercontent.com/Atlas-OS/Atlas/main/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1)

Vybo commented 3 weeks ago

Its Atlas @he3als I have the same issue

@Vybo try restoring the powersaving settings:

https://[raw.githubusercontent.com/Atlas-OS/Atlas/main/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1](https://raw.githubusercontent.com/Atlas-OS/Atlas/main/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1)

@Destroyarr Thanks. Did it help you? I have Power saving set to default/enabled as stated in the initial issue and I have never run the other option. Should I just run this anyway?

ghost commented 3 weeks ago

@Vybo Yes Save to Desktop, run PowerShell as admin and run that specific .ps1 file. DefaultPowerSaving.ps1

I just did it just now, and in Settings - at the bottom, I have Lid closing options as well as I have power scheme control.

The laptop is running cooler and quieter now.

Ideally I will find out how to close the lid and have the screen turn off without the laptop going to sleep. I suspect I will have to use PowerShell and regedit for that.

The build I'm using is the 24H2 26100.1591 however I will switch to the Beta channel as I suspect that one has more laptop-y optimizations.

ghost commented 2 weeks ago

@Vybo I lied it didnt work sorry I was convinced it would revert but something was not reverted and now I don't have the Sleep function of the laptop. And lid-closing is not detected either.