Skip to content

Commit 927e6b2

Browse files
authored
Merge pull request #3 from Hains/python3
plugin.py: Synch with OE-A plugins
2 parents f678ce7 + 44f422d commit 927e6b2

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

lcd4linux/src/plugin.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@
172172
if find_library("usb-0.1") is not None or find_library("usb-1.0") is not None:
173173
print("[LCD4linux] libusb found :-)", getEnigmaVersionString())
174174
USBok = True
175+
elif ARCH in ("aarch64"):
176+
get_backend(find_library=lambda x: "/lib64/libusb-1.0.so.0")
177+
print("[LCD4linux] libusb found :-)", getEnigmaVersionString())
178+
USBok = True
175179
Version = "V5.0-r22"
176180
L4LElist = L4Lelement()
177181
L4LdoThread = True
@@ -2656,7 +2660,7 @@ def getFB2(check):
26562660

26572661
def BRI(w1, w2):
26582662
gb = L4LElist.getBrightness(w2, False)
2659-
return int(w1) if gb == -1 else gb
2663+
return w1 if gb == -1 else gb
26602664

26612665

26622666
def virtBRI(LCD):
@@ -10313,7 +10317,7 @@ def getNumber(actservice):
1031310317
service = servicelist.getNext()
1031410318
if not service.valid(): # check end of list
1031510319
break
10316-
playable = not (service.flags & mask) or (service.flags & eServiceReference.isNumberedMarker)
10320+
playable = not (service.flags & mask)
1031710321
if playable:
1031810322
number += 1
1031910323
# L4logE(" ",service.getPath())
@@ -15288,7 +15292,7 @@ def Lput4(LCD, SCR, FUNC, PARA):
1528815292
if "2" in LCD4linux.PopupLCD.value and LCD4linux.LCDType2.value != "00":
1528915293
Brief2.put([putPopup, Para, 2, 2])
1529015294
if "3" in LCD4linux.PopupLCD.value and LCD4linux.LCDType3.value != "00":
15291-
Brief3.put([putPopup, Para, 3, 3])
15295+
Brief2.put([putPopup, Para, 3, 3])
1529215296
# show isCrashlog
1529315297
if LCD4linux.Crash.value == True:
1529415298
Brief1.put([putCrash, 1, 1])
@@ -15463,7 +15467,15 @@ def autostart(reason, **kwargs):
1546315467

1546415468

1546515469
def setup(menuid, **kwargs):
15466-
return [("LCD4Linux", main, "lcd4linux", None)] if menuid == "setup" else []
15470+
if IMAGEDISTRO in ("openvix", "openatv", "egami", "openhdf", "openbh", "openspa", "opendroid"):
15471+
if menuid == "display" and SystemInfo["Display"]:
15472+
return [("LCD4Linux", main, "lcd4linux", None)]
15473+
elif menuid == "system" and not SystemInfo["Display"]:
15474+
return [("LCD4Linux", main, "lcd4linux", None)]
15475+
else:
15476+
return []
15477+
else:
15478+
return [("LCD4Linux", main, "lcd4linux", None)] if menuid == "setup" else []
1546715479

1546815480

1546915481
def Plugins(**kwargs):

0 commit comments

Comments
 (0)