diff --git a/lib/python/Screens/VideoMode.py b/lib/python/Screens/VideoMode.py index c754884026..34e64ea56c 100644 --- a/lib/python/Screens/VideoMode.py +++ b/lib/python/Screens/VideoMode.py @@ -306,8 +306,12 @@ def VideoChangeDetect(self): self.delay = False self.detecttimer.stop() return - with open(videomode, "r+") as fd: # GB4K can fail on initial open as r - current_mode = fd.read()[:-1].replace("\n", "") + try: + with open(videomode, "r+") as fd: # GB4K can fail on initial open + current_mode = fd.read()[:-1].replace("\n", "") + except: + with open("/proc/stb/video/videomode", "r") as fd: + current_mode = fd.read()[:-1].replace("\n", "") if current_mode.upper() in ("PAL", "NTSC"): current_mode = current_mode.upper() video_height = None