dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Fade on Power on/off
From: Mark Bright (
Date: 2004-06-14

We already have a facility to enable fade on Pause / Stop / Start,

What's the possibility of adding the same fade up/down functionality on
Power ON, Power OFF?
Preferably starting to fade out on OFF pressed rather than released - as
mentioned in a previous thread

A simple
for(i=(mas_codec_readreg(0x10)>>8)&0xFF; i; i--)
  mas_codec_writereg(0x10<<8, i);

In power_off() in power.c gives a nice fade out, but I can't see where to do
the reverse for power ON.

So, does anyone else think this is a good idea, and can someone tell me
where to do the power on fade?

Page was last modified "Jan 10 2012" The Rockbox Crew