[vlc-devel] [PATCH 0/2] linux kms video out plugin patches.

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Thu Jan 10 13:21:52 CET 2019


Most important piece added here is earlier missed drmModeSetCrtc, this
will enable changing rendering pipe on connector if needed. Other there in
first patch are fixes for CRTC code which will allow KMS plugin to co-exist
with X server. After these patches it is possible to jump from X to text
terminal, view video using KMS and after come back to X.

Second patch allow choosing used connector. By default first enumerated
connected connector is chosen. This will introduce new commandline 
parameter for KMS plugin "kms-connector" which will accept number. Available
connectors are listed on debug information (verbose=2), though I'm still
thinking if connector numbers should be as running number starting from 1
listing only connected connectors.

After these patches I can get my video showing on secondary display for
example with this line where connector number 3 is my monitor connected to
display port:
./build/bin/vlc -I dummy --vout kms,none --kms-connector=3 --play-and-exit video.mp4

/Juha-Pekka

Juha-Pekka Heikkila (2):
  linux: Fix CRTC code in KMS plugin.
  linux: Add for kms vout plugin possibility to choose output display

 modules/video_output/kms.c | 245 +++++++++++++++++++++++++++++++--------------
 1 file changed, 170 insertions(+), 75 deletions(-)

-- 
2.7.4



More information about the vlc-devel mailing list