Skip to content

Instantly share code, notes, and snippets.

@rootnotez
rootnotez / LinuxGraphicsComponents.md
Last active August 23, 2025 20:24
Linux Graphics Terms and Troubleshooting

Linux Graphics Components

  • Compositors: Combine and render multiple graphical elements into a final display output. In X11, use the Composite extension to work with the X server, managing window transparency, effects, and desktop composition (ex: Compiz, KWin, Mutter). In Wayland, the compositor is the display server itself (ex: Weston, Sway, GNOME mutter-wayland). Compositors interact with the graphics stack through DRM/KMS for direct hardware access and use EGL or similar APIs for GPU-accelerated rendering.
  • DRM (Direct Rendering Manager): A subsystem of the Linux kernel that provides an interface to graphics hardware. It manages GPU memory, handles synchronization, and enables direct rendering, which allows applications to send commands directly to the graphics hardware for better performance.
  • EGL (Embedded Graphics Library): An interface between rendering APIs (such as OpenGL, OpenGL ES, or Vulkan) and the underlying native platform windowing system. Used for context management and surf

Gstreamer Debugging

Debuggging and troubleshooting

Command-line Tools

Show what debug options can be enabled.
gst-launch-1.0 --gst-debug-help

View negotiated caps with gst-launch-1.0 --verbose
gst-launch-1.0 -v videotestsrc ! videoconvert ! autovideosink