1 from enigma import eDVBResourceManager
2 from Tools.Directories import fileExists
3 from Tools.HardwareInfo import HardwareInfo
8 def getNumVideoDecoders():
10 while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'f'):
14 SystemInfo["NumVideoDecoders"] = getNumVideoDecoders()
15 SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()
18 def countFrontpanelLEDs():
20 if fileExists("/proc/stb/fp/led_set_pattern"):
23 while fileExists("/proc/stb/fp/led%d_pattern" % leds):
28 SystemInfo["NumFrontpanelLEDs"] = countFrontpanelLEDs()
29 SystemInfo["FrontpanelDisplay"] = fileExists("/dev/dbox/oled0") or fileExists("/dev/dbox/lcd0")
30 SystemInfo["FrontpanelDisplayGrayscale"] = fileExists("/dev/dbox/oled0")
31 SystemInfo["DeepstandbySupport"] = HardwareInfo().get_device_name() != "dm800"
32 SystemInfo["HdmiInSupport"] = HardwareInfo().get_vu_device_name() == "ultimo4k"
33 SystemInfo["WOWLSupport"] = HardwareInfo().get_vu_device_name() == "ultimo4k"
34 SystemInfo["ScrambledPlayback"] = HardwareInfo().get_vu_device_name() in ("solo4k", "ultimo4k")
35 SystemInfo["FastChannelChange"] = fileExists("/proc/stb/frontend/fbc/fcc")
36 SystemInfo["MiniTV"] = fileExists("/proc/stb/lcd/live_enable")