LE11 - Select video output device?

  • Hi.

    I'm using LE 11 on my Asrock Beebox i5 7200(like a Intel NUC).

    It is connected to an Monitor (1080p) and an TV (4K).

    Depending on where I sit, i select one of the devices as video output device using an sh-script with an xandr command via Yatse:

    Code
    xrandr --output "DP2" --off --output "DP1" --auto

    Since LE 11 there is no xandr. The option to select the display in kodi settings is also gone.

    Is there any way to select the video output device? On the fly or with reboot?

    Currently i can only switch by pulling the DP Cable.

    Best regards

  • The kernel DRM layer exposes cards and 'connectors' see "tail /sys/class/drm/*/status" and it's possible to delete connectors (and thus prevent them being used) via kernel boot params. For example, appending "video=HDMI-A-1:d" to params in /flash/syslinux.cfg will prevent that connection from being used/visible to userspace. So you can script making /flash read-write and then use sed or awk to rewrite the boot params; then reboot to effect the change.