ubuntu 11.04 natty screensaver hang issue

31 05 2011

Since upgrading to Ubuntu 11.04 I have been plagued by the dreaded locking screensaver / login / desktop issue after a period of time when the screensaver or blank screen is on. The symptoms of this are the screensaver appears to freeze without giving you the login box to enter your password, you can still move the mouse, you can still switch to a text console session.

This bug appears to be tracking it: https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/762918

A combination of killing gnome-screensaver & disabling VBlank in Compiz seems to have done the trick for me.

Putting this up here for anyone else who may be seeing this issue, hope it helps.

I switch to a console session using Ctrl+Alt+F1 & kill the gnome-screensaver

sudo killall gnome-screensaver

Switch back to X using Crtl+Alt+F7 & see if this fixed it & you can login again.

If not, you may also need to kill Compiz (I did)

sudo killall -w -s KILL compiz

Once back in gnome – you need to install the CompixConfig Settings Manager

sudo apt-get install compizconfig-settings-manager

Launch the compizconfig-settings-manager (Launcher, type compiz & click on the App) – then disable (Uncheck) the OpenGL option to “Sync to VBlank” under General / OpenGL

Doing this seems (fingers crossed, your mileage may vary) the problem.