I think I know how to disable sleep if that is the same as setting the display to not sleep. Could you give me a hint of where to find the disable automatic updates? I can't seem to find it.
Here is a container log for a case where the device was rebooted and the first tune attempt failed.
Summary
2024-06-10 17:44:43.159 - server - Available Tuners:
2024-06-10 17:44:43.159 - server - Name: Port2-YTTV Priority: 1
2024-06-10 17:44:43.159 - server - Name: Port1-YTTV Priority: 2
2024-06-10 17:44:43.159 - server - Name: Port3-YTTV Priority: 2
2024-06-10 17:44:43.159 - server - Name: Port4-YTTV Priority: 2
2024-06-10 17:44:43.159 - server - Using first available tuner (by priority).
2024-06-10 17:44:43.160 - server - Reserved Tuner: Name: Port2-YTTV Priority: 1
2024-06-10 17:44:43.160 - server - Using tuner id: 3 for stream.
2024-06-10 17:44:43.160 - uvicorn.access - 192.168.0.11:35518 - "GET /stream/129 HTTP/1.1" 307
2024-06-10 17:44:43.163 - server - Tuner: Tuning to MSNBC on Port2-YTTV
2024-06-10 17:44:43.165 - lib.adb - ADB: Connecting to device (attempt 1).
2024-06-10 17:44:43.283 - lib.adb - ADB: Connected.
2024-06-10 17:44:43.283 - lib.adb - ADB: 192.168.0.29 - dumpsys display
2024-06-10 17:44:43.517 - lib.adb - ADB: 192.168.0.29 - getprop ro.build.version.release
2024-06-10 17:44:43.665 - lib.adb - ADB: Android Version: 11.0.
2024-06-10 17:44:43.666 - lib.adb - ADB: 192.168.0.29 - pm list packages -3
2024-06-10 17:44:44.045 - lib.adb - ADB: 192.168.0.29 - pidof com.google.android.youtube.tvunplugged
2024-06-10 17:44:44.367 - lib.adb - ADB: Stopping media playback.
2024-06-10 17:44:44.367 - lib.adb - ADB: 192.168.0.29 - input keyevent KEYCODE_MEDIA_STOP
2024-06-10 17:44:48.854 - root - Using https://tv.youtube.com/watch/q6bWEVqhP8o to load channel.
2024-06-10 17:44:48.854 - lib.adb - ADB: 192.168.0.29 - am start -a android.intent.action.VIEW -d "https://tv.youtube.com/watch/q6bWEVqhP8o" com.google.android.youtube.tvunplugged
2024-06-10 17:44:53.956 - server - Tuner: Waiting for playback start. Status: unknown
2024-06-10 17:44:59.215 - lib.adb - Checking for profile screen
2024-06-10 17:45:01.497 - lib.adb - On screen text: "batt wa".
2024-06-10 17:45:03.286 - lib.adb - Checking for profile screen
2024-06-10 17:45:06.014 - lib.adb - Checking for profile screen
2024-06-10 17:45:10.031 - lib.adb - Checking for profile screen
2024-06-10 17:45:11.249 - lib.adb - Failed to get status from media_session.
2024-06-10 17:45:12.646 - lib.adb - Checking for profile screen
2024-06-10 17:45:13.878 - lib.adb - Failed to get status from media_session.
2024-06-10 17:45:17.040 - lib.adb - Detected 100.0% black pixels. Assuming HDCP is active and video is playing.
2024-06-10 17:45:17.040 - server - Tuner: Tuning completed in 33.88 seconds. Display was on, application (com.google.android.youtube.tvunplugged) was closed.
2024-06-10 17:45:17.040 - lib.adb - ADB: Closing connection - 192.168.0.29
2024-06-10 17:45:17.041 - server - http disconnect
2024-06-10 17:45:17.044 - lib.adb - ADB: Connecting to device (attempt 1).
2024-06-10 17:45:17.103 - root - Tuner: Stream open (attempt 1).
2024-06-10 17:45:17.118 - lib.adb - ADB: Connected.
2024-06-10 17:45:17.118 - lib.adb - ADB: Stopping media playback.
2024-06-10 17:45:17.118 - lib.adb - ADB: 192.168.0.29 - input keyevent KEYCODE_MEDIA_STOP
2024-06-10 17:45:17.160 - httpx - HTTP Request: GET http://192.168.0.168/4.ts "HTTP/1.1 200 OK"
2024-06-10 17:45:19.299 - lib.adb - ADB: 192.168.0.29 - input keyevent KEYCODE_MEDIA_PAUSE
2024-06-10 17:45:20.569 - lib.adb - ADB: Closing connection - 192.168.0.29
2024-06-10 17:45:20.570 - server - Released tuner ID: 3
2024-06-10 17:45:20.570 - server - Tuner: Cleanup complete. Port2-YTTV (MSNBC)