Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pbbuttonsd + NOT sleep on top cover closedown
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
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Sun Jul 06, 2003 10:12 am    Post subject: pbbuttonsd + NOT sleep on top cover closedown Reply with quote

hello!

i use pbbuttonsd with my ibook 800 and are very happy with it.

there is only one thing:
is it possible to prevent pbbuttonsd from sleeping my ibook when i close down the top cover?

thanks,

~michael
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Dartmouth, NS, Canada

PostPosted: Mon Jul 07, 2003 6:33 pm    Post subject: Reply with quote

the first line in your /etc/pbbuttonsd.conf should be changed. Mind you, if your want to war-walk, simply /etc/init.d/pbbuttonsd stop first.

BEWARE: You can seriously fuXxor your iBook leaving it closed for an extended period of time. Heat dissipates through the keyboard!!! You can melt your keys, fuxXor your screen, overheat your internal components. Do NOT leave your iBook closed for a long time!
Back to top
View user's profile Send private message
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Mon Jul 07, 2003 7:35 pm    Post subject: Reply with quote

here is the beginning of pbbuttonsd.conf:
Code:
# configfile for pbbuttonsd >= version 0.5
# for options see man pbbuttonsd.conf

#userallowed            = paranoid

# [MODULE POWERSAVE]
onAC_sleep              = no
onAC_dim                = no
onAC_blank              = no
onAC_Tsleep             = 3000
onAC_Tdim               = 600


i do not see what should be changed here. as far as i saw, also in the remaining part there is no option not to sleep the ibook on cover closure.

thanks for you warning. maybe it will be better to leave the sleeping behaviour as it is.
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Dartmouth, NS, Canada

PostPosted: Mon Jul 07, 2003 8:41 pm    Post subject: Reply with quote

Y'know, I had a problem where one of my powerbooks wouldn't sleep when I shut the lid. I forget how I resolved that(!). It was some combination of on_AC* options and took me ages to solve.

Yeah, I've seen some scary pictures of iBooks that had melted, popped-off keys, etc. Totally toasted.

For short runs (ie half an hour), you might try just stopping /etc/init.d/pbbuttonsd
Back to top
View user's profile Send private message
chriskwan
n00b
n00b


Joined: 01 Mar 2003
Posts: 59
Location: Nashua, NH, USA

PostPosted: Mon Jul 07, 2003 9:45 pm    Post subject: Reply with quote

nothing bad will happen if you leave your computer closed for too long. I always leave my TiBook closed and running during compiles, and the Ti gets much hotter than the iBook.
_________________
[sic]
Back to top
View user's profile Send private message
oniq
Guru
Guru


Joined: 02 Sep 2002
Posts: 597
Location: Connecticut

PostPosted: Tue Jul 08, 2003 12:33 am    Post subject: Reply with quote

I doubt pbbuttonsd has anything to do with it, but rather pmud.
_________________
open like a child's mind.
Back to top
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Tue Jul 08, 2003 9:51 am    Post subject: use pmud and pbbuttonsd together Reply with quote

Hi,

