Possible Duplicate:
Is there a way of adjusting the screen brightness programmatically?
iPhone: How can we programmatically change the brightness of the screen?
How can we change (Decrease and increase) Brightness of the iphone screen programmatically by touch events?