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

Prevent system from going to sleep when music is running #196

Open
peat80 opened this issue Jan 19, 2025 · 1 comment
Open

Prevent system from going to sleep when music is running #196

peat80 opened this issue Jan 19, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@peat80
Copy link
Contributor

peat80 commented Jan 19, 2025

Is there a way to prevent the system from going to sleep when there is music playing in the background?

I have configured my gtv streamer to launch the screensaver after 5 mins and after 15 mins the system goes to sleep.

On the Shield TV there was an option to prevent system hibernation when there is music playing.
The Google TV Streamer sadly does not have such an option.

Is there a way to configure this via ADB or something?

Or would it be possible to add such a feature to Aerial Views?

@peat80 peat80 added the question Further information is requested label Jan 19, 2025
@theothernt
Copy link
Owner

So, the Shield has options that no other Android/Google TV device has, saldy. Also, from what I know, the Google TV devices are more aggressive about power saving and going to sleep (for apps and the system) - so I'm not sure there is an ADB command for it.

As I'm travelling at the moment, I would suggest searching (probably Reddit) for solutions for the Fire TV as I remember a lot of answers about that - oh, just popped into my head - maybe there is a 3rd party app the keep the device awake?

For Aerial Views, when it's running as a screensaver I don't think there's any way I can override the 'standby' setting. But if Aerial Views is started as an app, then "Test screensaver" is selected - that should keep running forever as it's simple a video player that has requested the screen to stay on (WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)

There is setWakeMode() from ExoPlayer, but I've never used it, assumed it's for the phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants