LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem suspend/hibernate ubuntu feisty (https://www.linuxquestions.org/questions/linux-software-2/problem-suspend-hibernate-ubuntu-feisty-628600/)

oddvar 03-17-2008 04:29 AM

Problem suspend/hibernate ubuntu feisty
 
When I try to suspend my computer, it immediately return the login window.
It hibernate OK, but no restart. The only way I have found to restart after hibernation is to unplug the electric cable and then it can be started as normal.
I know there was a wrong reference in /etc/fstab to a swap device/HD I dont have, but correcting this with correct UUID didnt help.
There must be other files with reference to wrong dev, but I dont know where to search for errors. The log-files I read after failed suspend only say something didnt function, but I am not able to see what.

aus9 04-09-2008 06:38 AM

suspend or hibernate are functions controlled by kernel or its module and by have a boot parameter on the kernel line for grub.

pls upload your /boot/config file to a online storage site and link it here....because its too big to read here....if you have no online try www.ripway.com

2) here post your /boot/grub/menu.lst pls

marwansherin 08-02-2008 01:49 PM

hi, I was having a problem in suspending the computer, but hibernating works fine :D
here is the problem description:
when clicking on the suspend button in the GUI, it goes normally, I think, but when hitting the power button, when resuming, it operates of seconds then turn off, like unplugging the power cord!
then at powering on again, it says failure to bring from suspend hit any key to continue, and starts normally, like nothing has happened before!

1) The direct link for /boot/config file:
http://h1.ripway.com/marwansherin/li....24-16-generic

2) The direct link for /boot/grub/menu.lst file:
http://h1.ripway.com/marwansherin/li...buntu/menu.lst

Thanks in advance

aus9 08-02-2008 06:59 PM

marwansherin

The OP has not replied so as soon as he does you may be considered low priority.

the boot option first.

You have no suspend set on your kernel line. see this line?
## e.g. defoptions=vga=791 resume=/dev/hda5

I prefer you just take that resume=/dev/hda5 and add something similar to your real kernel line but I forgot to ask oddvar for a post of his actual /etc/fstab and a report from a live cd using gparted or qtparted or fdisk etc on what it finds

so your swap may not be hda5. but you can check by looking at your fstab entry.

pretending it was with root powers, amend your real kernel line to

---
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=23bd3ccc-f466-4e35-9760-74353f5c3828 ro splash vga=771 resume=/dev/hda5

but your default is set to 4 and needs to be changed to 0 (at the top of menu)
default 0

also amend the windows entry....
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

and delete that savedefault entry completely.

aus9 08-02-2008 08:57 PM

oddvar

I am re-reading your situation.

Do you have a live cd with a graphical or command line partition tool on it like gparted, qtparted or the cli....fdisk sfdisk cfdisk?

2) assuming swapon was not correctly run by your distro can you pls consider the following

what is the name of your distro?

pls post the full /etc/fstab

what is the ouput of the live cd for say gparted?

can you post your /dev/disk/by-uuid

3) leaping ahead there are some things you could try.

in the live cd....once you have confirmed the correct uuid you could edit your hard drive fstab.

you could boot up your system and run the swapon command if swap is not showing up?

Code:

su
swapon -a

I am currently using sidux and its automatic script to enable all swaps in fstab is found at
/etc/rcS.d/S35mountall.sh

good luck


All times are GMT -5. The time now is 11:38 AM.