"/proc/stb/hdmi/bypass_edid_checking") SystemInfo["haveboxmode"] = fileExists("/proc/stb/info/boxmode") SystemInfo["HasScaler_sharpness"] = pathExists( "/proc/stb/vmpeg/0/pep_scaler_sharpness") # Machines that do have SCART component video (red, green and blue RCA sockets). SystemInfo["Scart-YPbPr"] = getBrandOEM( ) == "vuplus" and not "4k" in getBoxType() # Machines that do not have component video (red, green and blue RCA sockets). SystemInfo["no_YPbPr"] = getHaveYUV() in ('False', ) # Machines that have composite video (yellow RCA socket) but do not have Scart. SystemInfo["yellow_RCA_no_scart"] = getHaveSCART() in ('False', ) and ( getHaveRCA() in ('True', ) or getHaveAVJACK() in ('True', )) # Machines that have neither yellow RCA nor Scart sockets SystemInfo["no_yellow_RCA__no_scart"] = getHaveRCA() in ('False', ) and ( getHaveSCART() in ('False', ) and getHaveAVJACK() in ('False', )) SystemInfo["VideoModes"] = getChipSetString( ) in ( # 2160p and 1080p capable hardware '5272s', '7251', '7251s', '7252', '7252s', '7278', '7366', '7376', '7444s', '72604', '3798mv200', '3798cv200', 'hi3798mv200', 'hi3798cv200') and ( ["720p", "1080p", "2160p", "1080i", "576p", "576i", "480p", "480i" ], # normal modes {"720p", "1080p", "2160p", "1080i"} # widescreen modes ) or getChipSetString() in ( # 1080p capable hardware '7241', '7356', '73565', '7358', '7362', '73625', '7424', '7425', '7552') and ( ["720p", "1080p", "1080i", "576p", "576i", "480p", "480i" ], # normal modes {"720p", "1080p", "1080i"} # widescreen modes ) or ( # default modes (neither 2160p nor 1080p capable hardware) ["720p", "1080i", "576p", "576i", "480p", "480i"], # normal modes {"720p", "1080i"} # widescreen modes )
SystemInfo["CanAutoVolume"] = fileExists("/proc/stb/audio/avl_choices") and fileCheck("/proc/stb/audio/avl") SystemInfo["havecolorspace"] = fileCheck("/proc/stb/video/hdmi_colorspace") SystemInfo["havecolorimetry"] = fileCheck("/proc/stb/video/hdmi_colorimetry") SystemInfo["havehdmicolordepth"] = fileCheck("/proc/stb/video/hdmi_colordepth") SystemInfo["Canedidchecking"] = fileCheck("/proc/stb/hdmi/bypass_edid_checking") SystemInfo["haveboxmode"] = fileExists("/proc/stb/info/boxmode") SystemInfo["HasScaler_sharpness"] = pathExists("/proc/stb/vmpeg/0/pep_scaler_sharpness") # Machines that do not have component video (red, green and blue RCA sockets). SystemInfo["no_YPbPr"] = getBoxType() in ( 'vusolo2', 'vuzero4k', 'vusolo4k', 'vuuno4k', 'vuuno4kse', 'vuultimo4k', ) # Machines that have composite video (yellow RCA socket) but do not have Scart. SystemInfo["yellow_RCA_no_scart"] = False # Machines that have neither yellow RCA nor Scart sockets SystemInfo["no_yellow_RCA__no_scart"] = getBoxType() in ( 'vuzero4k', 'vusolo4k', 'vuuno4k', 'vuuno4kse', 'vuultimo4k' ) SystemInfo["Chipstring"] = getChipSetString() in ('5272s', '7251', '7251s', '7252', '7252s', '7366', '7376', '7444s', '72604') and ( ["720p", "1080p", "2160p", "2160p30", "1080i", "576p", "576i", "480p", "480i"], {"720p", "1080p", "2160p", "2160p30", "1080i"}) or getChipSetString() in ( '7241', '7356', '73565', '7358', '7362', '73625', '7424', '7425', '7552') and ( ["720p", "1080p", "1080i", "576p", "576i", "480p", "480i"], {"720p", "1080p", "1080i"})
# Machines that have neither yellow RCA nor Scart sockets SystemInfo["no_yellow_RCA__no_scart"] = getBoxType() in ( 'et5x00', 'et6x00', 'gbquad', 'gbquad4k', 'gbue4k', 'gbx1', 'gbx2', 'gbx3', 'gbx3h', 'ixussone', 'mutant51', 'mutant1500', 'osnino', 'osninoplus', 'sf4008', 'tmnano2t', 'tmnanom3', 'tmtwin4k', 'vuzero4k', 'vusolo4k', 'vuuno4k', 'vuuno4kse', 'vuultimo4k' ) SystemInfo["Chipstring"] = getChipSetString() in ('5272s', '7251', '7251s', '7252', '7252s', '7366', '7376', '7444s', '72604', '3798mv200', '3798cv200', 'hi3798mv200', 'hi3798cv200') and ( ["720p", "1080p", "2160p", "1080i", "576p", "576i", "480p", "480i"], {"720p", "1080p", "2160p", "1080i"}) or getChipSetString() in ( '7241', '7356', '73565', '7358', '7362', '73625', '7424', '7425', '7552') and ( ["720p", "1080p", "1080i", "576p", "576i", "480p", "480i"], {"720p", "1080p", "1080i"})
def getAboutText(): AboutText = "" AboutText += _("Model:\t %s %s\n") % (getMachineBrand(), getMachineName()) if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset:\t %s") % str(getChipSetString()) + "\n" bogoMIPS = "" if path.exists('/proc/cpuinfo'): f = open('/proc/cpuinfo', 'r') temp = f.readlines() f.close() try: for lines in temp: lisp = lines.split(': ') if lisp[0].startswith('BogoMIPS'): bogoMIPS = "" + str(int(float(lisp[1].replace('\n','')))) + "" #bogoMIPS = "" + lisp[1].replace('\n','') + "" break except: pass cpuMHz = "" if getMachineBuild() in ('vusolo4k'): cpuMHz = " (1,5 GHz)" else: if path.exists('/proc/cpuinfo'): f = open('/proc/cpuinfo', 'r') temp = f.readlines() f.close() try: for lines in temp: lisp = lines.split(': ') if lisp[0].startswith('cpu MHz'): #cpuMHz = " (" + lisp[1].replace('\n', '') + " MHz)" cpuMHz = " (" + str(int(float(lisp[1].replace('\n', '')))) + " MHz)" break except: pass openLD = "OpenLD " AboutText += _("CPU:\t %s") % str(getCPUString()) + cpuMHz + "\n" AboutText += _("Cores:\t %s") % str(getCpuCoresString()) + "\n" AboutText += _("BogoMIPS:\t %s") % bogoMIPS + "\n" AboutText += _("Firmware:\t %s") % openLD + str(getImageVersion()) + "\n" #AboutText += _("Build:\t %s") % getImageBuild() + "\n" #AboutText += _("Image Type:\t%s\n") % getImageType() + "\n" AboutText += _("Kernel:\t %s") % str(getKernelVersionString()) + "\n" AboutText += _("DVB drivers:\t %s") % str(getDriverInstalledDate()) + "\n" AboutText += _("Last update:\t %s") % str(getEnigmaVersionString()) + "\n" AboutText += _("GStreamer:\t%s") % str(getGStreamerVersionString().replace('GStreamer','')) + "\n" #AboutText += _("FFmpeg:\t%s") % str((' 3.1.4')) + "\n" AboutText += _("Python:\t %s") % getPythonVersionString() + "\n\n" #AboutText += _("CPU Load:\t %s") % str(about.getLoadCPUString()) + "\n" #AboutText += _("Installed:\t ") + about.getFlashDateString() + "\n" #AboutText += _("Restarts:\t %d ") % config.misc.startCounter.value + "\n\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): f = open('/proc/stb/sensors/temp0/value', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/fp/temp_sensor'): f = open('/proc/stb/fp/temp_sensor', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/sensors/temp/value'): f = open('/proc/stb/sensors/temp/value', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature:\t%s") % tempinfo.replace('\n', '').replace(' ','') + mark + "C\n" tempinfo = "" if path.exists('/proc/stb/fp/temp_sensor_avs'): f = open('/proc/stb/fp/temp_sensor_avs', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("Processor temperature:\t%s") % tempinfo.replace('\n', '').replace(' ','') + mark + "C\n" AboutLcdText = AboutText.replace('\t', ' ') fp_version = getFPVersion() if fp_version is None: fp_version = "" elif fp_version != 0: fp_version = _("Frontprocessor version: %s") % fp_version AboutText += fp_version + "\n" bootloader = "" if path.exists('/sys/firmware/devicetree/base/bolt/tag'): f = open('/sys/firmware/devicetree/base/bolt/tag', 'r') bootloader = f.readline().replace('\x00', '').replace('\n', '') f.close() AboutText += _("Bootloader:\t\t%s\n") % (bootloader) return AboutText, AboutLcdText
SystemInfo["haveboxmode"] = fileExists("/proc/stb/info/boxmode") SystemInfo["HasScaler_sharpness"] = pathExists( "/proc/stb/vmpeg/0/pep_scaler_sharpness") # Machines that do not have component video (red, green and blue RCA sockets). SystemInfo["no_YPbPr"] = getBoxType() in ( 'vusolo2', 'vuzero4k', 'vusolo4k', 'vuuno4k', 'vuuno4kse', 'vuultimo4k', ) # Machines that have composite video (yellow RCA socket) but do not have Scart. SystemInfo["yellow_RCA_no_scart"] = False # Machines that have neither yellow RCA nor Scart sockets SystemInfo["no_yellow_RCA__no_scart"] = getBoxType() in ('vuzero4k', 'vusolo4k', 'vuuno4k', 'vuuno4kse', 'vuultimo4k') SystemInfo["Chipstring"] = getChipSetString() in ( '5272s', '7251', '7251s', '7252', '7252s', '7366', '7376', '7444s', '72604') and ([ "720p", "1080p", "2160p", "2160p30", "1080i", "576p", "576i", "480p", "480i" ], {"720p", "1080p", "2160p", "2160p30", "1080i" }) or getChipSetString() in ('7241', '7356', '73565', '7358', '7362', '73625', '7424', '7425', '7552') and ([ "720p", "1080p", "1080i", "576p", "576i", "480p", "480i" ], {"720p", "1080p", "1080i"})
SystemInfo["havecolorimetrychoices"] = fileCheck("/proc/stb/video/hdmi_colorimetry_choices") SystemInfo["havehdmicolordepth"] = fileCheck("/proc/stb/video/hdmi_colordepth") SystemInfo["havehdmicolordepthchoices"] = fileCheck("/proc/stb/video/hdmi_colordepth_choices") SystemInfo["havehdmihdrtype"] = fileExists("/proc/stb/video/hdmi_hdrtype") SystemInfo["HDRSupport"] = fileExists("/proc/stb/hdmi/hlg_support_choices") SystemInfo["Canedidchecking"] = fileCheck("/proc/stb/hdmi/bypass_edid_checking") SystemInfo["haveboxmode"] = fileExists("/proc/stb/info/boxmode") SystemInfo["HasScaler_sharpness"] = pathExists("/proc/stb/vmpeg/0/pep_scaler_sharpness") # Machines that do have SCART component video (red, green and blue RCA sockets). SystemInfo["Scart-YPbPr"] = getBrandOEM() == "vuplus" and not "4k" in getBoxType() # Machines that do not have component video (red, green and blue RCA sockets). SystemInfo["no_YPbPr"] = getHaveYUV() in ('False',) # Machines that have composite video (yellow RCA socket) but do not have Scart. SystemInfo["yellow_RCA_no_scart"] = getHaveSCART() in ('False',) and (getHaveRCA() in ('True',) or getHaveAVJACK() in ('True',)) # Machines that have neither yellow RCA nor Scart sockets SystemInfo["no_yellow_RCA__no_scart"] = getHaveRCA() in ('False',) and (getHaveSCART() in ('False',) and getHaveAVJACK() in ('False',)) SystemInfo["VideoModes"] = getChipSetString() in ( # 2160p and 1080p capable hardware '5272s', '7251', '7251s', '7252', '7252s', '7278', '7366', '7376', '7444s', '72604', '3798mv200', '3798cv200', 'hi3798mv200', 'hi3798cv200' ) and ( ["720p", "1080p", "2160p", "1080i", "576p", "576i", "480p", "480i"], # normal modes {"720p", "1080p", "2160p", "1080i"} # widescreen modes ) or getChipSetString() in ( # 1080p capable hardware '7241', '7356', '73565', '7358', '7362', '73625', '7424', '7425', '7552' ) and ( ["720p", "1080p", "1080i", "576p", "576i", "480p", "480i"], # normal modes {"720p", "1080p", "1080i"} # widescreen modes ) or ( # default modes (neither 2160p nor 1080p capable hardware) ["720p", "1080i", "576p", "576i", "480p", "480i"], # normal modes {"720p", "1080i"} # widescreen modes )
def getAboutText(): AboutText = "" AboutText += _("Model:\t %s %s\n") % (getMachineBrand(), getMachineName()) if path.exists('/proc/stb/info/chipset'): AboutText += _("Chipset:\t %s") % str(getChipSetString()) + "\n" bogoMIPS = "" if path.exists('/proc/cpuinfo'): f = open('/proc/cpuinfo', 'r') temp = f.readlines() f.close() try: for lines in temp: lisp = lines.split(': ') if lisp[0].startswith('BogoMIPS'): bogoMIPS = "" + str(int(float(lisp[1].replace('\n', '')))) + "" #bogoMIPS = "" + lisp[1].replace('\n','') + "" break except: pass cpuMHz = "" if getMachineBuild() in ('vusolo4k'): cpuMHz = " (1,5 GHz)" else: if path.exists('/proc/cpuinfo'): f = open('/proc/cpuinfo', 'r') temp = f.readlines() f.close() try: for lines in temp: lisp = lines.split(': ') if lisp[0].startswith('cpu MHz'): #cpuMHz = " (" + lisp[1].replace('\n', '') + " MHz)" cpuMHz = " (" + str( int(float(lisp[1].replace('\n', '')))) + " MHz)" break except: pass openLD = "OpenLD " AboutText += _("CPU:\t %s") % str(getCPUString()) + cpuMHz + "\n" AboutText += _("Cores:\t %s") % str(getCpuCoresString()) + "\n" AboutText += _("BogoMIPS:\t %s") % bogoMIPS + "\n" AboutText += _("Firmware:\t %s") % openLD + str(getImageVersion()) + "\n" #AboutText += _("Build:\t %s") % getImageBuild() + "\n" #AboutText += _("Image Type:\t%s\n") % getImageType() + "\n" AboutText += _("Kernel:\t %s") % str(getKernelVersionString()) + "\n" AboutText += _("DVB drivers:\t %s") % str(getDriverInstalledDate()) + "\n" AboutText += _("Last update:\t %s") % str(getEnigmaVersionString()) + "\n" AboutText += _("GStreamer:\t%s") % str(getGStreamerVersionString().replace( 'GStreamer', '')) + "\n" #AboutText += _("FFmpeg:\t%s") % str((' 3.1.4')) + "\n" AboutText += _("Python:\t %s") % getPythonVersionString() + "\n\n" #AboutText += _("CPU Load:\t %s") % str(about.getLoadCPUString()) + "\n" #AboutText += _("Installed:\t ") + about.getFlashDateString() + "\n" #AboutText += _("Restarts:\t %d ") % config.misc.startCounter.value + "\n\n" tempinfo = "" if path.exists('/proc/stb/sensors/temp0/value'): f = open('/proc/stb/sensors/temp0/value', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/fp/temp_sensor'): f = open('/proc/stb/fp/temp_sensor', 'r') tempinfo = f.read() f.close() elif path.exists('/proc/stb/sensors/temp/value'): f = open('/proc/stb/sensors/temp/value', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("System temperature:\t%s") % tempinfo.replace( '\n', '').replace(' ', '') + mark + "C\n" tempinfo = "" if path.exists('/proc/stb/fp/temp_sensor_avs'): f = open('/proc/stb/fp/temp_sensor_avs', 'r') tempinfo = f.read() f.close() if tempinfo and int(tempinfo.replace('\n', '')) > 0: mark = str('\xc2\xb0') AboutText += _("Processor temperature:\t%s") % tempinfo.replace( '\n', '').replace(' ', '') + mark + "C\n" AboutLcdText = AboutText.replace('\t', ' ') fp_version = getFPVersion() if fp_version is None: fp_version = "" elif fp_version != 0: fp_version = _("Frontprocessor version: %s") % fp_version AboutText += fp_version + "\n" bootloader = "" if path.exists('/sys/firmware/devicetree/base/bolt/tag'): f = open('/sys/firmware/devicetree/base/bolt/tag', 'r') bootloader = f.readline().replace('\x00', '').replace('\n', '') f.close() AboutText += _("Bootloader:\t\t%s\n") % (bootloader) return AboutText, AboutLcdText