From 4ca0edda97444c8a811f9783d7ef3110227e367a Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 11 May 2021 16:58:45 +0200 Subject: [PATCH] Change wwan power command (#20874) --- selfdrive/thermald/thermald.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 6bd36b55b2..b7480a9ce6 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -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