Comment 27 for bug 1163720

Revision history for this message
Frank (frank-g-hansen) wrote : Re: Brightness control broken on XPS13 with 3.8.0-16 and 3.8.0-22

Hi,

how about a workaround? I cannot write a script at all, but from Google searches on how to do stuff I created my own workaround:

1) For working brightness buttons after startup and a startup brightness of 50 % I added the following to the file /etc/rc.local (before the exit 0):

bash -c "echo 0 > /sys/class/backlight/intel_backlight/brightness"
bash -c "echo 50 > /sys/class/backlight/acpi_video0/brightness"

2) For working brightness buttons after a suspend I added a file named

20_Enable_Brightness_setting_keys

to the directory /etc/pm/sleep.d

The file contains:

case "${1}" in
    resume|thaw)

bash -c "echo 0 > /sys/class/backlight/intel_backlight/brightness"

;;
esac

I guess this is crude and full of possible errors/problems, but it works for me for the time being. This way the brightness after a resume is at the level it was before standby and the brightness keys on the XPS13 work.