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

[Feature request] One tap shutdown and autosave and autoload on boot #223

Open
harun911 opened this issue Apr 7, 2024 · 7 comments
Open

Comments

@harun911
Copy link

harun911 commented Apr 7, 2024

One of the things I love about my RG35XX with Garlic OS or Miyoo Mini's, or my RG353V with ArkOS, is the ability to instantly shutdown the device with one tap. And immediately continue playing when I boot it back up. Would it be possible to implement something like this for the RG35XX plus? Even if it's only for Retroarch cores (that's the limitation on the RG353V aswell). It would make it that much more of a pickup and play whenever wherever kind of a device.
Thanks for all your hard work so far!

@ToyKeeper
Copy link

Would be nice. As is, the process is:

  • Hit a hotkey to manually save state.
  • Exit the game.
  • Pull up a menu and shut down the OS.
  • Later, after booting, navigate to what you were playing, and start it. Choose a save state, if you don't have it configured to do so automatically.

That's not so bad, really... but it's definitely not as nice as just tapping a button and having everything work automatically.

@harun911
Copy link
Author

harun911 commented Apr 9, 2024

I agree its not so bad, but it would be a nice quality of life enhancement! 😄

@kraptor
Copy link

kraptor commented Apr 10, 2024

@ToyKeeper @harun911 It's even faster :)

  1. Hit hotkey to manually save state.
  2. Hit simultaneously Fn + On/Off button (immediate turns off the device).
  3. Later, restart game you were playing and load gamestate.

@synak
Copy link

synak commented Apr 10, 2024

@ToyKeeper @harun911
RetroArch itself has options to for "Auto Save State" (upon closing content) and "Load State Automatically", which gets you most of the way there, if I'm understanding what you're trying to replicate.

Settings -> Saving -> Auto Save State
Settings -> Saving -> Load State Automatically

@harun911
Copy link
Author

harun911 commented Apr 10, 2024

@ToyKeeper @harun911 RetroArch itself has options to for "Auto Save State" (upon closing content) and "Load State Automatically", which gets you most of the way there, if I'm understanding what you're trying to replicate.

Settings -> Saving -> Auto Save State Settings -> Saving -> Load State Automatically

Almost, but not quite, yes the feature I'm mentioning relies on the auto save and auto load feature of retroarch, with the difference of being tied to a single button shutdown. I just learned from kraptor, that function button + shutdown button is a thing, didn't knew that before, so that already makes it somewhat better. But the key difference is, automatically saving state when doing a single button shutdown. And when booting back up, booting directly back in the game you've shutdown in, and automatically loading the state. I've tried altering the retroarch settings to enable autosave and autoload btw, but somehow the retroarch config doesn't persist when I save the configuration. Any idea if I'm missing something?

@synak
Copy link

synak commented Apr 10, 2024

I've tried altering the retroarch settings to enable autosave and autoload btw, but somehow the retroarch config doesn't persist when I save the configuration. Any idea if I'm missing something?

Try checking Settings -> Configuration -> Save Configuration on Quit and ensure it's enabled.

@synak
Copy link

synak commented Apr 14, 2024

I've tried altering the retroarch settings to enable autosave and autoload btw, but somehow the retroarch config doesn't persist when I save the configuration.

I was previously answering without knowing that batocera overlays retroarch configurations on boot with its own defaults. You may want to check the wiki for advanced settings, including editing batocera.conf which establishes some global setting overrides.

For example, I wanted to tweak the rewind configuration and was able to do so with the following commands in batocera.conf
global.retroarch.rewind_buffer_size=100
global.retroarch.rewind_buffer_size_step=5
global.retroarch.rewind_granularity=3

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

No branches or pull requests

4 participants