Skip to content

Instantly share code, notes, and snippets.

@lucmann
Created August 5, 2024 08:08
Show Gist options
  • Save lucmann/ca7bf22b7c74c975d55b5cdb63f7638c to your computer and use it in GitHub Desktop.
Save lucmann/ca7bf22b7c74c975d55b5cdb63f7638c to your computer and use it in GitHub Desktop.
drm_info output on WSL2
Node: /dev/dri/card0
├───Driver: vkms (Virtual Kernel Mode Setting) version 1.0.0 (20180514)
│ ├───DRM_CLIENT_CAP_STEREO_3D supported
│ ├───DRM_CLIENT_CAP_UNIVERSAL_PLANES supported
│ ├───DRM_CLIENT_CAP_ATOMIC supported
│ ├───DRM_CLIENT_CAP_ASPECT_RATIO supported
│ ├───DRM_CLIENT_CAP_WRITEBACK_CONNECTORS supported
│ ├───DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT not supported
│ ├───DRM_CAP_DUMB_BUFFER = 1
│ ├───DRM_CAP_VBLANK_HIGH_CRTC = 1
│ ├───DRM_CAP_DUMB_PREFERRED_DEPTH = 0
│ ├───DRM_CAP_DUMB_PREFER_SHADOW = 0
│ ├───DRM_CAP_PRIME = 3
│ ├───DRM_CAP_TIMESTAMP_MONOTONIC = 1
│ ├───DRM_CAP_ASYNC_PAGE_FLIP = 0
│ ├───DRM_CAP_CURSOR_WIDTH = 512
│ ├───DRM_CAP_CURSOR_HEIGHT = 512
│ ├───DRM_CAP_ADDFB2_MODIFIERS = 1
│ ├───DRM_CAP_PAGE_FLIP_TARGET = 0
│ ├───DRM_CAP_CRTC_IN_VBLANK_EVENT = 1
│ ├───DRM_CAP_SYNCOBJ = 0
│ ├───DRM_CAP_SYNCOBJ_TIMELINE = 0
│ └───DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP not supported
├───Device: platform vkms
│ └───Available nodes: primary
├───Framebuffer size
│ ├───Width: [20, 8192]
│ └───Height: [20, 8192]
├───Connectors
│ ├───Connector 0
│ │ ├───Object ID: 36
│ │ ├───Type: virtual
│ │ ├───Status: unknown
│ │ ├───Physical size: 0x0 mm
│ │ ├───Subpixel: unknown
│ │ ├───Encoders: {0}
│ │ └───Properties
│ │ ├───"DPMS": enum {On, Standby, Suspend, Off} = On
│ │ ├───"link-status": enum {Good, Bad} = Good
│ │ ├───"non-desktop" (immutable): range [0, 1] = 0
│ │ ├───"TILE" (immutable): blob = 0
│ │ └───"CRTC_ID" (atomic): object CRTC = 0
│ └───Connector 1
│ ├───Object ID: 43
│ ├───Type: writeback
│ ├───Status: unknown
│ ├───Physical size: 0x0 mm
│ ├───Subpixel: unknown
│ ├───Encoders: {1}
│ └───Properties
│ ├───"DPMS": enum {On, Standby, Suspend, Off} = On
│ ├───"link-status": enum {Good, Bad} = Good
│ ├───"non-desktop" (immutable): range [0, 1] = 0
│ ├───"TILE" (immutable): blob = 0
│ ├───"CRTC_ID" (atomic): object CRTC = 0
│ ├───"WRITEBACK_OUT_FENCE_PTR" (atomic): range [0, UINT64_MAX] = 0
│ ├───"WRITEBACK_FB_ID" (atomic): object framebuffer = 0
│ └───"WRITEBACK_PIXEL_FORMATS" (atomic, immutable): blob = 42
│ ├───XRGB8888 (0x34325258)
│ ├───XRGB16161616 (0x38345258)
│ ├───ARGB16161616 (0x38345241)
│ └───RGB565 (0x36314752)
├───Encoders
│ ├───Encoder 0
│ │ ├───Object ID: 37
│ │ ├───Type: virtual
│ │ ├───CRTCS: {0}
│ │ └───Clones: {0}
│ └───Encoder 1
│ ├───Object ID: 38
│ ├───Type: virtual
│ ├───CRTCS: {0}
│ └───Clones: {1}
├───CRTCs
│ └───CRTC 0
│ ├───Object ID: 35
│ ├───Legacy info
│ │ └───Gamma size: 0
│ └───Properties
│ ├───"ACTIVE" (atomic): range [0, 1] = 0
│ ├───"MODE_ID" (atomic): blob = 0
│ ├───"OUT_FENCE_PTR" (atomic): range [0, UINT64_MAX] = 0
│ └───"VRR_ENABLED": range [0, 1] = 0
└───Planes
├───Plane 0
│ ├───Object ID: 31
│ ├───CRTCs: {0}
│ ├───Legacy info
│ │ ├───FB ID: 0
│ │ └───Formats:
│ │ ├───XRGB8888 (0x34325258)
│ │ ├───XRGB16161616 (0x38345258)
│ │ └───RGB565 (0x36314752)
│ └───Properties
│ ├───"type" (immutable): enum {Overlay, Primary, Cursor} = Primary
│ ├───"FB_ID" (atomic): object framebuffer = 0
│ ├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1
│ ├───"CRTC_ID" (atomic): object CRTC = 0
│ ├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 0
│ ├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 0
│ ├───"CRTC_W" (atomic): range [0, INT32_MAX] = 0
│ ├───"CRTC_H" (atomic): range [0, INT32_MAX] = 0
│ ├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0
│ ├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0
│ ├───"SRC_W" (atomic): range [0, UINT32_MAX] = 0
│ ├───"SRC_H" (atomic): range [0, UINT32_MAX] = 0
│ └───"IN_FORMATS" (immutable): blob = 32
│ └───DRM_FORMAT_MOD_LINEAR (0x0)
│ ├───XRGB8888 (0x34325258)
│ ├───XRGB16161616 (0x38345258)
│ └───RGB565 (0x36314752)
└───Plane 1
├───Object ID: 33
├───CRTCs: {0}
├───Legacy info
│ ├───FB ID: 0
│ └───Formats:
│ ├───ARGB8888 (0x34325241)
│ ├───XRGB8888 (0x34325258)
│ ├───XRGB16161616 (0x38345258)
│ ├───ARGB16161616 (0x38345241)
│ └───RGB565 (0x36314752)
└───Properties
├───"type" (immutable): enum {Overlay, Primary, Cursor} = Cursor
├───"FB_ID" (atomic): object framebuffer = 0
├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1
├───"CRTC_ID" (atomic): object CRTC = 0
├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 0
├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 0
├───"CRTC_W" (atomic): range [0, INT32_MAX] = 0
├───"CRTC_H" (atomic): range [0, INT32_MAX] = 0
├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0
├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0
├───"SRC_W" (atomic): range [0, UINT32_MAX] = 0
├───"SRC_H" (atomic): range [0, UINT32_MAX] = 0
└───"IN_FORMATS" (immutable): blob = 34
└───DRM_FORMAT_MOD_LINEAR (0x0)
├───ARGB8888 (0x34325241)
├───XRGB8888 (0x34325258)
├───XRGB16161616 (0x38345258)
├───ARGB16161616 (0x38345241)
└───RGB565 (0x36314752)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment