-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow awake to keep device awake even if lid is closed. #16422
Comments
and xref #13785 |
Interesting - I will have to research and see if this is possible without messing with the power settings (or, maybe in this context we need to mess with the power settings). Last I checked this was only controlled by the power plan settings, but maybe things changed. |
So theoretically possible - that's good. Would also need to check if listening to events means that I can override power settings (i.e., can I actually keep the machine awake despite the lid being closed). Now to the real question - should Awake be handling this? My hunch is that this needs to be a very explicit opt-in and never the default, to prevent unintended battery drains or overheating of the machine (you wouldn't want the laptop to stay awake as you closed it and put it in the backpack). |
Maybe we could use the away mode. When away mode is enabled, any operation that would put the computer to sleep puts it in away mode instead. When away mode is activated, it turns off the display and mutes the audio, but the system will still be awake.
However, when away mode is enabled, other actions such as pressing the "sleep" button or choosing Power > Sleep in the Start menu will not put the system to sleep, either. |
Yeah, I assumed that was the only usage for Awake...to keep a laptop awake with the lid closed...I'm guilty of keeping my desktop powered on at all times I guess. I've closed the lid, expecting a file to download only to return to no progress. Would definitely be a good feature. |
@crutkas I would like to contribute to this issue if overriding closing lid is allowed (I believe this would cause confusion so I am asking with caution) This is how G-Helper implemented it. They have a configurable default when disengaged. I think this should be good enough |
Consolidating this issue in #34479. |
Description of the new feature / enhancement
On laptops (or other devices with lids) the awake module has one weird quirk: It does not handle closing of the rid. I believe it would be very helpful if the device could be forced to be awake even if the lid is closed (or an option that says so).
Scenario when this would be used?
When you close the lid, the device needn't sleep, it should instead respect your Awake configuration i.e if you set it to be awake indefinitely, closing the lid force the device to stay awake indefinitely.
As this can be energy consuming, an option can be provided that enables this feature if possible.
Supporting information
No response
The text was updated successfully, but these errors were encountered: