Sony Vaio-Brightness Settings not Changing
Solution 1:
First give a try to obacklight.
Earlier it solved may problems with sony laptops. Most preferable solution. It is based on nvidabl. You need to install nvidiabl first. Installation instruction is available on the page.
If the above is not working, revert back all changes. Uninstall nvidiabl & remove obacklight script from /etc/init.d
. Then follow below instructions:
Execute
gksu gedit /etc/default/grub
-
Change this line:
GRUB_CMLINE_LINUX_DEFAULT="quiet splash"
to something like the below:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"
Execute
sudo update-grub
and reboot.
See if brightness keys are working.
It is still possible ubuntu won't remember your brightness settings. So you have to change brightness each time.
This is for setting the brightness manually after doing the above steps.
Try the following for the paths shown by the command ls /sys/class/backlight/*/brightness
and replace accordingly. An example path will be like /sys/class/backlight/acpi_video0/brightness
.
-
For the path(s), get the maximum brightness:
cat /sys/class/backlight/acpi_video0/max_brightness
Try a lower value to set the brightness. Let's say if the output is
16
, try half the number:
echo 8 | sudo tee /sys/class/backlight/acpi_video0/brightness
If this works, make this happen in each login automatically by doing the following:
sudo gedit /etc/rc.local
-
Enter this line just before
exit 0
. It should look likeecho YOUR_VALUE_HERE > /sys/class/backlight/acpi_video0/brightness exit 0
Another fix if the above fails:
Run nVidia X Server settings which you can find in the Application menu.
Select X Server Display configuration and chose the
save to x configuration file
option. This will build filexorg.conf
. Close Nvidia X Server settings.sudo gedit /etc/X11/xorg.conf
in terminal.-
Find this section:
Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce GT 540M" EndSection
And change it to something like this:
Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce GT 540M" Option "RegistryDwords" "EnableBrightnessControl=1" EndSection
Reboot.