Kubuntu 9.04 Jaunty logging out of KDE after resuming from suspend to ram by closing laptop lid

Jordan Peterson's picture

This morning I woke up sorta early and the idea came to me to try to push Kubuntu 9.04 Jaunty, with UXA enabled in the xorg.conf file, into Suspend to Ram state without closing the laptop lid trigger. I clicked the K menu at the lower left of the screen, then leave, then Sleep (suspend to ram). The system sleeps. Since the laptop lid wasn't closed, I then push the power button after the lights turn off and power light blinks inidicating suspend to ram state. System resumes into KDE session without logging me out. Amazing. I then figured that the resume that was logging me out of KDE at lid closer was related to the plasma applet called Power Manager, or Battery manager. After fiddling with nearly all checkboxes, I narrowed down the issue to unchecking "Lock Screen on Resume" setting.

 

Notes:First I did a full update before any of this..Executed in konsole terminal:

sudo apt-get update ; sudo apt-get upgrade

 

UXA enabled to speed up Intel based Video performance. When UXA is disabled or specificially not mentioned, all resume from suspends to ram work fine. However, the video performance was slow, and the desktop effects choppy. I just wasn't happy comparing it to a friend's HP laptop running with an ATI based video card with no extra settings to speed things up:

sudo nano /etc/X11/xorg.conf

 

Under Section "Device" (section in xorg.conf) Option "AccelMethod" "uxa" enables UXA:

Section "Device"
        Identifier      "Configured Video Device"
        Option        "AccelMethod" "uxa"
EndSection

 

After saving changes, restart computer or restart X for newly changed configuration to take effect.

power_manager.png

 

Next is to disable the "Lock Screen On Resume" setting. Click on the Power manager button or Battery Monitor button. It looks like a battery with a bolt (if plugged into power) and a battery (when unplugged).

 

 

 

 

 

power_manager1.png

Click "More"

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

power_manager2.png

Uncheck Lock screen on resume setting and click Apply, then OK.