View Single Post
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#23
Originally Posted by Addison View Post
The correct argument though is
/usr/bin/set-backlight `gconftool-2 --get /apps/adv-backlight/brightness`
You shouldn't place user programs in system directories. Use /root/bin or /home/user/bin instead. Also makes it easier to backup scripts and binaries you've written or downloaded and might be hard to find again.

Originally Posted by Addison View Post
I'm still unsure how to use these with variables.

gconftool-2 -s "/system/osso/dsm/display/display_brightness_level_step" 1 -t INT
Anything instead `` is executed and passed to the command as an argument, so you just `gconftool-2 -g /path/to/a/key` would be used in place of the static value.

If you scroll back to my second post you will see that I wrote a nice little function that automates this for you. You just have to pass it the key and type and it handles getting and setting.

@ jonww, that key is for the default brightness, he is using adv-backlight which has its own key.
 

The Following 2 Users Say Thank You to auouymous For This Useful Post: