Skip to content

Disable window/energy_saving/keep_screen_on in ProjectSettings - #525

Open
addmix wants to merge 1 commit into
ShadowBlip:mainfrom
addmix:main
Open

Disable window/energy_saving/keep_screen_on in ProjectSettings#525
addmix wants to merge 1 commit into
ShadowBlip:mainfrom
addmix:main

Conversation

@addmix

@addmix addmix commented Jul 13, 2026

Copy link
Copy Markdown

Prevents OpenGamepadUI from inhibiting sleep.

Currently, Godot inhibits system sleep by default, unless keep_screen_on is disabled in ProjectSettings. This has many consequences, especially for handheld usage where battery saving is a priority. The bigger consequence caused by this is that when a service like Bazzite Deck Sleep Inhibitor is used, OGUI will inhibit sleep at all times until the OGUI process is killed. This also means that when OGUI attempts to suspend the system with this line of code, the suspend request will be denied, an error generated, and the suspend timer will not be restarted.

To prevent OpenGamepadUI from inhibiting sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant