Closed nullpainter closed 6 years ago
I've merged the hotkeys one so I'm not sure if you need to merge here?
I created this branch from the hotkeys branch, so all should be well. I've done a sanity check on the commits.
Hey @nullpainter I merged the multi screen PR and it seems to have some conflicts here - sorry about that...
No worries, @mika76. All done.
Nice - I'll merge it quick 😉
This PR implements explicit sleep management, as per #23.
Sleep management is required because MAME ignores both screen and PC sleep settings. With this PR, the user's screens are turned off and MAME stopped based on the user's sleep settings. This makes Mamesaver a better citizen, is more environmentally friendly, and stops unnecessarily and constantly high CPU usage if the screensaver is left on overnight.
This change:
Note that no power actions other than sleeping screens is performed (i.e., we are treating requests to hibernate etc. as if it was a screen sleep event).