I use a python script to set brightness to zero.
#!/usr/bin/python
import dbus
bus = dbus.SessionBus()
proxy = bus.get_object('org.gnome.SettingsDaemon',
'/org/gnome/SettingsDaemon/Power')
iface = dbus.Interface(proxy,dbus_interface='org.gnome.SettingsDaemon.Power.Screen')
iface.SetPercentage(0)
I've put it in Startup Applications. It works only when I login. There is full brightness at login screen.
Where should I put this so that it sets brightness to zero at login screen?
I'm not 100% sure of this, but i recall that i have used /etc/rc.local in similar situations. add a line that executes your script there.
And then there is upstart that might work. But i have no experience with that except a script that i found to autostart deluged
Your startup script would probably look something like
Upstart resource http://upstart.ubuntu.com/