LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-17-2008, 05:29 AM   #1
oddvar
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Rep: Reputation: 15
Question 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.
 
Old 04-09-2008, 07:38 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
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
 
Old 08-02-2008, 02:49 PM   #3
marwansherin
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
hi, I was having a problem in suspending the computer, but hibernating works fine
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
 
Old 08-02-2008, 07:59 PM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
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.
 
Old 08-02-2008, 09:57 PM   #5
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
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
 
  


Reply

Tags
ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suspend/Hibernate Problem Sony Vaio linuxonvaio Linux - Laptop and Netbook 2 12-06-2007 01:37 PM
Possible Suspend/HIbernate fix angryfirelord Linux - Hardware 0 07-20-2007 07:46 PM
Suspend/Hibernate malfunctioning(Debian) pramodmudrakarta Linux - Desktop 0 07-17-2007 04:54 AM
Broken suspend and hibernate on Lenovo 3000 N100 running Ubuntu rune.evjen Linux - Laptop and Netbook 6 02-23-2007 07:31 PM
suspend a.k.a hibernate on kernel 2.6, how to use it? demmylls Linux - General 1 03-06-2004 01:06 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration