1 from enigma import eDVBResourceManager
2 from Tools.Directories import fileExists
7 def getNumVideoDecoders():
9 while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'f'):
13 SystemInfo["NumVideoDecoders"] = getNumVideoDecoders()
14 SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()
17 def countFrontpanelLEDs():
19 if fileExists("/proc/stb/fp/led_set_pattern"):
22 while fileExists("/proc/stb/fp/led%d_pattern" % leds):
27 SystemInfo["NumFrontpanelLEDs"] = countFrontpanelLEDs()
28 SystemInfo["FrontpanelDisplay"] = fileExists("/dev/dbox/oled0") or fileExists("/dev/dbox/lcd0")
29 SystemInfo["FrontpanelDisplayGrayscale"] = fileExists("/dev/dbox/oled0")