What I do is invert the colors on the iPad at night and turn the brightness all the way down. The screen on/screen off button can be programmed to be the trigger. When I press it 3 times quickly it inverts the colors. No need to jailbreak for this hack.