On /usr/lib/hal/scripts/linux/hal-system-lcd-get-brightness-linux

change the original elif for this:

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

On nano /usr/lib/hal/scripts/linux/hal-system-lcd-set-brightness-linux

change the original elif for this:

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

On 
/usr/share/hal/fdi/information/10freedesktop/10-sony-laptop-panel-mgmt-policy.fdi
add your model, like this:
        <match 
key="/org/freedesktop/Hal/devices/computer:system.hardware.product" 
string="VGN-FZ38M">
          <merge key="laptop_panel.num_levels" type="int">20</merge>
          <merge key="laptop_panel.access_method" 
type="string">sony-nvidia</merge>
        </match>

I think that it works better with this sentences, but also didn't work
correctly. I go to restart for tryit again with this config.

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to