[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with benh sleep patch 7



Hi everybody,
I tested benh sleep patch on my 1.5GHz powerbook. After the first sleep its 
resume very well. After the second too. Now, if the first sleep is a little 
longer, after the second sleep, the resume goes bad. In fact only the screen 
doesn't resume well. Its flatterned, and the only way to get the screen well 
running its to reboot the powerbook.

Here some of my conf:
$ lspci
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility 
Radeon 9600 M10]
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g 
Wireless LAN Controller (rev 03)
0001:10:13.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus 
Controller
0001:10:17.0 ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
0002:24:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
0002:24:0d.0 ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
0002:24:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire 
(rev 81)
0002:24:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC (Sun 
GEM) (rev 80)
~$ cat /etc/pbbuttonsd.conf
# 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           = performance    ; nochange, performance, custom or 
powersave
onAC_TimerAction      = none           ; none, suspend-to-ram, 
suspend-to-disk, blankscreen
onAC_CoverAction      = suspend-to-ram
onAC_KeyAction        = suspend-to-ram ; SleepKey
onAC_SuspendTime      = 0              ; time in 1/10 seconds
onAC_DimTime          = 0              ; time in 1/10 seconds

onBattery_policy      = powersave
onBattery_TimerAction = suspend-to-ram ; none, suspend-to-ram, 
suspend-to-disk, blankscreen
onBattery_CoverAction = suspend-to-ram
onBattery_KeyAction   = suspend-to-ram ; SleepKey
onBattery_SuspendTime = 3000           ; time in 1/10 seconds
onBattery_DimTime     = 600     ; 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        = 1       ; 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

# [MODULE OSSMIXER]
#Volume                = 50     ; initial volume level
Speakers_muted        = no      ; mute after startup?
VolumeUpKey           = 115
VolumeDownKey         = 114
MuteKey               = 113
dev_Mixer             = "/dev/mixer"
MixerInitDelay        = no
MixerChannels         = "volume, speaker"

# [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
Batlog                = none

Thank you benh for the great works, I hope I can help you debbugging it...

Gruss Guillaume



Reply to: