Add notes for rebooting status
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:
parent
6f1ac51630
commit
7cf87ee58a
2 changed files with 8 additions and 2 deletions
6
notes.md
Normal file
6
notes.md
Normal 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:`
|
|
@ -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: ";
|
||||||
|
|
Loading…
Add table
Reference in a new issue