I am trying to write an add-on to let HAOS users view dashboards using the native HDMI port of their RPi device.
I do this by creating a docker container with Xorg
window system, Openbox
window manager, and Luakit
browser.
I now have it all working perfectly in a manually-built and run docker container.
When I convert that to a HAOS add-on, it builds fine but it is unable to launch Xorg since X requires access to /dev/tty0 and HAOS won’t allow it.
I tried changing various combinations of options to Xorg to hopefully avoid the need for a tty device (e.g., -retro, -nobackground, -noreset, -nolisten, -novtswitch, -keeptty, etc.).
Similarly, I tried adding the “NoTrapSignals”, “DontVTSwitch” and “DontZap” options to xorg.conf.
But none of that helped.
I tried adding /dev/tty0
to the devices section in config.yaml
to no avail.
I tried opening up security by adding apparmour:unconstrained
to security_opt
– but again that failed.
So I am stuck between a rock and a hard place:
- Xorg stubbornly requires terminal access
- HAOS stubbornly refuses such access
I need one of them to relent
Any suggestions?
AND YES - I know that there are people who believe that the HAOS server should not be used to display dashboards but others of us don’t want to add additional PCs/tablets/RPis to our network and like the idea of seeing dashboards right on the HA server.