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.
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
/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"
post/*)
;;
esac
I hope this is useful to someone else.