Backlight: Difference between revisions

imported>Fadenb
Update `light` instructions
imported>Primeos
→‎brightnessctl: Document the new systemd support (https://github.com/NixOS/nixpkgs/pull/79663)
Line 39: Line 39:


== <code>brightnessctl</code> ==
== <code>brightnessctl</code> ==
{{nixos:package|brightnessctl}} ([https://github.com/Hummer12007/brightnessctl homepage]) is another option, which, like <code>light</code>, would work even without X.
{{nixos:package|brightnessctl}} ([https://github.com/Hummer12007/brightnessctl homepage]) is another option, which, like <code>light</code>, would work even without X or on Wayland.


To enable it, set {{nixos:option|hardware.brightnessctl.enable}} to <code>true</code>, and ensure that the users which will use <code>brightnessctl</code> are members of the <code>video</code> group.  
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).


== Tips ==
== Tips ==