*** This bug is a duplicate of bug 1303736 ***
    https://bugs.launchpad.net/bugs/1303736

I have written an automated script to execute the "xrandr --auto"
command after resume. It solves the blank-screen problem for me.

1. Create the following file named "00_screen" in /etc/pm/sleep.d/

=================
#!/bin/bash
case "$1" in
    thaw|resume)
        sleep 5
        sudo -u <user> env DISPLAY=:0 /usr/bin/xrandr --auto
        ;;
    *)
        ;;
esac
==================

replace <user> with your username

2. Change it to be executable:

# chmod +x 00_screen

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1259339

Title:
  Xfce4 Power Manager does not restore screen power

To manage notifications about this bug go to:
https://bugs.launchpad.net/xfce4-power-manager/+bug/1259339/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to