Power Profiles?

Very simple: I want the timeout for the screen to be "never" when plugged in and 30 seconds when on battery. I'd also like to automatically adjust brightness based on power source.

That functionality was a built into WinMo in 2002! Am I missing something here?


To stay awake when plugged in: Settings >> Applications >> Development >> Check Stay awake.
The brightness changing depending on the power would be a nice app, I remember that from my WM days.