Now all work :D :

In:
/usr/lib/hal/scripts/linux/hal-system-lcd-get-brightness-linux

elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony-nvidia" ]; then
        # smartdimmer -g
        # value=$(( `smartdimmer -g | awk '{print $3;}'` -2 ))
        value=$((`/usr/local/bin/nvclock -S +0 | grep level: | awk '{print 
$4;}' | sed -e 's:%::'` / 5 - 2 ))

I don't know why, but nvclock is not loaded from here path, putting here
absolute path, it work well.

and I do the same for /usr/lib/hal/scripts/linux/hal-system-lcd-set-
brightness-linux, it seems that not have this problem, but I change it
also:

elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony-nvidia" ]; then
        # smartdimmer -s 21
        # smartdimmer -s "$(( $value + 2 ))"
        /usr/local/bin/nvclock -S "$(( $value * 5 + 10 ))"

-- 
No Screen Backlight Control; Sony Vaio with nvidia 8 series graphics
https://bugs.launchpad.net/bugs/95444
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to