summaryrefslogtreecommitdiff
path: root/recipes-core/hdmi-hotplug/files/hdmi.rules
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2013-10-21 20:33:30 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2013-10-21 20:33:30 +0200
commit491b9879861573db507cf0429fcf5e2d75a2e265 (patch)
tree2c8b300b61c8d404edfff9fcfef631575aa7541c /recipes-core/hdmi-hotplug/files/hdmi.rules
parent64becaba0c1d33fa2536fcf2a00ee9da93ec657e (diff)
hdmi: add udev rule to start an X output on hotplug
Diffstat (limited to 'recipes-core/hdmi-hotplug/files/hdmi.rules')
-rw-r--r--recipes-core/hdmi-hotplug/files/hdmi.rules10
1 files changed, 10 insertions, 0 deletions
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'"