feat: restore EDID on reboot (#34)

This commit adds the config entry "EdidString" and saves the EDID string
when it's modified via the RPC.

The EDID is restored when the jetkvm_native control socket connects
(usually at boot)

Signed-off-by: Cameron Fleming <cameron@nevexo.space>
This commit is contained in:
Cameron Fleming
2025-02-13 13:42:07 +00:00
committed by GitHub
parent d07bedb323
commit 0b5033f798
3 changed files with 23 additions and 0 deletions

View File

@@ -183,6 +183,12 @@ func rpcSetEDID(edid string) error {
if err != nil {
return err
}
// Save EDID to config, allowing it to be restored on reboot.
LoadConfig()
config.EdidString = edid
SaveConfig()
return nil
}