mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
rpi app will now add mousepoll parameter to cmdline.txt if doesnt exist
This commit is contained in:
@@ -58,6 +58,16 @@ def check_rpi_model():
|
||||
|
||||
check_rpi_model()
|
||||
|
||||
try:
|
||||
boot_config = os.popen('cat /boot/cmdline.txt').read()
|
||||
if "usbhid.mousepoll".lower() not in boot_config.lower():
|
||||
print("@@@@@@@@@@@@ writing usbhid.mousepoll to /boot/cmdline.txt @@@@@@@@@@@@")
|
||||
new_config = boot_config.replace('\r', '').replace('\n', '').strip() + ' usbhid.mousepoll=0\n'
|
||||
with open('/boot/cmdline.txt', 'w') as ffff:
|
||||
ffff.write(new_config)
|
||||
except Exception as e:
|
||||
print('usbhid.mousepoll exception:', e)
|
||||
|
||||
usb4vc_ui.ui_init()
|
||||
usb4vc_ui.ui_thread.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user