Comment 4 for bug 1197102

Revision history for this message
filip (bandit-s-fw) wrote :

With recent updates i think the gpu doesn't hang anymore.
checked the i915_error_state, no error state collected

But however when the laptop is idle and screens blanks i still can't get my screen back.
I can see my desktop for a fraction of a second when i swith VT after that i only get a black screen and my mouse pointer (which i can move).
I have fiddled with my setup of my custom xrandr script but nothing helps.
What i did is in lightdm.conf
i use display-setup-script=/usr/share/test.sh
and session-setup-script=/usr/share/test.sh

and my test.sh contains the following:
#!/bin/sh
export DISPLAY=:0
xrandr --output LVDS1 --mode 1280x800 --scale 1.5x1.5
xrandr --output LVDS1 --mode 1280x800 --scale 1.5x1.5 --panning 1920x1200 --pos 0x0 --rotate normal --output TV1 --off --output VGA1 --off

i have to issue the xrandr twice. The first time it scales the screen but there is right and under a black border. Also i need to add the panning otherwise i can't get with the pointer to the right bottom off the screen (even after issuing the same command without the panning i can't get there.) its get stuck in the corner in the corner of the border of the first scale action.

i use the script to get a higher resolution of my screen than it actually is. normaly it is 1280x800 but i find that the icons etc are to large.

if i kill compiz i get my screen back also with setsid unity i get my screen back. however some things are missing like the icons in the left corner. But maybe thats normal.
If i restart lightdm i get my session back like normal. Now this always works as opposed to when i first reported the bug. Probably due to the gpu hang that is resolved.