Allowing intel backlight brightness levels to be changed

Registered by Enkouyami

If a computer has an intel backlight, a /usr/share/X11/xorg.conf.d/20-intel.conf needs to be made with these contents for brightness settings to work:
Section "Device"
        Identifier "card0"
        Driver "intel"
        Option "Backlight" "intel_backlight"
        BusID "PCI:0:2:0"EndSection

'ls /sys/class/backlight/' can be run to check if the machine has an intel backlight. This should be done during the installation process for Linux Mint.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Enkouyami
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

#!/bin/bash

if [ ! -e /usr/share/X11/xorg.conf.d/20-intel.conf ]
then
 if [[ $(ls /sys/class/backlight/) == *intel_backlight ]]
 then
  touch /usr/share/X11/xorg.conf.d/20-intel.conf
  echo 'Section "Device"' >> /usr/share/X11/xorg.conf.d/20-intel.conf
         echo 'Identifier "card0"' >> /usr/share/X11/xorg.conf.d/20-intel.conf
         echo 'Driver "intel"' >> /usr/share/X11/xorg.conf.d/20-intel.conf
         echo 'Option "Backlight" "intel_backlight"' >> /usr/share/X11/xorg.conf.d/20-intel.conf
         echo 'BusID "PCI:0:2:0"EndSection' >> /usr/share/X11/xorg.conf.d/20-intel.conf
 fi
fi

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.