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.sh | |
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.sh')
-rw-r--r-- | recipes-core/hdmi-hotplug/files/hdmi.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-core/hdmi-hotplug/files/hdmi.sh b/recipes-core/hdmi-hotplug/files/hdmi.sh new file mode 100644 index 0000000..6a3a6dc --- /dev/null +++ b/recipes-core/hdmi-hotplug/files/hdmi.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +export XAUTHORITY=/home/root/.Xauthority +export DISPLAY=:0.0 +DISPLAY=:0.0 xrandr --output HDMI-1 --auto +lxpanelctl restart |