Display¶
Runnable example
python/examples/display_config.py — reads the current resolution, applies 1024×768, then restores it.
resoio.display.DisplayClient ¶
Bases: _BaseClient[DisplayStub]
Async client for the Resonite IO Display service over a UDS.
Use as an async context manager so the gRPC channel closes deterministically.
Source code in src/resoio/_client.py
apply
async
¶
Apply a partial display config; 0 / 0.0 mean "leave
unchanged".
Returns None by contract — engine settings dispatch hops to the
engine thread, so the post-apply snapshot is not reliable in the
same RPC. Call :meth:get afterwards if you need the new state
(see display.proto for the full rationale).
Source code in src/resoio/display.py
get
async
¶
Return the engine-side display state without modifying it.
resoio.display.DisplayInfo
dataclass
¶
Snapshot of engine-side display settings.
max_fps is the background fps cap; foreground control is not
exposed by the engine public Settings API.