LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hibernate and automatic shutdown does not work (https://www.linuxquestions.org/questions/linux-newbie-8/hibernate-and-automatic-shutdown-does-not-work-889051/)

anemone42 06-29-2011 04:31 PM

Hibernate and automatic shutdown does not work
 
I have installed Ubuntu as wubi (next to windows 7). When I expect the computer to shut down (either to hibernate or as part of, you know, shutdown), it doesn't. All the programs end, I am logged out, but I still have a picture on the screen (ubuntu default picture).

Help!

Hevithan 06-29-2011 05:49 PM

Does it work if you shutdown in terminal?

Either open terminal by click System>Accessories>Terminal
-or-
CTRL+ALT+F2

Try using the commands:
Code:

sudo reboot

sudo pm-hibernate

sudo shutdown -h now


EDDY1 06-29-2011 05:54 PM

Go to System>Preferences>Powermanagement check your settings.

anemone42 06-29-2011 06:51 PM

Quote:

Originally Posted by Hevithan (Post 4399631)
Does it work if you shutdown in terminal?

I get the same result every time: screen freezes, but doesn't turn off.

anemone42 06-29-2011 06:54 PM

Quote:

Originally Posted by EDDY1 (Post 4399634)
Go to System>Preferences>Powermanagement check your settings.

Uhm, not quite sure what I should look for. "Hibernate" and "Shutdown" should do what they imply, not leave the computer running, and I don't see an option that changes that.

There's actually a state, I didn't expect: suspend. Is that hibernate?

Hevithan 06-29-2011 07:02 PM

Suspend leaves the computer running but kills all un-necessary process (If you have a browser window up or program it will leave that running) and blanks the screen, Hibernate stores everything in memory and pretty much shuts off the computer, But when you resume it will start back up from memory.

anemone42 06-30-2011 08:43 AM

Quote:

Originally Posted by EDDY1 (Post 4399634)
Go to System>Preferences>Powermanagement check your settings.

The result is, that I can not choose hibernate automatically, only suspend.

anemone42 06-30-2011 09:00 AM

Okay, stating my original problem again. When I expect the computer to shut down, because I chose shutdown, it does not.

anemone42 10-06-2011 07:11 PM

Okay, current state of affairs:

Code:

lisea@ubuntu:~$ bin/rtcheck.sh
-----------------------------------------------
SUSPEND_MODULES="rt2800pci"
-----------------------------------------------
blacklist rt2800pci
-----------------------------------------------
parport_pc            32111  0
rt2860sta            494649  1
crc_ccitt              12595  1 rt2860sta
parport                36746  3 parport_pc,ppdev,lp
-----------------------------------------------
lisea@ubuntu:~$
lisea@ubuntu:~$ cat bin/rtcheck.sh
#/bin/sh

echo "-----------------------------------------------"
cat /etc/pm/config.d/config
echo "-----------------------------------------------"
tail -n 1 /etc/modprobe.d/blacklist.conf
echo "-----------------------------------------------"
lsmod | grep rt
echo "-----------------------------------------------"

In part this was achieved through these commands:

Code:

sudo modprobe -rf rt2800pci
sudo modprobe -rf rt2860sta
sudo modprobe rt2860sta

I blacklisted rt2800pci first (meaning it won't be loaded in the future), then removed it right now with the 3 commands above. The computer froze as a result of the last command, but after boot it finally did what it was supposed to do.

Success! My computer finally understands how a shutdown works!


All times are GMT -5. The time now is 08:25 PM.