yuliskov/SmartTube

[BUG]: App preventing TV Box to enter sleep/hibernate

FabioM3 opened this issue · 5 comments

Checklist

  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.

Affected version

24.71 stable and beta

Device Type

Smart TV/Box

Affected Android

android 9

Steps to reproduce the bug

  1. Play a video
  2. Click off button on remote controller

Actual behavior

The TV box start to enter sleep/hibernation but after a second it turn on and start playing the video.

Additional information

The normal behaviour is to have the tv box to "turn off", and when we turn it on again it have to play the video where it left.
The issue only happens if a video is playing. Even pausing and click OFF make the box to turn on again after a second.
If I clean the data of the ST app the behaviour is normal, but after restoring the settings the problem return.

V23.30 is the last version that I found that have the correct behaviour.

I have the same issue on nvidia shield for a while now, There have been several issues created about this. The device just doesn't sleep with a video loaded, Paused or not.

Same here: #3876

Similar issue, here is how it presents for me.

Summary: Google TV can't shut off during power off timeout, it just turns right back on and blares the most recent SmartTube video.

  1. Set Google TV Power Off Timeout to 15 mins (Google TV / System / Power & Energy / Energy Saver / Turn off TV after... 15 minutes)
  2. Start Smart Tube. Play YT video, then hit pause (and optionally mute on TV remote)
  3. Wait 15 minutes for power off.
  4. Google TV shuts off as expected, but then immediately powers back on, returns to SmartTube app, and starts playing the previously-paused video ( which now also has the volume unmuted from the power cycle.)
  5. In earlier versions of SmartTube, the TV would shut off after the 15 minute timeout and stay shut off.
  6. Expected behavior: SmartTube respects the Google TV Power Off Timeout and doesn't turn the TV back on to play videos.

The issue is happening in v24.71 , not sure what other versions are affected. This didn't used to happen in the version from a couple of months ago.

Thank you.

On my nvidia shield I was able to change the sleep timeout in screen saver settings in my nvidia shield to 5 minutes and it would sleep with a video paused in SmartTube. It doesn't wake up after. But 5 minutes is the only setting that works with SmartTube opened and a video loaded and paused. Any other time frame higher will result in the device not sleeping.
It would be nice to have the device stay awake longer but this works for now.

Resolved: Problem described in this issue, specifically the abnormal behavior described in comment above #4128 (comment) appears to be resolved with release 24.89

Issue is not actually resolved as of release 24.89.

Note: To replicate the bug described in the comment above #4128 (comment) , the option "Allow TV to turn off while watching" needs to be enabled (along with Turn TV off after... 15 minutes) in Settings / System / Power & Energy / Energy Saver.

Additional information: abnormal sleep behavior seems intermittent and random. Sometimes it shuts off properly, sometimes it turns itself back on immediately.

Thanks