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

When suspending on Linux, pause the game until user has unlocked the device #117

Open
thejacer87 opened this issue Jul 18, 2022 · 2 comments
Labels
enhancement Change to or improvement of existing behavior linux Issue only occurs on Linux

Comments

@thejacer87
Copy link

Is your feature request related to a problem? Please describe.
When I sleep the steam deck, all is well. But when it wakes from suspend, the game continues to play in the background until I have finished unlocking the device.

Describe the solution you'd like
When the deck is put to sleep. Either pause the game so when I re-open, the game has been paused; or pause the game loop in GM, then somehow listen for when the system is unlocked, resume the process.

Describe alternatives you've considered
Pause the game myself before entering sleep.

Additional context
Steamdeck support would be great, maybe think about releasing the AM2R launcher on flathub so we can install from there instead of building it manually

@thejacer87 thejacer87 added the enhancement Change to or improvement of existing behavior label Jul 18, 2022
@Miepee
Copy link
Contributor

Miepee commented Sep 30, 2022

hey @thejacer87 do you have any examples / documentation for OS.suspend()?

@thejacer87
Copy link
Author

hey @thejacer87 do you have any examples / documentation for OS.suspend()?

nah man, sorry. i just assumed there is some sort of suspend command it can listen for

@Miepee Miepee added the linux Issue only occurs on Linux label Oct 1, 2022
@Lojemiru Lojemiru changed the title Handle OS.suspend() to help support the steamdeck When suspending on Linux, pause the game until user has unlocked the device Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Change to or improvement of existing behavior linux Issue only occurs on Linux
Projects
None yet
Development

No branches or pull requests

2 participants