Add notes for rebooting status
All checks were successful
Basic Cargo Checks / docker-build (push) Successful in 50s
Basic Cargo Checks / docker-check (push) Successful in 10m52s

Turns out, long shutdown-before-reboot is why things get desynced after
a while. There's a random thread that can wait up to 10s before dying,
and that's what causes the "drops", which are actually more akin to
"desync"s.
This commit is contained in:
Blizzard Finnegan 2023-06-12 15:02:51 -04:00
parent 6f1ac51630
commit 7cf87ee58a
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E
2 changed files with 8 additions and 2 deletions

6
notes.md Normal file
View file

@ -0,0 +1,6 @@
Boot time isn't static.
Boot time can (in theory) be sped up by forcing a clearing of the screen of all vitals before rebooting.
Clearing the screen of all vitals is theoretically possible in the UI menu, with a Spoof Touch, but I don't know the object name of the 'clear' button.
Can check for reboot completed by reading in serial, check for `reboot: Restarting System`
once done, read for `login:`

View file

@ -2,8 +2,8 @@ use std::{fs::{self, File}, path::Path, io::Write, thread, time::Duration};
use crate::tty::{TTY, Response,Command}; use crate::tty::{TTY, Response,Command};
use rppal::gpio::{Gpio,OutputPin}; use rppal::gpio::{Gpio,OutputPin};
const BOOT_TIME:Duration = Duration::new(40, 0); const BOOT_TIME:Duration = Duration::new(50, 0);
const BP_RUN:Duration = Duration::new(55, 0); const BP_RUN:Duration = Duration::new(60, 0);
const REBOOTS_SECTION: &str = "Reboots: "; const REBOOTS_SECTION: &str = "Reboots: ";
const BP_SECTION: &str = "Successful BP tests: "; const BP_SECTION: &str = "Successful BP tests: ";
const TEMP_SECTION: &str = "Successful temp tests: "; const TEMP_SECTION: &str = "Successful temp tests: ";