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

Keyboard can't resume PB5,8 from sleep



Hi All

$ cat /proc/cpuinfo 
processor       : 0
cpu             : 7447A, altivec supported
clock           : 833.333000MHz
revision        : 0.5 (pvr 8003 0105)
bogomips        : 16.57
timebase        : 8320000
machine         : PowerBook5,8
motherboard     : PowerBook5,8 MacRISC3 Power Macintosh 
detected as     : 287 (PowerBook G4 15")
pmac flags      : 00000019
L2 cache        : 512K unified
pmac-generation : NewWorld

The only way to wake up the machine above from sleep after having it
put to sleep mode via the power button is to use the power button
again.  That is, once the machine has been run into sleep this way,
touching the keyboard does not help waking it up again.

No problem if I simply close the lid, thus pushing the machine to
sleep mode, as it seems: Opening the lid again resumes the system
fully, and without problems.

This happens with 2 different kernels:
 * 2.6.16-1-powerpc (as precompiled/shipped by Debian unstable)
 * 2.6.17-rc3-gf358166a-dirty, May 12, (git sources, and home made)

It happens when being either on console or X (KDM/KDE).

tested here: Linux debby1-6 2.6.16-1-powerpc #2 Tue Mar 21 17:22:45
CET 2006 ppc GNU/Linux

pbbuttonsd:
  Installed: 0.7.5-1

Keyboard is a qwertz one

Here is /etc/pbbuttonsd.conf, just in case .. :

--------------------------------
# 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            = yes		; automatic rescan of event devices
CmdTimeout            = 8

# [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          = 1800		; 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 = 550000		; 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        = no		; only on Aluminum PowerBooks
LCD_IllumUpKey        = 225
LCD_IllumDownKey      = 224
LCD_Threshold         = 94
LCD_AutoAdjMin_Bat    = 3		; autoadjust parameter
LCD_AutoAdjMax_Bat    = 8
LCD_AutoAdjMin_AC     = 1
LCD_AutoAdjMax_AC     = 15
KBD_Brightness        = 10		; 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         = 95		; only on Aluminum PowerBooks
dev_FrameBuffer       = "/dev/fb0"
UseFBBlank            = yes
DimFullyDark          = no
CRT_MirrorKey         = 65 + ctrl

# [MODULE MIXER]
SoundSystem           = ALSA		; none, auto, OSS or ALSA
Volume                = 50		; initial volume level
Speakers_muted        = no		; mute after startup?
VolumeUpKey           = 115
VolumeDownKey         = 114
MuteKey               = 113
#OSS_Mixer             = "/dev/mixer"	; settings for OSS
#OSS_Channels          = "volume, speaker"
ALSA_Card             = "default"	; settings for ALSA
ALSA_Elements         = "Master, Headphone, Speakers"
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
Batlog                = none
NoTapTyping           = no
--------------------------------------

/var/log/syslog for the time when rendering the machine to sleep mode
(~ 18:29) and waking it up again (~ 18:31) 

May 19 18:29:48 debby1-6 pmcs-bdflush: External laptop-mode script found - exiting.
May 19 18:29:48 debby1-6 pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd suspend ac ram' launched and exited normally 
May 19 18:29:48 debby1-6 kernel: [  883.301828] aoa_fabric_layout_suspend()
May 19 18:29:50 debby1-6 kernel: [  885.484584] i2sbus_suspend()
May 19 18:29:50 debby1-6 kernel: [  885.485454] eth0: suspending, WakeOnLan disabled
May 19 18:29:50 debby1-6 kernel: [  885.562118] bcm43xx: Suspending...
May 19 18:29:50 debby1-6 kernel: [  885.562275] bcm43xx: Device suspended.
May 19 18:29:50 debby1-6 kernel: [  885.562571] radeonfb (0000:00:10.0): suspending to state: 2...
May 19 18:29:52 debby1-6 kernel: [  885.895980] radeonfb (0000:00:10.0): resuming from state: 2...
May 19 18:29:52 debby1-6 kernel: [  885.896008] PCI: Enabling device 0000:00:10.0 (0000 -> 0003)
May 19 18:29:52 debby1-6 kernel: [  886.717273] bcm43xx: Resuming...
May 19 18:29:52 debby1-6 kernel: [  886.717420] PCI: Enabling device 0001:10:11.0 (0000 -> 0002)
May 19 18:29:52 debby1-6 kernel: [  886.723396] bcm43xx: Device resumed.
May 19 18:29:52 debby1-6 kernel: [  886.765075] PCI: Enabling device 0001:10:15.0 (0000 -> 0002)
May 19 18:29:52 debby1-6 kernel: [  886.776067] PCI: Enabling device 0001:10:15.1 (0000 -> 0002)
May 19 18:29:52 debby1-6 kernel: [  886.787065] PCI: Enabling device 0001:10:15.2 (0000 -> 0002)
May 19 18:29:53 debby1-6 kernel: [  887.799093] eth0: resuming
May 19 18:29:53 debby1-6 kernel: [  887.860441] PHY ID: 2060d3, addr: 0
May 19 18:29:53 debby1-6 kernel: [  887.862242] i2sbus_resume()
May 19 18:29:54 debby1-6 kernel: [  889.564374] hda: Enabling Ultra DMA 5
May 19 18:29:54 debby1-6 kernel: [  889.595236] hdb: Enabling Ultra DMA 4
May 19 18:29:55 debby1-6 kernel: [  889.666096] ohci_hcd 0001:10:15.1: wakeup
May 19 18:29:55 debby1-6 kernel: [  889.756066] aoa_fabric_layout_resume()
May 19 18:31:36 debby1-6 kernel: [  889.756792] adb: starting probe task...
May 19 18:31:36 debby1-6 kernel: [  889.757521] adb: finished probe task...
May 19 18:31:37 debby1-6 kernel: [  890.260241] eth0: Link is up at 100 Mbps, full-duplex.
May 19 18:31:37 debby1-6 kernel: [  890.260254] eth0: Pause is enabled (rxfifo: 10240 off: 7168 on: 5632)
May 19 18:31:37 debby1-6 pmcs-bdflush: External laptop-mode script found - exiting.
May 19 18:31:37 debby1-6 pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd resume ac ram' launched and exited normally 
May 19 18:31:38 debby1-6 /usr/sbin/gpm[4272]: Detected EXPS/2 protocol mouse.


Here's another /var/log/syslog, from a bit earlier: Please note the
"Unlink after no-IRQ" message, this part probably from the time when the
machine is put to sleep mode:

May 19 18:26:18 debby1-6 pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd resume ac ram' launched and exited normally 
May 19 18:26:19 debby1-6 /usr/sbin/gpm[3719]: Detected EXPS/2 protocol mouse.
May 19 18:26:33 debby1-6 pmcs-bdflush: External laptop-mode script found - exiting.
May 19 18:26:33 debby1-6 pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd suspend ac ram' launched and exited normally 
May 19 18:26:33 debby1-6 kernel: [  713.226864] ohci_hcd 0001:10:15.0: Unlink after no-IRQ?  Controller is probably using the wrong IRQ.
May 19 18:26:33 debby1-6 kernel: [  713.240129] aoa_fabric_layout_suspend()
May 19 18:26:35 debby1-6 kernel: [  715.469674] i2sbus_suspend()
May 19 18:26:35 debby1-6 kernel: [  715.470565] eth0: suspending, WakeOnLan disabled
May 19 18:26:35 debby1-6 kernel: [  715.547123] bcm43xx: Suspending...
May 19 18:26:35 debby1-6 kernel: [  715.547287] bcm43xx: Device suspended.
May 19 18:26:35 debby1-6 kernel: [  715.547647] radeonfb (0000:00:10.0): suspending to state: 2...


Anyone?

Thanks in anticipation

Best Regards
Wolfgang

-- 
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on



Reply to: