Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to prevent powerbook from sleeping? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
meisteris
n00b
n00b


Joined: 16 Mar 2008
Posts: 12

PostPosted: Wed Mar 19, 2008 10:56 pm    Post subject: How to prevent powerbook from sleeping? [solved] Reply with quote

Hello,
I just tried to use my laptop on battery, and got very angry at it, because it falls asleep every few minutes :evil: and i keep googlin about how this, but i keep getting articles about how to get sleep working and none about controlling it. Also i would like if it would not sleep if i close lcd monitor, cause i rly rly hate when laptops do that (this is the main reason i stopped using mac os), so in short i do NOT want my powerbook to get into sleep mode automatically in any way (no sleep on battery, no sleep with lid closed, no sleep on ac power), i understand i could just turn of sleep support in kernel, but i do want to put it to sleep on my own will from time to time. So maybe someone would know something about all this? any ideas or suggestions are very appreciated.

The powerbook is 15.2" 1.5ghz model with ati radeon 9600 64mb card and os is beloved gentoo with kernel-2.6.23-gentoo-r9 self configured. If you need some more info, just ask ;)


Last edited by meisteris on Thu Mar 20, 2008 12:48 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 19, 2008 11:01 pm    Post subject: Reply with quote

The PMU in your powerbook will prevent the laptop from staying on while the cover is closed. As far as I know, there is no way around this. If you don't want it to go to sleep otherwise, simply disable pbbuttons, or set the periods to a very long time in the configuration. If you turn off pbbuttonsd, you can still put the machine to sleep by echoing "standby" to /sys/power/state.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
meisteris
n00b
n00b


Joined: 16 Mar 2008
Posts: 12

PostPosted: Wed Mar 19, 2008 11:22 pm    Post subject: Reply with quote

Thank you for fast reply :)
I think this lid closed sleeping thing on apple laptops is the most stupid thing that haunts me :( while i was using mac os x tiger, i had insomnia darwin kernel module that would prevent from sleeping on lid closed, but that was imperfect, it prevented sleep on lid close only while laptop was running on ac power, and it would still get to sleep after 4mins while running on battery, so i assumed it could be possible to control that in some way in Linux (i do believe i am not the only "lid closed sleep" hater in the world).

And as i understand, if i disable pbbuttons, then my fn+f* controls (volume, illumination, brightness) would stop working too? In that case it is not very comfortable solution :( so this leaves me with configuring pbbuttons for "long time no sleep", well it is acceptable enough solution to me, once i will learn how to configure pbbuttons, i will try that out *hopefully i will find some time for google tomorrow, but if you have some useful links for the matter, i would be thankful if you share them =)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 19, 2008 11:39 pm    Post subject: Reply with quote

It wakes very quickly, so I don't have a problem with it going to sleep with the lid closed. The "turn off after 4 minutes" is the PMU shutting down the computer. As I said before, it's impossible (as far as I know) to turn this behaviour off, it's a part of the power circuitry.

As for configuring pbbuttonsd, I'd suggest powerprefs as directed here:
http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#laptoppkgs
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
meisteris
n00b
n00b


Joined: 16 Mar 2008
Posts: 12

PostPosted: Thu Mar 20, 2008 12:48 am    Post subject: Reply with quote

I know it wakes quickly, but it is still annoying to lose my internet connection because of sleep... cause then i miss things on irc, and affter it wakes up i have to do ifconfig eth1 down (and up after) and then reconnect to wireless network again, also i often leave my powerbook connected to amp while it plays music, so if it sleeps - no music for my ears :( and the idea that i cannot control this just drives me crazy :evil: Well i gues i will have to think about selling this nice laptop.

As for the topic matter, i just tried to use powerprefs tool, it is really nice tool i have to say :) found everything i wanted and more (can't believe i actually missed this part on documentation :O ) And even settings for lid closing actions are there, obviously i tried them out and now i have same that i had on os x tiger - no sleep with lid closed on ac power and sleep affter 4mins while on battery (which do not make any sense to me, i mean if apple was afraid of overheat, then why this closed lid no sleep works fine on ac and is limited on battery :/ ). Anyways i believe there is nothing more to learn about sleeping, and i can call the problem solved, thank you very much for help :)
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
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