Skip to content
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

Keep screen on not implemented on desktop platforms (to inhibit screensaver) #5073

Closed
ramoas86 opened this issue Jun 6, 2016 · 10 comments · Fixed by #35536
Closed

Keep screen on not implemented on desktop platforms (to inhibit screensaver) #5073

ramoas86 opened this issue Jun 6, 2016 · 10 comments · Fixed by #35536

Comments

@ramoas86
Copy link

ramoas86 commented Jun 6, 2016

Operating system or device - Godot version:
Ubuntu 14.04 and probably other Linux system.

Issue description (what happened, and what was expected):
Screensaver appears when using joystick during gameplay. I want avoid this.

@reduz
Copy link
Member

reduz commented Jun 6, 2016

maybe we should implement this during game (not editor) execution

http://stackoverflow.com/questions/31498114/how-to-programatically-prevent-linux-computer-from-sleeping-or-turning-on-screen

On Mon, Jun 6, 2016 at 4:58 PM, ramoas86 notifications@github.com wrote:

Operating system or device - Godot version:
Ubuntu 14.04 and probably other Linux system.

Issue description (what happened, and what was expected):
Screensaver appears when using joystick during gameplay. I want avoid this.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#5073, or mute the thread
https://github.com/notifications/unsubscribe/AF-Z26YHKjuX2lOY0U9Gje7dfQm6FwqOks5qJHv4gaJpZM4IvQbz
.

@27thLiz
Copy link
Contributor

27thLiz commented Jun 6, 2016

Good idea.
On this occation, we should also make "display/keep_screen_on" available on desktop platforms I guess.
Edit: or maybe it's the same thing.. :p

@vnen
Copy link
Member

vnen commented Jun 7, 2016

I noticed there's a OS.set_keep_screen_on(bool) that seems to only work on mobile. Maybe the same function can be used for desktops?

@27thLiz
Copy link
Contributor

27thLiz commented Sep 22, 2016

I tried to implement this and noticed that on windows, the screensaver never appears when the godot editor is open. Can somebody confirm this? Should it be regarded as a bug?

@bitbionic
Copy link

Just to put a little life back into this, just in case it's buried in the priority stack - this is still an issue (and an old one it seems). While the workaround for the user is simple (turn off screensaver / sleep options) it should be addressed IMO.

@Calinou
Copy link
Member

Calinou commented Apr 11, 2018

Bugsquad note: This issue is still relevant as of commit d87307d; OS.set_keep_screen_on(bool) is only implemented on Android, iOS and UWP.

@KoBeWi
Copy link
Member

KoBeWi commented Jun 10, 2020

As of ffbea8a, the method is still not implemented for desktop.

However, XBox gamepad will prevent screensaver on Windows 10 even without game running, so maybe someone could test with other systems/gamepads (not to mention the bug could be fixed in another way).

Can anyone still reproduce this bug in Godot 3.2.1 or any later release (e.g. 3.2.2-beta4)?

@austin-gill
Copy link

I am using 3.2.2.stable.official on Linux Mint 20 and I am having this issue.
I am using a USB gamepad. The game and gamepad are functioning well, but the screen saver still turns on despite constant input from the gamepad.

@Calinou
Copy link
Member

Calinou commented Oct 3, 2020

This will be fixed by #35536 if it's merged. That said, that pull request has to be redone for the master branch before it can be merged.

@akien-mga akien-mga added this to the 4.0 milestone May 6, 2021
@akien-mga akien-mga changed the title screensaver and joystick Keep screen on not implemented on desktop platforms (to inhibit screensaver) May 6, 2021
@akien-mga
Copy link
Member

This will be fixed by #35536 if it's merged.

That PR fixes it for Linux, but AFAICT "Keep Screen On" is still not implemented for Windows (empty stubs) and macOS (no stubs) either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants