Skip to content

Dual Screen

seahawk1986 edited this page Aug 3, 2019 · 1 revision

yavdr-ansible supports a dual screen configuration. The primary display by default shows the VDR-frontend, KODI or other programs started. If a secondary display has been detected, it is used to show a website provided by the osd2web plugin.

In order to exchange the programs displayed on the primary and secondary screen, one can call /var/lib/vdr/bin/switch-displays from within the systemd user session (e.g. using irexec) by executing it as root with the environment variable DBUS_SESSION_BUS_ADDRESS=/run/user/666 set.

osd2web on the second display

If a DISPLAY with the address :0.1 exists (this should be the case, if the Ansible playbook detected and configured a second display), a webbrowser (default: kiosk-browser) is started to show a website provided by osd2web.

This feature is provided by the systemd unit /var/lib/vdr/.config/systemd/user/osd2web.service. You can override the environment variables url and browser by creating an environment file /var/lib/vdr/.config/osd2web/config.

In order to change the pre-configured anthraize theme to the bluecd theme, you could define the variable url like this (?onlyView=1 hides the control elements which allow to control the vdr via osd2web):

url="http://192.168.1.30:4444/skins/horchiTft/index.html?theme=bluecd?onlyView=1"

osd2web listens on port 4444, the entry site shows the themes available and their respective urls.

Clone this wiki locally