Drm.DeviceGraphics devices.
Typically a device inside the /dev/dri/ directory.
Use list to find devices.
module Info : sig ... endval list : ?get_pci_revision:bool -> unit -> Info.t listlist () returns available graphics devices.
module Version : sig ... endMetadata about a device driver.
check_modesetting_supported busid checks if a modesetting capable driver has attached to the PCI ID busid.
Returns Unix.EINVAL for invalid bus id and Unix.ENOSYS if no modesetting support.
val is_master : t -> boolWhether this device is currently the DRM master.
val drop_master : t -> unitGive up being DRM master for now.
This allows the user to switch away to another VT.
val set_master : t -> unitBecome the DRM master.
This can only be called if t has been the master in the past or you have CAP_SYS_ADMIN, and if there is no current master. Opening a DRM device without a master makes you the master. This function is useful to become the master again after a VT switch.