~/talk

Getting pixels on screen on Linux: introduction to Kernel Mode Setting

Talkat foss-north 2020 take ii · on Sunday, 2020-11-01· [linux-and-operating-systems]
slides:none on file

Shows how to get a solid red image on Linux screens by opening /dev/dri/card0, creating dumb buffers with the CREATE_DUMB ioctl, mmaping and filling pixels, importing with DRM_MODE_ADD_FB2, selecting a connector/crtc/plane and applying the change with atomic commits. Demo uses drm-info and a small client (repo linked) and displays a red screen (crtc 45, plane 31); it works but shows visible tearing, so double‑buffering and vblank handling are needed.

AI-written summary · about

  1. 0:00Introduction to KMS
  2. 1:30What is KMS
  3. 3:53Why use KMS
  4. 7:04Learning and setup
  5. 9:15Opening the GPU
  6. 12:01Working with connectors
  7. 17:03Frame buffers and formats
  8. 21:54Allocating and mapping
  9. 25:10CRTCs and planes
  10. 30:40Properties and configuration
  11. 35:36Atomic commits
  12. 44:05Demo and conclusion
  13. 48:37Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.