Backlight: Difference between revisions
No edit summary |
m Give explicit instructions for which group is needed to use DDC/CI, or which udev rules should be set to do the same. Based on https://github.com/NixOS/nixpkgs/issues/292049#issuecomment-2618103666 |
||
| Line 75: | Line 75: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You can then bind this to a hotkey or similar. | You can then bind this to a hotkey or similar. | ||
To make this permanent, add {{nixos:package|ddcutil}} to your system packages, and enable i2c support.<syntaxhighlight lang="nix"> | To make this permanent, add {{nixos:package|ddcutil}} to your system packages, and enable i2c support.<syntaxhighlight lang="nix"> | ||
hardware.i2c.enable = true | hardware.i2c.enable = true | ||
</syntaxhighlight> | </syntaxhighlight>To interact with DDC/CI without root, also add your user to the <code>i2c</code> group (or the group defined by <code>[https://search.nixos.org/options?show=hardware.i2c.group&query=hardware.i2c.group hardware.i2c.group]</code>), or [https://www.ddcutil.com/i2c_permissions/ set udev rules manually]. | ||
=== Via <code>ddcci-driver</code> === | === Via <code>ddcci-driver</code> === | ||