-
Notifications
You must be signed in to change notification settings - Fork 44
disconnect / reconnect confusion on powerdown / up #113
Comments
The root cause is your device (Sony TV) which disconnect/reconnect the network many times probably during sleep. |
Not sure I've seen that option before, I'll look for it and try it. |
I can't find any option in the android settings to allow Kodi to run in the background. Any idea where it would be hiding? |
That depends of Android version and vendor. Often you could find it in "Battery" or "Power saving" etc. It is often difficult to find the right flag in Android settings. |
I couldn't find any options in power saving. Nor anything related to the app in the app info. But they probably remove it on the TVs. I know I've seen it before on my phone, usually hidden under something like battery optimization. |
Even when running 5.10.19, I still see this issue. |
That's possible. I will make that change. |
That would be awesome - thanks! |
Running the current version of Kodi, on Android (Sony TV), and also have it linked to my MythTV server.
Any time you push the power button for the TV, while Kodi is running - upon turning the TV back on, the screen starts flashing the MythTV Disconnected error message, followed by the MythTV Reconnected error message.
This loop repeats, for upward of 5 minutes, before it (apparently) has time to get through its entire backlog of disconnect / reconnect message, which each sit on the screen for ~ 5 seconds. Even when you are trying to watch something else, that isn't even coming from MythTV. There must be something on the order of 60 of these disconnect / reconnect message pairs in the queue for display.
The only way to stop this loop, is to exit Kodi, and relaunch it. Or, always exit Kodi before you turn off the TV.
Note that MythTV functions work perfectly fine, even while these silly error messages continue to flash on screen.
While, I think the handling of the messages on the Kodi side is buggy xbmc/xbmc#18163 they don't seem to agree - but do believe that the initiator for the messages is coming from the addon.
The addon seems to be getting confused about the state of the MythTV connection upon a power down / up.
Not sure if the addon needs some different logic to properly handle what happens when the TV turns off - I'm guessing some sort of sleep mode is triggered? Or perhaps, a delay in the disconnect / reconnect logic?
I can get logs from the addon when this happens, if that would help - if someone can tell me how to fetch the logs you need off of the Sony/Android tv.
The text was updated successfully, but these errors were encountered: