mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
gpu driver switch bug fix
This commit is contained in:
parent
8b9dba21e5
commit
47f0fdab97
@ -197,9 +197,9 @@ class LanguagesPage(Page):
|
|||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
|
|
||||||
if "modesetting" in cur_li._Value:
|
if "modesetting" in cur_li._Value:
|
||||||
os.system("touch ~/.lima")
|
os.system("touch %s/.lima" % os.path.expanduser('~') )
|
||||||
else:
|
else:
|
||||||
os.system("rm ~/.lima")
|
os.system("rm %s/.lima" % os.path.expanduser('~') )
|
||||||
|
|
||||||
pygame.time.delay(800)
|
pygame.time.delay(800)
|
||||||
os.system("sudo reboot")
|
os.system("sudo reboot")
|
||||||
@ -220,14 +220,17 @@ class LanguagesPage(Page):
|
|||||||
thedrv = ""
|
thedrv = ""
|
||||||
|
|
||||||
if "arm" in platform.machine():
|
if "arm" in platform.machine():
|
||||||
if FileExists("~/.lima"):
|
if FileExists("%s/.lima" % os.path.expanduser('~')):
|
||||||
thedrv = "modesetting"
|
thedrv = "modesetting"
|
||||||
else:
|
else:
|
||||||
thedrv = "fbturbo"
|
thedrv = "fbturbo"
|
||||||
|
|
||||||
if thedrv == "":
|
if thedrv == "":
|
||||||
thedrv = "fbturbo"
|
thedrv = "fbturbo"
|
||||||
|
|
||||||
|
for i in self._MyList:
|
||||||
|
i._Active = False
|
||||||
|
|
||||||
for i in self._MyList:
|
for i in self._MyList:
|
||||||
if thedrv in i._Value:
|
if thedrv in i._Value:
|
||||||
i._Active = True
|
i._Active = True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user