sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #01377
Re: VPCZ11Z9E - screen does not light up on resume
On Mon, Jun 28, 2010 at 10:06 AM, Eric Lacombe <goretux@xxxxxxxxx> wrote:
> You have to put your commands in a script that will be executed on resume at
> the end. So create a script with a name like : 01sony-vaio (don't forget chmod
> +x).
I have the screen coming back on at resume, with a script in
/etc/pm/sleep.d/02screen based on these suggestions (details at bottom
of this email).
But there's a big problem -- xrandr changes the nominal screen
resolution when the display is disabled, it sets it to 320x200 which
appears to be some sort of built-in minimum. Then even though the
resolution is changed back again when the display comes back on, many
applications have already reconfigured themselves and are now squashed
into a tiny space in the top-left corner. Even if they were minimized
at the time, they still come up tiny when restored.
The output from xrandr --verbose is:
crtc 0: disable
screen 0: 320x200 84x52 mm 96.25dpi
when disabling and
screen 0: 1920x1080 499x280 mm 97.69dpi
crtc 0: 1920x1080 59.9 +0+0 "DP3"
when re-enabling. Anyone have any ideas about this one?
Chris
-- my current script:
#!/bin/bash
wake_screen() {
sleep 2
export DISPLAYUSER=`ps --no-heading -o user -C gnome-session`
export DISPLAY=:0.0
export XAUTHORITY=/home/"$DISPLAYUSER"/.Xauthority
for x in /var/run/gdm/auth-for-"$DISPLAYUSER"*/database ; do
if test -f "$x" ; then
export XAUTHORITY="$x"
fi
done
xrandr --verbose --output DP3 --off
xrandr --verbose --output DP3 --auto
}
case $1 in
hibernate) ;;
suspend) ;;
thaw|resume) wake_screen & ;;
*) ;;
esac
References