Merge pull request #217 from cuu/master

...
This commit is contained in:
GNU 2019-06-12 20:16:27 +08:00 committed by GitHub
commit 16b226dbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,10 +172,10 @@ class GPUDriverPage(Page):
if "modesetting" in cur_li._Value: if "modesetting" in cur_li._Value:
os.system("touch %s/.lima" % os.path.expanduser('~') ) os.system("touch %s/.lima" % os.path.expanduser('~') )
os.system("sudo mv /usr/lib/xorg/modules/drivers/modesetting_drv.so /usr/lib/xorg/modules/drivers/modesetting_drv.so.lima") os.system("sudo mv /usr/lib/xorg/modules/drivers/modesetting_drv.so.lima /usr/lib/xorg/modules/drivers/modesetting_drv.so")
else: else:
os.system("rm %s/.lima" % os.path.expanduser('~') ) os.system("rm %s/.lima" % os.path.expanduser('~') )
os.system("sudo mv /usr/lib/xorg/modules/drivers/modesetting_drv.so.lima /usr/lib/xorg/modules/drivers/modesetting_drv.so") os.system("sudo mv /usr/lib/xorg/modules/drivers/modesetting_drv.so /usr/lib/xorg/modules/drivers/modesetting_drv.so.lima")
pygame.time.delay(800) pygame.time.delay(800)
os.system("sudo reboot") os.system("sudo reboot")