diff options
author | Leonardo Graboski Veiga <leogveiga@gmail.com> | 2017-03-29 10:34:21 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-04-10 09:11:43 +0200 |
commit | 80384c3824aa4c6d7a30dd74949b90b711006034 (patch) | |
tree | 3267f6c58e2c1a9435eb727e63631a4810a073df /recipes-core/hdmi-hotplug/files/hdmi.rules | |
parent | 2716f83906094878e24b93c8ae1b7c6babbb5076 (diff) |
hdmi-hotplug: fix issue for the apalis/colibri tegra modules
The hdmi.sh script, triggered by udev, export the DISPLAY environment
variable and uses the Xauthority configuration file to enable xrandr to
run.
Also restarts LXDE after xrandr, adjusting the taskbar length to the new
display width.
Signed-off-by: Leonardo Graboski Veiga <leogveiga@gmail.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-core/hdmi-hotplug/files/hdmi.rules')
-rw-r--r-- | recipes-core/hdmi-hotplug/files/hdmi.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-core/hdmi-hotplug/files/hdmi.rules b/recipes-core/hdmi-hotplug/files/hdmi.rules index fe6a1a1..adb63b2 100644 --- a/recipes-core/hdmi-hotplug/files/hdmi.rules +++ b/recipes-core/hdmi-hotplug/files/hdmi.rules @@ -7,4 +7,4 @@ #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'" +SUBSYSTEM=="switch", DEVPATH=="/devices/virtual/switch/hdmi", ATTR{state}=="1", RUN+="/etc/udev/scripts/hdmi.sh" |