diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-09-21 08:50:28 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-09-29 20:59:56 +0200 |
commit | b5b993d760f006dfb167b6fa588b67855bdd5aa2 (patch) | |
tree | 5dd8a4e5da793450aff87024e9b54d25c6eb0763 /recipes-core/hdmi-hotplug | |
parent | 38e36609e4057bb0c26fabbaa86aa96e38d24bda (diff) |
apalis-tk1: hdmi: add udev rule to start an X output on hotplug
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'recipes-core/hdmi-hotplug')
-rw-r--r-- | recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules b/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules new file mode 100644 index 0000000..445bd72 --- /dev/null +++ b/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules @@ -0,0 +1,11 @@ +#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-0 --auto --primary --output LVDS-0 --auto --right-of HDMI-0'" +#SUBSYSTEM=="switch", DEVPATH=="/devices/virtual/switch/hdmi", ATTR{state}=="1", RUN+="/bin/sh -c 'DISPLAY=:0.0 xrandr --output LVDS-0 --auto --primary --output HDMI-0 --auto --right-of LVDS-0'" |