Brightness controls on Dell XPS 13 with Ubuntu 13.04

Am running a Dell XPS 13 with Ubuntu 13.04. Overall the installation is very nice but one niggle is that the brightness controls do not always work. The following scripts have alleviated the problem:
(From the thread in the Launchpad comments for the bug: https://bugs.launchpad.net/ubuntu/precise/+source/linux/+bug/954661)

To fix brightness controls from Add following to /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 0 > /sys/class/backlight/intel_backlight/brightness
exit 0

And for controlling when resuming from suspend:

Add the following script to /etc/pm/sleep.d

#!/bin/sh
# to fix backlight issues on resume

case "${1}" in
resume)
echo 0 > /sys/class/backlight/intel_backlight/brightness
;;
esac
Posted in Uncategorized

Leave a comment