Comment 24 for bug 390917

Revision history for this message
Robert Hooker (sarvatt) wrote : Re: screenblank script unconditionally forces screen lock in KDE which causes crashing upon lid close under KMS.

Perhaps this should be marked invalid, more testing has shown that its a deeper rooted problem and workarounds that might only be needed temporarily aren't ideal. Not to mention, the fix I attached earlier ended up only working because of a mistake I made in it as I'll describe later..

The problem is --

1) The user using has KDE or Gnome set to "Blank Screen" on lid close with intel graphics.
2) They close the lid, approximately 1 minute later the system will not restore the screen. If they open the lid before then it restores fine.
3) Alternatively, it can also happen when the display is put to sleep via the display idle timeout settings.

Zorael and I have done some experimenting with different combinations of settings to see if we could figure out what was happening in his case (jaunty, KDE) What we tried:

1) Desktop power settings "Do Nothing"/stock screenblank script/lid close: verified screenblank script is being run, unrecoverable crash ~1 minute after screen blanks but restores fine if opened sooner. no KDE lid close event noise.
2) Desktop power settings "Do Nothing"/screenblank script that does not call xset dpms force off/lid close: no KDE lid close event noise, this works perfectly.
3) Desktop power settings "Blank Screen"/any acpi-support/lid close: Immediate unrecoverable crash after lid close, KDE lid close event noise.

In my patch above you can see I commented out one too many lines, the final fi that was commented ended up making the script a noop when xscreensaver isn't running which led us to find that it was the actual xset dpms force off call that was causing the hangs and not the lock part.

In all cases manually doing a "sudo xset dpms force off" instead of doing an actual lid close had the same results as the lid close incase its relevant. Interestingly, his results were identical in all cases both with and without KMS. Perhaps someone more knowledgeable about how it all works could extrapolate something out of all of that and I'm sorry for the noise. :)