Backlight: Difference between revisions
Hughobrien (talk | contribs) m add note about auto loading the i2c module |
m remove extraneous spaces |
||
| (3 intermediate revisions by 3 users not shown) | |||
| 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"> | |||
hardware.i2c.enable = true | |||
</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> === | ||
| Line 116: | Line 118: | ||
Device autodetection is tricky with i2c so we need to trigger it manually with the <code>0x37</code> code. The <code>sleep</code> is often unfortunately necessary. | Device autodetection is tricky with i2c so we need to trigger it manually with the <code>0x37</code> code. The <code>sleep</code> is often unfortunately necessary. | ||
The driver has had some issues with kernels > 6.8, the below overlay should allow it to build if you encounter issues. | The driver has had some issues with kernels > 6.8, the below overlay should allow it to build if you encounter issues ([https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/merge_requests/17 source]). | ||
<syntaxhighlight lang=nix> | <syntaxhighlight lang=nix> | ||