6

After installing a clean xubuntu 12.04 I noticed that when I suspend, the computer suspends and turns itself off (you see the lights go off, and a click sound from the HD or fans), but then about 2 seconds later it turns itself back on again...

The odd thing is that:

  • It doesn't happen when booting from the liveCD
  • I created another user account. When I log onto this account I can suspend fine. The computer stays off until I press the ON button
  • When I remove my .config folder and it's clean - I can also suspend without problem on my account

So it seems that something in my user config is causing this, but I can't work out what it might be. I tried diffing the two .config folders, and also all processes running with one account compared to the other (ps -ef |grep <username>), but couldn't find anything obvious that might be causing this...

UPDATE:

As requested, here's the kern.log - with embeedded comments inside. It shows turning the computer on, logging in as the account that can suspend, suspending successfully, then turning off and on again, this time with my account, suspending (but only for about 2 seconds and then the computer starts again)

and ~/.config contents + dmesg output

Yoav Aner
  • 111

4 Answers4

2

I looked thoroughly through your log files and couldn't decipher what the issue was. What I would do in your situation is run a script that removes almost all my .config folders, and replaces them one by one as I successfully test the machine in suspend mode. Something like this:

FOLDERS=$(ls .config | grep -v "gtk" -v "gnome") #Use -v to exclude any folders.
for f in "$FOLDERS"; do
     mv "$f" "$f-" #Instead of deleting folders, we just rename them with a hyphen at the end.
done

for f in "$FOLDERS"; do
    echo "Test putting you system to sleep, then press enter to re-enable the next config folder"
    read i #Reads the enter key.
    mv "$f-" "$f"
    echo "Replaced folder: .config/$f"
    echo "$f" > corruptfolder.txt #This file will remember the last folder incase you forget.
done

Note that if you are successful, this script will not finish running (because your computer powered off). You will have correct the folder names that still have a hyphen at the end. Use this loop to do that:

FOLDERS=$(ls .config)
for f in "$FOLDERS"; do
    tmp=$(echo "$f" | sed 's/-$//')
    [ "$tmp" != "$f" ] && mv "$f" "$tmp"
done
Sepero
  • 4,627
2

exact same symptom - select 'suspend' from the 'gears' icon drop-dwn menu. Result is the same loop to restart describe by OP.

ENV - kernel 3.6.1-030601-generic #201210071322

ENV - Hardware samsung series 9

Orig. OS was 12.04 before the kernel upgrade

Solution - System/settings/power app and tweeked the settings for 'sleep' both on and off the battery. Made sure that there was config val that would request sleep at some threshold regardless of whether mode= battery power or mode=plugged in.

Loop/restart symptom ended after power setting tweeks.

0

UPDATE: this doesn't work any more. I have no idea why... still experiencing the same issue :(

What solved this eventually for me was turning off the Display Power Management. Go figure why...

On xubuntu, go to Settings->Settings Manager click on Screensaver, Advanced and under Display Power Management untick Power management enabled option.

Since then I am able to suspend without the system going back on :)

Yoav Aner
  • 111
0

I had the same symptom. It disappeared when I changed my nVidia graphics card driver from "version 173-updates" to "version 319"

I am using HP pavilion dv2000 running 12.04 with Kernel Version 3.5.0-43-generic.

Richard
  • 8,588