How to setup global brightness level when booting android?

view story

http://stackoverflow.com – I'm using unofficial ROM (cm10) to providing Android 4.1 on my android tablet Teclast a10t. But the stopped developing ROM contains a bug on this hardware. It will cause dark screen when I setup to 'auto brightness' or adjust the brightness level to zero.(This machine don't have auto brightness settings). So, is there any method to let the 'global' brightness to set at specific level when cold boot? If I found my screen become dark, I could force to power off, then turn on again. What's the better method? I think if just write code on widget or apps, it can only work on local application (HowTos)