Control brightness on Sony VAIO (kernel 3.16 & above)

cool_penguin_smallHere’s my earlier article on how I used to control brightness on a Sony VAIO SVS13112ENB. However, the method broke after upgrading to kernel version 3.16 from the Ubuntu mainline kernel PPA. I am using Ubuntu 14.04 64-bit. Trying to find an alternative I made the following changes to the scripts in the past article:

  • The line below¬†went into a script that runs at login:
    echo 200 | sudo tee /sys/class/backlight/intel_backlight/brightness
  • The br+ script is modified as:
    #!/bin/bash
    curval=`cat /sys/class/backlight/intel_backlight/brightness`
    if [ $curval -ge 700 ]; then 
    echo already max
    else
    `echo $(expr $curval + 50) | sudo tee /sys/class/backlight/intel_backlight/brightness`
    fi
  • The br- script is modified as:
    #!/bin/bash
    curval=`cat /sys/class/backlight/intel_backlight/brightness`
    if [ $curval -le 100 ]; then
    echo already min
    else
    `echo $(expr $curval - 50) | sudo tee /sys/class/backlight/intel_backlight/brightness` 
    fi

Now you can try the hotkeys to verify that the brightness is changed as expected.

2 thoughts on “Control brightness on Sony VAIO (kernel 3.16 & above)”

Leave a Reply

Your email address will not be published. Required fields are marked *