From 491b9879861573db507cf0429fcf5e2d75a2e265 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 21 Oct 2013 20:33:30 +0200 Subject: hdmi: add udev rule to start an X output on hotplug --- recipes-core/hdmi-hotplug/files/hdmi.rules | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes-core/hdmi-hotplug/files/hdmi.rules (limited to 'recipes-core/hdmi-hotplug/files') diff --git a/recipes-core/hdmi-hotplug/files/hdmi.rules b/recipes-core/hdmi-hotplug/files/hdmi.rules new file mode 100644 index 0000000..fe6a1a1 --- /dev/null +++ b/recipes-core/hdmi-hotplug/files/hdmi.rules @@ -0,0 +1,10 @@ +#UDEV [504.185864] change /devices/virtual/switch/hdmi (switch) +#ACTION=change +#DEVPATH=/devices/virtual/switch/hdmi +#SEQNUM=1794 +#SUBSYSTEM=switch +#SWITCH_NAME=hdmi +#SWITCH_STATE=0 +#USEC_INITIALIZED=4180704 + +SUBSYSTEM=="switch", DEVPATH=="/devices/virtual/switch/hdmi", ATTR{state}=="1", RUN+="/bin/sh -c 'DISPLAY=:0.0 xrandr --output HDMI-1 --auto'" -- cgit v1.2.3