Backlight: Difference between revisions
imported>Vater m form (fixing Category:Pages with syntax highlighting errors) and add a first (content) category |
imported>RamReso added example for brightnessctl and added a note for device of brightnessctl |
||
Line 41: | Line 41: | ||
You can use it by simply installing the package. Since <code>brightnessctl</code> supports the systemd-logind API it should work out of the box (i.e. without installing any udev rules or using a setuid wrapper). | You can use it by simply installing the package. Since <code>brightnessctl</code> supports the systemd-logind API it should work out of the box (i.e. without installing any udev rules or using a setuid wrapper). | ||
The following commands will allow you to test <code>brightnessctl</code>: | |||
* <code> brightnessctl set 5%-</code> - the screen should become darker. | |||
* <code> brightnessctl set 5%+</code> - the screen should become brighter. | |||
If you get an error like <code>Failed to set brightness: Protocol error</code>, check that you are using the right device. You can get a list of the devices with running <code>brightnessctl -l</code> and then specify the device with <code>-d deviceName</code>. | |||
Example: <code>brightnessctl set 5%- -d intel_backlight</code> | |||
== <code>/sys/class/backlight/...</code> == | == <code>/sys/class/backlight/...</code> == |