Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend/Hibernate on the PPC: swsusp2 vs. pmdisk
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Sun Sep 18, 2005 2:50 pm    Post subject: Reply with quote

Okay, if you want that your iBook HIBERNATES instead of just shutting down in case of an emergency (critical low battery), then edit the script /etc/power/pmcs-pbbuttonsd. At the very end, you see that the "emergency" event is handled directly and that it just calls "shutdown -h now". Replace this with "hibernate" (or the full path to be sure) and when you forget about the battery, your iBook does suspend-to-disk, controlled by the hibernate script!

I just have to find a way to do this also with the press of the power button, lid close etc....

Tom
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Sep 18, 2005 9:01 pm    Post subject: Reply with quote

fourhead wrote:
Okay, if you want that your iBook HIBERNATES instead of just shutting down in case of an emergency (critical low battery), then edit the script /etc/power/pmcs-pbbuttonsd. At the very end, you see that the "emergency" event is handled directly and that it just calls "shutdown -h now". Replace this with "hibernate" (or the full path to be sure) and when you forget about the battery, your iBook does suspend-to-disk, controlled by the hibernate script!

I just have to find a way to do this also with the press of the power button, lid close etc....

Tom



Thanks for the tip. We'll see how it goes.


Let us know if you have any joy with powerbutton etc.


scooby
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Sep 19, 2005 7:44 am    Post subject: Reply with quote

i playied with this a bit too and i dont why, but adding events like lid-close to the pmcs-pbbuttonsd didnt do anything here.
Had not much time but i think the right place is looking in de event directory and tweak them a bit.

cheers
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Wed Oct 05, 2005 9:44 pm    Post subject: Reply with quote

Now have this working with pbbuttonsd ;)

Quote:

http://www.mail-archive.com/debian-powerpc@lists.debian.org/msg50707.html

_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu Oct 06, 2005 7:41 am    Post subject: Reply with quote

scoobydu wrote:
Now have this working with pbbuttonsd ;)

Quote:

http://www.mail-archive.com/debian-powerpc@lists.debian.org/msg50707.html


nice, thanks for that scoobydu ! will try out asap ;)

cheers
Back to top
View user's profile Send private message
merlin
n00b
n00b


Joined: 07 Jan 2003
Posts: 44
Location: Oregon, USA

PostPosted: Thu Oct 20, 2005 5:45 pm    Post subject: swsusp2 working on iBook 700MHz G3 Reply with quote

Hello,

Thanks to the OP for pointing this info out!

I have an iBook G3 700MHz w/ 16MB Radeon. I was unable to get pmdisk working: It seemed to suspend okay but upon startup would perform a "regular" cold boot. I know pmdisk was doing something because swapon refused to use the partition, saying it didn't look like swap space.

At any rate, I disabled pmdisk, got the latest swsusp2 patches (for 2.6.13), and its working great! I had some hiccups when I messed too much with hibernate.conf (in the area of module unloading), but after reversing those chanes it's back to working.

The only complaint I have is that hibernating and restoring take about as long as normal shutdowns/startups. So the only benefit I'm getting is not losing whatever workflow I've got going on... which is still reason enough to use it, of course. :)

I'll add my hibernate.conf and/or kernel .config if anyone's interested.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1568
Location: Germany

PostPosted: Thu Oct 20, 2005 7:08 pm    Post subject: Reply with quote

Hello. I think about if I need Suspend to Disk:
  • How much time does it take to suspend and to wake up again?
So far I am going well with STR, as long as I have ac:)
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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