it seems that pbbuttonsd can not only turn off the screen when the lid is closed.
I use pmud and pbbuttonsd together to do this (pmud only turns off the screen when the lid is closed with option -k).
Use the -K (uppercase) option to suspend your ibook when not on AC. Howerver, you have to access your F-Keys with the fn-Button then, because both pmud and pbbuttonsd trie to controll them. pmud cannot access the dim and volume buttons with the fn-key. On suspend it seems sometimes pmud and sometimes pbbuttonsd controls it (setting replace_pmud=no doesn't help). Then on wakeup sometimes you have to use the fn-Key and sometimes not.
When using -k (lowercase) you can only suspend the ibook with the powerbutton which is controlled by pbbuttonsd.
Back to top
View user's profile Send private message
chriskwan
n00b
n00b


Joined: 01 Mar 2003
Posts: 59
Location: Nashua, NH, USA

PostPosted: Tue Jul 08, 2003 3:07 pm    Post subject: Reply with quote

if you use GNOME-2.x, you can stop using pbbuttons altogether, and use ACME / pmud instead. It works out nicely for me, especially because i compiled "support for LCD brightness control" (or something similar) into my kernel.
_________________
[sic]
Back to top
View user's profile Send private message
thirteen
n00b
n00b


Joined: 25 Mar 2003
Posts: 39

PostPosted: Wed Jul 09, 2003 2:50 pm    Post subject: Reply with quote

If you aren't that happy with pbbuttonsd you could try this:

http://www.stampflee.com/evkeyd/

Not sure as to what it is like but you could give it a go, if it works could you post back as would be interested.
Back to top
View user's profile Send private message
liryon
n00b
n00b


Joined: 21 Aug 2003
Posts: 21
Location: Boston, MA

PostPosted: Sat Mar 13, 2004 9:28 pm    Post subject: soultion, use pbbuttonsd version 0.5.8 Reply with quote

I recently upgraded to a 2.6 kernel on my pismo and was sadened to discover that pmud does not work with it, and that they are aparently no plans to get it to work. I was a very big fan of how pmud could leave the comp running and only power off the screen when the lid was closed but still connected to AC power. The stable version of pbbuttonsd in portage (0.5.2-r1) as has been said, simply does not support this nifty feature. However, a newer version of pbbuttonsd (0.5.8) does support this feature. So there really is no need to even have pmud installed.

To install pbbuttonsd-0.5.8 which is masked in portage but has worked well for me
Code:
emerge -a /usr/portage/sys-apps/pbbuttonsd/pbbuttonsd-0.5.8.ebuild


you will need to run etc-update to update the config files. I chose to let it wipe out my old config files entierly. There are new options in the new default config files, one of which is the feature we want.


I kept most of the default options, but with the help of
Code:
man pbbuttonsd.conf


I was able to make sure that when i was connected to AC power the machine would never sleep, and if i closed the lid it would turn off the display. With my config on battery power colsing the lid will cause it to sleep. The relevent portion of the config file is:

/etc/pbbuttonsd.conf
Code:

# configfile for pbbuttonsd >= version 0.5
# for options see man pbbuttonsd.conf

#userallowed      = paranoid
#autorescan             = no

# [MODULE POWERSAVE]
onAC_sleep      = no
onAC_dim      = no
onAC_coversleep         = no
onAC_Tsleep      = 110000
onAC_Tdim      = 600
onAC_Thdoff      = 0
onBattery_sleep      = yes
onBattery_dim      = yes
onBattery_coversleep    = yes
onBattery_Tsleep   = 3000  ; time in 1/10s
onBattery_Tdim      = 600   ; time in 1/10s
onBattery_Thdoff   = 12     ; time in multiple of 5 second intervals


The new options are onAC_coversleep and onBattery_coversleep, they will come commented out in the new default config files, but work and are documented.

of compleatness the rest of my /etc/pbbuttonsd.conf
Code:

SleepKey      = 116
SleepKeyDelay      = 0     ; values > 0 may be dangerous, if the power key is used to trigger sleep
BWL_First      = 21     ; first battery warnlevel, time in minutes
BWL_Second      = 10     ; second battery warnlevel, time in minutes
BWL_Last      = 3      ; last battery warnlevel, time in minutes
#Script_BatCritical   = "/sbin/shutdown -h now"
#Script_ProfChanged   = ""
Script_HDSetup      = "/sbin/hdparm -p -S %d /dev/hda"
CPULoad_sleeplock   = yes
CPULoad_min      = 20      ; value in percent
CPULoad_period      = 20      ; time in seconds
NETLoad_sleeplock   = no
NETLoad_min      = 4096    ; trafic in Bytes/s
NETLoad_period      = 20      ; time in seconds
NETLoad_device      = eth0
EmergencyAction         = sleep   ; Action, if battery is critically low
HeartbeatBeep      = yes

# [MODULE DISPLAY]
#Brightness      = 12      ; initial brightness level
BrightnessupKey      = 225
BrightnessdownKey   = 224
dev_framebuffer      = "/dev/fb0"
UseFBBlank      = yes
FadingSpeed      = 3       ; dimming smoothly
DimFullyDark      = no

# [MODULE OSSMIXER]
dev_mixer      = "/dev/mixer"
mixerchannels      = "volume, speaker"
volume         = 50       ; initial volume level
speakers_muted      = no       ; mute after startup?
volumeupkey      = 115
volumedownkey      = 114
mutekey         = 113
mixerinitdelay      = no

# [MODULE CDROM]
dev_cdrom      = "/dev/cdrom"
ejectcdkey      = 161
ejectcdkeydelay      = 0

# [MODULE PMAC]
dev_pmu         = "/dev/pmu"
dev_adb         = "/dev/adb"
tpmodeupkey      = 225 + alt
tpmodedownkey      = 224 + alt
tpmode         = drag
kbdmode         = fkeysfirst
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