mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-05-07 21:46:07 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user