X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fdrm-lease-manager.git;a=blobdiff_plain;f=README.md;fp=README.md;h=84af0a7e7cb6ea57199186f51c2247f0a87b3092;hp=5368f6bd49ca8e75b70df685144f96c591fa940a;hb=bdf7c337439ff0b70b67462c1f00f5b61942e76a;hpb=ecaaf9e2ad40181d916049510823ce8557ecd91e diff --git a/README.md b/README.md index 5368f6b..84af0a7 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,26 @@ The names of the DRM leases will have the following pattern: So, for example, a DRM lease for the first LVDS device on the device `/dev/dri/card0` would be named `card0-LVDS-1`. +### Dynamic lease transfer + +When `drm-lease-manager` is started with the `-t` option, the +ownership of a leases resourses can be transfered from +one client to another. + +This allows the ownership of the leased resources to be transferred +without the display being closed and the screen blanking. +`drm-lease-manager` handles the timing of the tranfser and manages the +references to the DRM device, so that the last framebuffer of +the old client stays on screen until the new client presents its first frame. + +The transition can be completed without direct communication between the old +and new client applications, however, the client that the lease will be +transitioned *from* must be able to handle unexpected lease revokation. +Once the lease is revoked, all DRM API calls referring to the DRM +resources managed by the lease will fail with -ENOENT. The client +should be able to gracefully handle this condition by, for example, +pausing or shutting down its rendering operations. + ## Client API usage The libdmclient handles all communication with the DRM Lease Manager and provides file descriptors that