Backlight: Difference between revisions

imported>Vater
m form (fixing Category:Pages with syntax highlighting errors) and add a first (content) category
Klinger (talk | contribs)
m link to category instead of redirect page
 
(One intermediate revision by one other user not shown)
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> ==
Line 64: Line 72:
While controlling the backlight via the command line is useful, it would be preferable to control it using key bindings. This is especially true considering most laptops have backlight control keys.
While controlling the backlight via the command line is useful, it would be preferable to control it using key bindings. This is especially true considering most laptops have backlight control keys.


There are two main choices to add key bindings, using a system-level service like [[actkbd]] or using an X session tool, either provided by your [[Desktop environment]], [[Window manager]] or a tool like [[xbindkeys]].
There are two main choices to add key bindings, using a system-level service like [[actkbd]] or using an X session tool, either provided by your [[:Category:Desktop environment|Desktop environment]], [[Window manager]] or a tool like [[xbindkeys]].


Depending on the tools that work for controlling the backlight you will be able to choose one of those options.
Depending on the tools that work for controlling the backlight you will be able to choose one of those options.