Cuttlefish: Display hotplug

Cuttlefish virtual devices can handle display hotplugs, which allow devices to connect and disconnect displays at runtime, by using the cvd_display command-line interface.

Add

To add displays, run:

cvd display add \
--display=width=WIDTH-0,height=HEIGHT-0 \
--display=width=WIDTH-1,height=HEIGHT-1

List

To list the current displays and their display IDs, run:

cvd display list

Remove

To remove displays, run:

cvd display remove \
--display=FIRST-DISPLAY-ID \
--display=SECOND-DISPLAY-ID \
...

The display IDs can be found using the cvd display list command.