mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 14:02:05 +08:00
Change wwan power command (#20874)
This commit is contained in:
@@ -351,8 +351,8 @@ def thermald_thread():
|
||||
params.put_bool("IsOffroad", not should_start)
|
||||
HARDWARE.set_power_save(not should_start)
|
||||
if TICI and not params.get_bool("EnableLteOnroad"):
|
||||
fxn = "stop" if should_start else "start"
|
||||
os.system(f"sudo systemctl {fxn} --no-block lte")
|
||||
fxn = "off" if should_start else "on"
|
||||
os.system(f"nmcli radio wwan {fxn}")
|
||||
|
||||
if should_start:
|
||||
off_ts = None
|
||||
|
||||
Reference in New Issue
Block a user