Laptop screen brightness is going down on idle when on battery

When I’m on battery my screen brightness when idling (after like 20 seconds not moving the mouse) is going down.This is not happening when the laptop is plugged in.

Fixed. Make sure that Dim display when idle is unchecked (Click battery icon -> Preferences -> On Baterry Power ) http://imgur.com/cYzKnzg I don’t know how I miss that. It took over 1 hour to see it.