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
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.
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 "$(( $value + 2 ))"
# smartdimmer -s 21
nvclock -S "$(( $value * 5 + 15 ))"
On /usr/share/ hal/fdi/ information/ 10freedesktop/ 10-sony- laptop- panel-mgmt- policy. fdi freedesktop/ Hal/devices/ computer: system. hardware. product" string="VGN-FZ38M"> panel.num_ levels" type="int" >20</merge> panel.access_ method" type="string" >sony-nvidia< /merge>
add your model, like this:
<match key="/org/
<merge key="laptop_
<merge key="laptop_
</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.