Skip to content

Commit ec47a9e

Browse files
authored
Manager: delay ui start (commaai#238)
* remove unused * start ui at the end * Revert "remove unused" This reverts commit f1cf4a597295da62bc93e4e858423cd50d439824.
1 parent 2741088 commit ec47a9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

selfdrive/manager/manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ def main() -> None:
261261
manager_init()
262262

263263
# Start UI early so prepare can happen in the background
264-
if not prepare_only:
265-
managed_processes['ui'].start()
264+
#if not prepare_only:
265+
# managed_processes['ui'].start()
266266

267267
manager_prepare()
268268

selfdrive/manager/process_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def qcomgps(started, params, CP: car.CarParams) -> bool:
4747
NativeProcess("mapsd", "selfdrive/navd", ["./mapsd"]),
4848
NativeProcess("navmodeld", "selfdrive/modeld", ["./navmodeld"]),
4949
NativeProcess("sensord", "system/sensord", ["./sensord"], enabled=not PC),
50-
NativeProcess("ui", "selfdrive/ui", ["./ui"], offroad=True, watchdog_max_dt=(5 if not PC else None), always_watchdog=True),
5150
NativeProcess("soundd", "selfdrive/ui/soundd", ["./soundd"]),
5251
NativeProcess("locationd", "selfdrive/locationd", ["./locationd"]),
5352
NativeProcess("boardd", "selfdrive/boardd", ["./boardd"], enabled=False),
@@ -70,6 +69,7 @@ def qcomgps(started, params, CP: car.CarParams) -> bool:
7069
PythonProcess("updated", "selfdrive.updated", enabled=not PC, onroad=False, offroad=True),
7170
PythonProcess("uploader", "system.loggerd.uploader", offroad=True),
7271
PythonProcess("statsd", "selfdrive.statsd", offroad=True),
72+
NativeProcess("ui", "selfdrive/ui", ["./ui"], offroad=True, watchdog_max_dt=(5 if not PC else None), always_watchdog=True),
7373

7474
PythonProcess("gpxd", "selfdrive.gpxd.gpxd"),
7575
PythonProcess("gpxd_uploader", "selfdrive.gpxd.gpx_uploader", offroad=True),

0 commit comments

Comments
 (0)