I have a Dell Latitude E5400 with Ubuntu 11.10, and I have noticed a problem when waking up from sleep. I would close my lid, the laptop would go to sleep, but when I open the lid and it wakes up it shows my locked screen for a couple of seconds and then logs me out and takes me back to the login screen.
I had this problem earlier, but I figured out that it was because I unplugged my USB mouse while it was on sleep. Now I have this problem even when the hardware does not change.