Hello i have been using Linux for two years so im still new to the whole community. please forgive me in advanced if this question is stupid and/or in the wrong forum.
I have a laptop this particular laptop is an optimus with dual graphics. i have correctly set up bumblebee which enables me to use the discrete graphics card correctly (are at least i hope) however this has caused an issue in xbacklight not being able to adjust brightness. I have looked around and found a program on github that can adjust brightness (brightlight v7). however it requires root to run. I would like to run this program without root. The author has given a statement about how to do this but i wish to ask for clarification and/or how to achieve this before i mess anything up.
In case anyone wants to know im using Arch with i3-gaps
"This program is intended to be installed setuid root, as the files in sysfs are owned by user and group root by default; however it is also possible to change the permissions on the sysfs files at boot time to a different user and group using the 'anacron' functionality found in some cron implementations, using systemd-tmpfiles or even in "/etc/rc.local" (where appropriate functionality is available). This would allow for regular users (possibly members of a special group) to change the backlight brightness without the requirement of suid binaries."
~Thanks you for your time i try not to ask for help but im just worried about messing something up.
EDIT: I was able to fix the issue my laptop uses intel_backlight however you can write a systemd service to allow this program to modify the system files by allowing write and append access.
just change intel_backlight to whatever you use.
This file as i named it is brightlight.service and is located /etc/systemd/system/
[Unit] Description Hopefully will be a solution for you reading. Before nodered.service [Service] Type oneshot User root ExecStart=/bin/bash -c "/bin/chmod a+w /sys/class/backlight/intel_backlight/*" [Install] WantedBy=multi-user.target