Unable to change the brightness on my Dell XPS 15 (L502X)

On my XPS 15, I got it working like this:

  1. Open /etc/default/grub with sudo permissions in your favourite text editor, e.g. sudo gedit /etc/default/grub
  2. Go to the line that starts with GRUB_CMDLINE_LINUX_DEFAULT, and add acpi_backlight=vendor dell_laptop.backlight=0 to whatever is between the quote marks, e.g. my line now looks like GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor dell_laptop.backlight=0"
  3. Run sudo update-grub
  4. Reboot. Your brightness controls should now work.