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"