summaryrefslogtreecommitdiff
path: root/recipes-core/hdmi-hotplug/files/apalis-tk1
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/hdmi-hotplug/files/apalis-tk1')
-rw-r--r--recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules11
-rw-r--r--recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.sh6
2 files changed, 6 insertions, 11 deletions
diff --git a/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules b/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules
deleted file mode 100644
index 445bd72..0000000
--- a/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.rules
+++ /dev/null
@@ -1,11 +0,0 @@
-#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'"
diff --git a/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.sh b/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.sh
new file mode 100644
index 0000000..43c5459
--- /dev/null
+++ b/recipes-core/hdmi-hotplug/files/apalis-tk1/hdmi.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+export XAUTHORITY=/home/root/.Xauthority
+export DISPLAY=:0.0
+DISPLAY=:0.0 xrandr --output HDMI-0 --auto --primary --output LVDS-0 --auto --right-of HDMI-0
+lxpanelctl restart