I have a software framework I wrote for a kiosk display this works very well at detecting during boot if an HDMI display is connected or not. Giving the framework the ability to run in different modes. Ie kiosk or headless.
My problem is I don't know how to detect other types of displays ie DSI namely the Official Touch Screen or RCA.
Is there a simple way to detect these other display modes?
If multiple displays are attached?
If one is added after booting like a daemon.(in this case name HDMI, I've considered polling the vcgencmd to detect HDMI hotplug)
The point of my script is to be able to take the SD from one environment and place it into another and have the framework launch the appropriate actions.
If it helps this is my screentype script it very simple but it works.
Thanks for any and all insights
Code: Select all
#!/bin/bash video="$(tvservice -s | sed "s/^.*\[\([^ ]*\) .*$/\1/" )" if [ "$video" != "HDMI" ]; then echo "headless" else echo "HDMI" fi