1
0
Fork 0
hudctrl/svc
Dustin f9eaf9f9d7 svc: Load display config at startup
The biggest issue with the HUD controller right now is how it handles,
or rather does not handle, reconnecting to the display after the
controller restarts.  Since it is completely stateless, it does not
"remember" the display configuration, and thus does not know how to
connect to the display or what its monitor configuration is when it
first starts.  If the display is already running the the controller
starts up, it will not receive the request to initialize the display
until the display reboots.

To resolve this, the HUD controller needs to be able to load the display
configuration and initialize the display any time it starts up.  As
such, the `HUDService` class now attempts to load the state from a JSON
file in its startup hook.  If the file is available and valid, and
specifies the address and port of the display host, the controller will
open the Marionette connection.  If the file also contains valid list of
monitors, the display will be initialized.

The URL list is now also read from the same configuration file, so as to
avoid having to manage multiple files.
2022-12-18 12:52:01 -06:00
..
.vscode Initial commit 2022-04-30 13:32:42 -05:00
src/hudctrl svc: Load display config at startup 2022-12-18 12:52:01 -06:00
.flake8 Initial commit 2022-04-30 13:32:42 -05:00
.gitattributes Initial commit 2022-04-30 13:32:42 -05:00
.gitignore svc: Load display config at startup 2022-12-18 12:52:01 -06:00
.pylintrc Initial commit 2022-04-30 13:32:42 -05:00
poetry.lock svc: Remove playwright dependency 2022-08-02 21:51:45 -05:00
pyproject.toml svc: Set venv path for Pyright 2022-08-02 21:51:45 -05:00