|
172 | 172 | if find_library("usb-0.1") is not None or find_library("usb-1.0") is not None: |
173 | 173 | print("[LCD4linux] libusb found :-)", getEnigmaVersionString()) |
174 | 174 | 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 |
175 | 179 | Version = "V5.0-r22" |
176 | 180 | L4LElist = L4Lelement() |
177 | 181 | L4LdoThread = True |
@@ -2656,7 +2660,7 @@ def getFB2(check): |
2656 | 2660 |
|
2657 | 2661 | def BRI(w1, w2): |
2658 | 2662 | gb = L4LElist.getBrightness(w2, False) |
2659 | | - return int(w1) if gb == -1 else gb |
| 2663 | + return w1 if gb == -1 else gb |
2660 | 2664 |
|
2661 | 2665 |
|
2662 | 2666 | def virtBRI(LCD): |
@@ -10313,7 +10317,7 @@ def getNumber(actservice): |
10313 | 10317 | service = servicelist.getNext() |
10314 | 10318 | if not service.valid(): # check end of list |
10315 | 10319 | break |
10316 | | - playable = not (service.flags & mask) or (service.flags & eServiceReference.isNumberedMarker) |
| 10320 | + playable = not (service.flags & mask) |
10317 | 10321 | if playable: |
10318 | 10322 | number += 1 |
10319 | 10323 | # L4logE(" ",service.getPath()) |
@@ -15288,7 +15292,7 @@ def Lput4(LCD, SCR, FUNC, PARA): |
15288 | 15292 | if "2" in LCD4linux.PopupLCD.value and LCD4linux.LCDType2.value != "00": |
15289 | 15293 | Brief2.put([putPopup, Para, 2, 2]) |
15290 | 15294 | 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]) |
15292 | 15296 | # show isCrashlog |
15293 | 15297 | if LCD4linux.Crash.value == True: |
15294 | 15298 | Brief1.put([putCrash, 1, 1]) |
@@ -15463,7 +15467,15 @@ def autostart(reason, **kwargs): |
15463 | 15467 |
|
15464 | 15468 |
|
15465 | 15469 | 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 [] |
15467 | 15479 |
|
15468 | 15480 |
|
15469 | 15481 | def Plugins(**kwargs): |
|
0 commit comments