LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-26-2011, 03:35 PM   #1
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Rep: Reputation: 31
I want to use 'Sleep' and 'Hibernate'


I have been using Linux for years now and I have never been able to succesfully use either sleep or hibernate on any distro that I used.

When I try to wake up Linux the screen stays black and I couldn't do anything except press on the power button to turn off the laptop.

They hibernate option is not found in my start menu.

I am using Mandriva 2011 on my laptop Acer Extensa 5220

I do not know what information should I provide so please tell me what you need to know.
 
Old 09-26-2011, 04:19 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi,

check that pm-utils is installed, an that you try hibernating using it, because it contains some "hooks" (read workarounds) for problematic devices/drivers.

I personnally switched to using Tuxonice and its hibernate-script about two years back, and have never looked back since.
Quote:
They hibernate option is not found in my start menu.
Do you have swap enabled? If you don't, you will not be able to hibernate to swap (and upower oesn't allow an override to hibernate to file if using tuxonice)
 
Old 09-27-2011, 07:50 AM   #3
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
Thank you serafean,
I do not have a swap partition right now but I am planning to assign one soon.

Your reply was about hibernation, can you help me with the sleep issue
 
Old 09-27-2011, 08:09 AM   #4
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
The pm-utils part is also relevant to the sleep issue.
Also check in the BIOS that S2/S3 sleep is enabled.
I suggest disabling/disconnecting all possible devices, and putting the computer to sleep. This means killing X, unloading all graphic drivers (not using KMS), all usb drivers etc until only the bare minimum is loaded. Then suspending. If it works, try adding devices and drivers one by one until it breaks, and then blacklist it. If this doesn't work Trying a different distro is an option, it might have some more quirks in its database... (the liveCD is enough).


Serafean
 
Old 09-27-2011, 08:49 AM   #5
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
sorry I forgot to mention that pm-utils is available and installed

Quote:
I suggest disabling/disconnecting all possible devices, and putting the computer to sleep. This means killing X, unloading all graphic drivers (not using KMS), all usb drivers etc until only the bare minimum is loaded. Then suspending.
I searched a little and came by this page:

http://www.cyberciti.biz/faq/add-rem...ernel-modules/

the process did not seem so friendly and frankly I am afraid to remove things that I can not add again.

what would you recommend for me to do?
 
Old 09-27-2011, 10:28 AM   #6
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Friendliness : indeed, you will have to drop to text mode, and input commands there, as well a sknow your hardware and related modules pretty well.
"lsmod" will show all loaded modules. "rmmod foo" will unload the module named foo; notice I don't use the term remove, but unload. Indeed, when you unload a module, it's only disabled, not removed. A simple reboot will reload all necessary modules, as well as "modprobe foo" will load the module foo.

If you don't trust the security of this operation, logout your regular user, drop to a tty console (ctrl-alt-f1 should get you there) and unmount your home partition. This will ensure that none of your data will be lost.

I just thought of another thing you might try : check in your BIOS if there is an option like "POST on resume". This option forces the graphic card to go through at least a part of its boot process.

Serafean
 
Old 10-05-2011, 02:25 AM   #7
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Hi, i do not use mandriva, but on my laptop, i upgraded my kernel to 2.6.39 and my sleep and hibernate work perfectly now. Not meaning to rub it in or anything. Just wondering if suspend & hibernate work with any other distros.
 
Old 10-05-2011, 11:49 AM   #8
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
Well, sorry for the late feedback, but I found that the unloading modules is a tiresome process so I decided not to continue with it until I assign a swap partition, and I am too busy to do so at the time being

@Knightron
I have a slightly older kernel
Code:
$ uname -r
2.6.38.7-desktop-1mnb2
I haven't updated a kernel yet, but if I have some time I might look into it.
Thanks
 
Old 10-05-2011, 03:12 PM   #9
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
that kernel isn't to old. I am unfamiliar with your laptop but newer laptops may need newer kernels. Serafean seems to know what they're talking about, so take there advice over mine. I was just wondering if you'd gotten it to work at all, as different distros do different things and once you know it works with atleast one distro, it may become easier to start nailing down what to do in mandriva.
 
  


Reply



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
Some hibernate/sleep/powersafe questions Ramurd Slackware 11 03-09-2011 03:35 AM
*Sleep/Hibernate - freezes upon resume ---fix? Christastrophe Ubuntu 15 03-17-2009 05:11 AM
Sleep and Hibernate on a New Dell D620 evillegas Linux - Laptop and Netbook 3 05-15-2007 01:38 PM
sleep/hibernate causes hardware failure St.Jimmy Linux - Hardware 0 02-11-2007 03:34 PM
Getting my laptop to Hibernate or Sleep Scott7 Debian 2 10-15-2005 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:14 PM.

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
Open Source Consulting | Domain Registration