#92975 - kvance - Sun Jul 16, 2006 4:51 am
I have a simple problem with the following sleep handler:
The power LED stays solid the whole time. The actual sleep mode seems to work: the sound and backlights are off, and I can see everything power back up when I open the lid.
If I change PM_LED_SLEEP to PM_LED_BLINK, it does the "wi-fi is in use" blink while sleeping, and then goes back to solid when the lid opens. Are there other preconditions to setting PM_LED_SLEEP?
_________________
Corner Office: dev LJ
HexxagonDS, dsmzx, more...
Code: |
void lid_opened() /* Called on IRQ_LID. */
{ writePowerManagement(PM_CONTROL_REG, PM_SOUND_PWR | PM_SOUND_VOL | PM_BACKLIGHT_BOTTOM | PM_BACKLIGHT_TOP | PM_LED_ON); } void lid_closed() /* Called on REG_KEYXY & BIT(7) */ { writePowerManagement(PM_CONTROL_REG, PM_LED_SLEEP); swiSleep(); } |
The power LED stays solid the whole time. The actual sleep mode seems to work: the sound and backlights are off, and I can see everything power back up when I open the lid.
If I change PM_LED_SLEEP to PM_LED_BLINK, it does the "wi-fi is in use" blink while sleeping, and then goes back to solid when the lid opens. Are there other preconditions to setting PM_LED_SLEEP?
_________________
Corner Office: dev LJ
HexxagonDS, dsmzx, more...