I know this is possible as the built in clock app and other apps are able to do it.
How do you turn off the button backlights from code? These would be those like the softkeys on the bottom of the Nexus One screen.
Update:
Found this, but it only works on Froyo:
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.buttonBrightness = 0;
Any other ideas?