protocol: ask for the car's screen with reason unknown, not 'phone screen off'

This commit is contained in:
Seb3thehacker committed 2026-10-27 14:33:10 -07:00
1 parent e9d4203d58
commit 89dd28bd62
1 file changed
+4 -2
@@ -1006,9 +1006,11 @@ class GearslipRunner(
"${videoConfigs.getOrNull(selectedConfigIndex ?: -1)?.resolutionName ?: "?"} " + "${videoConfigs.getOrNull(selectedConfigIndex ?: -1)?.resolutionName ?: "?"} " +
"(head unit offered ${offered.size}), max_unacked=$maxUnacked", "(head unit offered ${offered.size}), max_unacked=$maxUnacked",
) )
// VideoFocusRequestNotification { mode = 2; reason = 3 } // VideoFocusRequestNotification { mode = 2; reason = 3 }. Reason 1 means "the phone's
// screen is off", which a 2020 Civic may have taken as a reason to keep its own
// screen (issue #43); 0 is UNKNOWN.
val focus = Protobuf.varintField(2, VIDEO_FOCUS_PROJECTED.toLong()) + val focus = Protobuf.varintField(2, VIDEO_FOCUS_PROJECTED.toLong()) +
Protobuf.varintField(3, 1L) Protobuf.varintField(3, 0L)
send(MSG_VIDEO_FOCUS_REQUEST, focus, encrypted = true, channel = videoChannelId) send(MSG_VIDEO_FOCUS_REQUEST, focus, encrypted = true, channel = videoChannelId)
log.i("-> VideoFocusRequest(mode=PROJECTED)") log.i("-> VideoFocusRequest(mode=PROJECTED)")
} }