Comment 4 for bug 1901430

Revision history for this message
Rob Frohne (frohro) wrote :

Okay, so here is the new work-around. You put this file in /usr/lib/systemd/system-sleep/
I called it 20_map-to-display. Call it what you like. It needs to be executable.

#!/bin/sh
export HOME=/home/frohro/
export DISPLAY=:0

case $1/$2 in
        post/*)
                /usr/bin/su frohro -c "/usr/bin/sleep 3;/usr/bin/xinput map-to-output 13 LVDS-1"
                /usr/bin/su frohro -c "/usr/bin/sleep 3;/usr/bin/xinput map-to-output 14 LVDS-1"
                /usr/bin/su frohro -c "/usr/bin/sleep 3;/usr/bin/xinput map-to-output 16 LVDS-1"
;;
esac

I hope this is useful to someone else.