Hi WTE,
So if I understand you correct is that you want to create for everything a separate module, for HMDI, Scart, Ypbpr, Composite. A list ? will tell which components need to been installed and so this options will been provide in Enigma2.
I think as Enigma2 has only a couple of hardware options that https://github.com/O...s/SystemInfo.py is working fine or not?
So if I understand right you want a universal SystemInfo.py but outside Enigma2 code?
I am not yet advocating on where or how the data should be managed. First I think we should work out what we need and want to know.
I think that SystemInfo.py is fine to deliver the data to the Python code
What do others think?
Regards,
Ian.
Ian, you know we already have that in SystemInfo in OpenViX, OpentATV, etc. e.g...
SystemInfo["FrontpanelDisplay"] = fileExists("/dev/dbox/oled0") or fileExists("/dev/dbox/lcd0")
SystemInfo["7segment"] = getDisplayType() in ("7segment",)
SystemInfo["ConfigDisplay"] = SystemInfo["FrontpanelDisplay"] and not SystemInfo["7segment"]
SystemInfo["LCDSKINSetup"] = pathExists("/usr/share/enigma2/display") and not SystemInfo["7segment"]
SystemInfo["DisplayLED"] = getBoxType() in ("gb800se", "gb800solo", "gbx1", "gbx2", "gbx3", "gbx3h")
SystemInfo["LEDButtons"] = getBoxType() == "vuultimo"
SystemInfo["HasHDMIin"] = getHaveHDMIinHD() in ("True",) or getHaveHDMIinFHD() in ("True",)
SystemInfo["HasInfoButton"] = getBrandOEM() in ("airdigital", "broadmedia", "ceryon", "dags", "dinobot", "edision", "formuler", "gfutures", "gigablue", "ini", "maxytec", "octagon", "odin", "skylake", "tiviar", "xcore", "xp", "xtrend")
SystemInfo["yellow_RCA_no_scart"] = not getHaveSCART() and (getHaveRCA() in ("True",) or getHaveAVJACK() in ("True",))
# Machines that do have SCART component video (red, green and blue RCA sockets).
SystemInfo["Scart-YPbPr"] = getBrandOEM() == "vuplus" and "4k" not in getBoxType()
# Machines that do not have component video (red, green and blue RCA sockets).
SystemInfo["no_YPbPr"] = not getHaveYUV()
# Machines that have composite video (yellow RCA socket) but do not have Scart.
SystemInfo["yellow_RCA_no_scart"] = not getHaveSCART() and (getHaveRCA() in ("True",) or getHaveAVJACK() in ("True",))
# Machines that have neither yellow RCA nor Scart sockets.
SystemInfo["no_yellow_RCA__no_scart"] = not getHaveRCA() and (not getHaveSCART() and not getHaveAVJACK())
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["LnbPowerAlwaysOn"] = getBoxType() in ("vusolo4k", "vuduo4k", "vuultimo4k", "vuuno4k", "vuuno4kse")
And SystemInfo keys were recently updated where possible to match corresponding keys in PLi SystemInfo.
Sometimes I get the feeling people are just commentating (and repeating what others are saying) without actually knowing what is already up and running in other distros.
Personally I see no reason why there can't be a subset of SystemInfo keys/values available in all distros... whether or not plugin writers would ever use them or any other "API" is a completely different issue.