Comment 102 for bug 95444

Revision history for this message
Shawe Ewahs (shawe-ewahs) wrote : Re: No Screen Backlight Control; Sony Vaio with nvidia 8 series graphics

I say it also on: https://bugs.launchpad.net/ubuntu/+source/hotkey-setup/+bug/277589/comments/30

If anyone can say me what files are needed for adjust the brightness with the fn-keys, I think that I know how correct it.

I was watching the files and do this:

In /usr/share/hal/fdi/information/10freedesktop/10-sony-laptop-panel-mgmt-policy.fdi
    And I add my model

In /usr/lib/hal/scripts/hal-system-lcd-get-brightness-linux
    I change vaio-nvidia for this, smartdimmer don't work with sony-nvidia:
    elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony-nvidia" ]; then
            # smartdimmer -g
            # value=$(( `smartdimmer -g | awk '{print $3;}'` -1 ))
            value=$((`sudo nvclock -i | awk '/Backlight/ {print $3;}' | tr -d '%'` -10))

/usr/lib/hal/scripts/hal-system-lcd-set-brightness-linux
    I change vaio-nvidia for this, smartdimmer don't work with sony-nvidia:
    elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony-nvidia" ]; then
            # smartdimmer -s 21
            # smartdimmer -s "$(( $value + 1 ))"
            # value=$((`sudo nvclock -i | awk '/Backlight/ {print $3;}' | tr -d '%'`))
            nvclock -S "$((value + 10))"

What file need to edit also? I don't found the file for increase the blacklight :S