Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can we hibernate/suspend a system?[Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gen-next
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2005
Posts: 128
Location: San Diego

PostPosted: Fri Nov 18, 2005 8:29 pm    Post subject: can we hibernate/suspend a system?[Solved] Reply with quote

Can someone please explain to me in a bit detail what changes need to be made in the kernel and also the grub to enable system suspend. I want to hibernate the system so that the next time i start the whole system starts from where it was left.

I searched the forums but could not find any information detailing the same.

Any help would be greately appreciated. Also describe the risks involved and is it actually worth the risk considering the fact that i am not talking about a laptop, rather a desktop system.

Thanks,
vb
_________________
gen-next says it alll!!.


Last edited by gen-next on Sat Nov 19, 2005 1:12 am; edited 1 time in total
Back to top
View user's profile Send private message
gen-next
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2005
Posts: 128
Location: San Diego

PostPosted: Fri Nov 18, 2005 8:58 pm    Post subject: Reply with quote

Now i got somewhere, i browsed more and found that one needs to install suspend 2. i.e
Code:
emerge suspend2-sources


and after that what do i do? and what are the risks involved in this case? Can someone describe his/her experience. Any case in which the person ended up screwing up the whole system.

The reason why i am so anxious about doing this is because i happened to read this document /usr/src/linux/Documentation/power/swsusp.txt which just scared the hell out of me on every new line it says say good bye to data ;)

Thanks,
vb
_________________
gen-next says it alll!!.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Fri Nov 18, 2005 9:12 pm    Post subject: Reply with quote

Do you actually need the feature?

The reason I'm asking is that it's uninteresting on desktop systems for the most time, because you don't carry them around and don't turn them off and on all the time. For a laptop it's great, you can leave things where they are, shut it, and continue working where you left off later, without having to sustain power all the time in between.

I'm not up-to-date with suspending to hardware right now, but my past experience was that if it worked at all, then only on specific laptops (because it was tested with only those devices), and that there were a hell of a load of problems with specific hardware that ceased working after waking the machine up, because the drivers were not reinitialized properly or whatever.

If your goal is to get faster startup times, there are better methods to do that, like throwing out unnecessary init scripts, or parallelizing / backgrounding them.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20585

PostPosted: Fri Nov 18, 2005 9:29 pm    Post subject: Reply with quote

frostschutz wrote:
it's uninteresting on desktop systems for the most time, because you don't carry them around and don't turn them off and on all the time. For a laptop it's great, you can leave things where they are, shut it, and continue working where you left off later, without having to sustain power all the time in between.
I think it'd be cool so I didn't have to leave it running all the time. I think it's a shame it hasn't been implemented yet. From my limited exposure to laptop hibernation, it'd speed up "reboot" times.

frostschutz wrote:
If your goal is to get faster startup times, there are better methods to do that, like throwing out unnecessary init scripts, or parallelizing / backgrounding them.
Last time I looked (briefly) into parallelizing/backgrounding, there were issues with stability/conflicts, and it didn't really save much time. Have there been improvements?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Fri Nov 18, 2005 11:08 pm    Post subject: Reply with quote

pjp wrote:
Last time I looked (briefly) into parallelizing/backgrounding, there were issues with stability/conflicts, and it didn't really save much time. Have there been improvements?


You're right, I forgot about that. It's still experimental.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Nov 19, 2005 12:02 am    Post subject: Reply with quote

There are detailed instructions on http://www.gentoo.org/doc/en/power-management-guide.xml#doc_chap7
It depends on your hardware whether it works - the only way to find out is testing it. Just make a backup of important data before using it :wink:
_________________
KDE
Back to top
View user's profile Send private message
gen-next
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2005
Posts: 128
Location: San Diego

PostPosted: Sat Nov 19, 2005 12:23 am    Post subject: Reply with quote

It works!! suspend2

I emerged suspend2-sources and then followed this http://gentoo-wiki.com/HOWTO_Software_Suspend_v2 and bingo now i have hibernate working on my system.

Hurray!!

vb
_________________
gen-next says it alll!!.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum