maybe you can use the lightdm display-setup-script to run xbacklight and cat a log with the brightness in it
Code:
~$ cat /etc/lightdm/lightdm.conf
[SeatDefaults]
greeter-session=lightdm-gtk-greeter
user-session=xubuntu
greeter-setup-script = /usr/local/bin/greeter-setup-script
session-cleanup-script = /usr/local/bin/session-cleanup-script
session-setup-script = sh -c '/usr/local/bin/session-setup-script &'
#display-setup-script =
This is what i use to rest the brightness when i boot up
Code:
~$ cat /usr/local/bin/greeter-setup-script
#/bin/sh
numlockx on
if [ -f /var/log/backlightx ];then
xbacklight -set $(($(cat /var/log/backlightx)*10))
fi
Code:
~$ cat /usr/local/bin/session-cleanup-script
#!/bin/bash
backlightx --get current > /var/log/backlightx
here is the backlightx script
http://pastebin.com/HzzHrS2g
Bookmarks