Add toggle TV on LCD display for VU+Solo4K
authorlittlesat <littlesat99@yahoo.com>
Wed, 6 Jan 2016 19:53:02 +0000 (20:53 +0100)
committerlittlesat <littlesat99@yahoo.com>
Wed, 6 Jan 2016 19:53:02 +0000 (20:53 +0100)
Todo: When going to standby the VU drivers go back to LCD. When going out
of standby the VU drivers do not restore live TV. Even when (re)starting
enigma2 somehow the proc is not correctly checked by the drivers. In fact
when the proc has LiveTV enabled the drivers should arrange to go back to
LiveTV when comming back from standby (or restart enigma2).

lib/python/Components/Lcd.py
lib/python/Components/SystemInfo.py

index 41b8c86..09b6206 100644 (file)
@@ -94,7 +94,10 @@ def InitLcd():
 
                if SystemInfo["LcdLiveTV"]:
                        def lcdLiveTvChanged(configElement):
-                               open(SystemInfo["LcdLiveTV"], "w").write(configElement.value and "0" or "1")
+                               if "live_enable" in SystemInfo["LcdLiveTV"]:
+                                       open(SystemInfo["LcdLiveTV"], "w").write(configElement.value and "enable" or "disable")
+                               else:
+                                       open(SystemInfo["LcdLiveTV"], "w").write(configElement.value and "0" or "1")
                                InfoBarInstance = InfoBar.instance
                                InfoBarInstance and InfoBarInstance.session.open(dummyScreen)
                        config.lcd.showTv = ConfigYesNo(default = False)
@@ -108,4 +111,4 @@ def InitLcd():
                config.lcd.bright.apply = lambda : doNothing()
                config.lcd.standby.apply = lambda : doNothing()
 
-       config.misc.standbyCounter.addNotifier(standbyCounterChanged, initial_call = False)
+       config.misc.standbyCounter.addNotifier(standbyCounterChanged, initial_call = False)
\ No newline at end of file
index b3fae02..7df3718 100644 (file)
@@ -43,7 +43,7 @@ SystemInfo["VFD_scroll_repeats"] = not HardwareInfo().get_device_model().startsw
 SystemInfo["VFD_scroll_delay"] = not HardwareInfo().get_device_model().startswith("et8500") and fileCheck("/proc/stb/lcd/scroll_delay")
 SystemInfo["VFD_initial_scroll_delay"] = not HardwareInfo().get_device_model().startswith("et8500") and fileCheck("/proc/stb/lcd/initial_scroll_delay")
 SystemInfo["VFD_final_scroll_delay"] = not HardwareInfo().get_device_model().startswith("et8500") and fileCheck("/proc/stb/lcd/final_scroll_delay")
-SystemInfo["LcdLiveTV"] = fileCheck("/proc/stb/fb/sd_detach")
+SystemInfo["LcdLiveTV"] = fileCheck("/proc/stb/fb/sd_detach") or fileCheck("/proc/stb/lcd/live_enable")
 SystemInfo["3DMode"] = fileCheck("/proc/stb/fb/3dmode") or fileCheck("/proc/stb/fb/primary/3d")
 SystemInfo["3DZNorm"] = fileCheck("/proc/stb/fb/znorm") or fileCheck("/proc/stb/fb/primary/zoffset")
 SystemInfo["Blindscan_t2_available"] = fileCheck("/proc/stb/info/vumodel")