Comment 2 for bug 1901430

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

This kept bothering me so I came up with a work-around. I put the following file (with chmod 755 so it could be executed) in /etc/pm/sleep.d/ and called it 20_map-to-display. You have to use the xinput and xrandr commands to determine what your display is called (where I have LVDS-1) and which input devices are not mapped properly (numbers to put in where I have 13, 14, and 16), and modify those parameters. I think I also had to install pm-utils with apt.

PATH=/sbin:/usr/sbin:/bin:/usr/bin

case "${1}" in
        resume|thaw)
                sleep 5
                xinput map-to-output 13 LVDS-1
                xinput map-to-output 14 LVDS-1
                xinput map-to-output 16 LVDS-1
;;

I hope this helps anyone else with my particular problem.