Hello there, I’ve been trying to play videos through the tty like this and this. All discussion of this feature implies that it just works, but I can only get tct (true colour terminal) to work.
Does anyone know how to make it work? Using --vo=drm gave this error:
(+) Video --vid-1 (*) (h264 1920x1080 59.940fps)
(+) Audio --aid-1 --alang=eng (*) (aac 2ch 48000Hz)
[vo/drm] VT GETMODE failed: Inappropriate toctl for device [vo/drm] Failed to set up VT switcher. Terminal switching will be unavailable. [vo/drm/kms] No connected connectors found
[vo/drm] Failed to create KMS.
Error opening/initializing the selected video_out (--vo) device.
Video: no video
Okay, so I did some messing around and have found that: mpv --drm-connector=help lists all cards that can provide drm support. I did that command and got the following output:
Available connectors for card 0 (/dev/dri/card1):
DP-1 (disconnected)
HDMI-A-1 (disconnected)
Available connectors for card 1 (/dev/dri/card®): eDP-1 (connected)
Okay, so that means that mpv has no access to drm when I use mpv --vo=drm , but, cat /sys/class/drm/card0-eDP-1/status returns connected…
If I start mpv with mpv --vo-drm --gpu-context-drm --drm-connector-1.DP-1 file.mp4 it gives somewhat of a different error:
[vo/drm] VT GETMODE failed: Inappropriate toctl for device
[vo/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/drm] Warning: Selecting a connector by index with drm-connector is deprecated. Use the drm-device option instead.
[vo/drm/kms] No connector with-name DP-1 found [vo/drm/kms] Available connectors for card 1 (/dev/drt/card®):
[vo/drm/kms] eDP-1 (connected) [vo/drm/kms]
[vo/drm] Failed to create KMS.
Error opening/initializing the selected video_out (--vo) device.
Video: no video