PDA

View Full Version : PBButtons


theholynig
16th May 2005, 01:10 AM
I've been trying to find other people who have actually fixed their iBook G3 systems to work with pbbuttons. I have my system installed with the latest version, and I have made some tweaks to the conf file, but I still cant get the system to either stop going into sleep mode, so my computer doesnt crash after I close the lid, or get it to actually wake up and return to my KDE session. I have put my conf file here so you can see it. I have tried the DRI tweaks and PCI mode tweaks for the video card since this was supposed to help with the iBook waking up from sleep mode, but none of these have helped. I tried shutting off all the power management features, but the software doesnt want to listen to me. Thanks in advance for the help.
Also, if you can tell me why my eject key doesnt work either, I would appreciate it. No one seems to have the problem of getting theirs to work like I do. The motor works, at random times, when the system needs a CD, it will eject the one in there, but when the system is looking for the FC3 discs when doing package installs, it wont eject either.

# Configuration file for PBButtonsd >= Version 0.5
# for complete list of options please see pbbuttonsd.conf man-page

# [SYSTEM]
#userallowed = "paranoid" ; user who is allowed to use IPC
autorescan = no ; automatic rescan of event devices
CmdTimeout = 4

# [MODULE POWERSAVE]
onAC_policy = no ; nochange, performance, custom or powersave
onAC_TimerAction = no ; none, suspend-to-ram, suspend-to-disk, blankscreen
onAC_CoverAction = nochange
onAC_KeyAction = no ; SleepKey
onAC_SuspendTime = 0 ; time in 1/10 seconds
onAC_DimTime = 0 ; time in 1/10 seconds

onBattery_policy = no
onBattery_TimerAction = no ; none, suspend-to-ram, suspend-to-disk, blankscreen
onBattery_CoverAction = nochange
onBattery_KeyAction = no ; SleepKey
onBattery_SuspendTime = 0 ; time in 1/10 seconds
onBattery_DimTime = 0 ; time in 1/10 seconds

SleepKey = 116
SleepKeyDelay = 0 ; values > 0 may be dangerous, if the power key is used to trigger sleep
BWL_first = 22 ; 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_PMCS = "/etc/power/pmcs-pbbuttonsd %s %s %s"
EmergencyAction = sleep ; action, if battery is critically low
HeartbeatBeep = no ; beep, if nothing else showed that the computer lives
CPULoad_sleeplock = yes
CPULoad_min = 20 ; value in percent
CPULoad_period = 20 ; time in seconds
NETLoad_sleeplock = yes
NETLoad_min = 4096 ; traffic in Bytes/s
NETLoad_period = 20 ; time in seconds
NETLoad_device = "eth0"

# [MODULE DISPLAY]
#LCD_Brightness = 8 ; initial LCD brightness level
LCD_FadingSpeed = 5 ; 0 = no smooth fading
LCD_AutoAdjust = yes ; only on Aluminum PowerBooks
LCD_IllumUpKey = 225
LCD_IllumDownKey = 224
LCD_Threshold = 94
#LCD_AutoAdjMin_Bat = 2 ; autoadjust parameter
#LCD_AutoAdjMax_Bat = 7
#LCD_AutoAdjMin_AC = 1
#LCD_AutoAdjMax_AC = 15
#KBD_Brightness = 0 ; initial keyboard illumination level
KBD_OnBrightness = 5 ; initial level if KBD on/off key is pressed
KBD_FadingSpeed = 5 ; 0 = no smooth fading
KBD_AutoAdjust = yes ; only on Aluminum PowerBooks
KBD_IllumUpKey = 230
KBD_IllumDownKey = 229
KBD_IllumOnKey = 228
KBD_Threshold = 28 ; only on Aluminum PowerBooks
dev_FrameBuffer = "/dev/fb0"
UseFBBlank = yes
DimFullyDark = no
CRT_MirrorKey = 65 + ctrl

# [MODULE MIXER]
SoundSystem = OSS ; OSS or ALSA
#Volume = 50 ; initial volume level
Speakers_muted = no ; mute after startup?
VolumeUpKey = 115
VolumeDownKey = 114
MuteKey = 113
dev_Mixer = "/dev/mixer" ; for OSS
MixerCard = "default" ; for ALSA
MixerInitDelay = no
MixerChannels = "volume, speaker" ; settings for OSS
#MixerChannels = "Master, 'PC Speaker'" ; settings for ALSA

# [MODULE CDROM]
dev_CDROM = "/dev/cdrom"
EjectCDKey = KEY_EJECTCD
EjectCDKeyDelay = 0

# [MODULE PMAC]
dev_PMU = "/dev/pmu"
dev_ADB = "/dev/adb"
TPModeUpKey = 225 + alt
TPModeDownKey = 224 + alt
TPMode = none
NoTapTyping = yes
KBDMode = fkeyslast
Batlog = none

salpula
1st June 2005, 09:02 PM
I tried for a while to get my G4 imac to do the same, after several kernel updates it worked except USB function was lost after coming out of sleep. SO it may just be a case of patience. . . :(
Im still not sure if the usb function part is fixed by default now or if I will have to tweak. . i jus thaven't elt it go into sleep :-p I have it powering off if I let the battery get to 1%

salpula
1st June 2005, 09:04 PM
I see you are using FC3 now. . . .I am using FC4 the release should be out soon so you may want to try that when its ready if you have not found anything else

theholynig
2nd June 2005, 12:37 AM
Yeah, I am upgrading to FC4 when it goes final. I hope the support for sleep is fixed. Until then I am stuck with a messed up sleep wake-up.