Change Screen Dim TimeOut When the phone is idle, the screen turns off after the configured time. For ex: if time is set to 30 sec, first the screen will dim after approximately 25 seconds and then after 5 seconds it will turn off the screen completely. 

How can I increase that "5" seconds time to 30 seconds or any other value?
If you are using a custom ROM (like CyanogenMod) or stock Android go to Settings&gt;Display&gt;Automatic backlight. Click on enable and select the window length option to change the time according to your needs.