trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: July 2019

Re: [trinity-users] to adjust the brigtness of the screen

From: andre_debian@...
Date: Tue, 23 Jul 2019 18:04:40 +0200
On Monday 22 July 2019 09:16:20 David C. Rankin wrote:
> On 07/20/2019 08:45 AM, andre_debian@... wrote:
> Yes, that's fine, just make sure your
> /home/andre/scr/adm/scrnbrightwiznv_startup.sh is executable, e.g.
> chmod +x /home/andre/scr/adm/scrnbrightwiznv_startup.sh
> You also need to make sure you have sudo access without a password.
> Generally meaning you add your user to the wheel group, e.g. as root
>   # gpasswd -a andre wheel
> (some distros have dropped wheel group and instead use a 'sudo' group)
> Then as root, visudo to edit the sudoers file and set:
> ## Uncomment to allow members of group wheel to execute any command
> # %wheel ALL=(ALL) ALL
> ## Same thing without a password
> %wheel ALL=(ALL) NOPASSWD: ALL
> (generally toward the bottom of the file)
> That will allow you to set /sys/class/backlight/intel_backlight/brightness
> with the call in the script, e.g. with the line
>   sudo sh -c "echo '"$newbl"' > '"$blfn"'"

The problem David,

is that in root, I receive forbidden, if I want to change the value 
in the file :
/sys/class/backlight/intel_backlight/brightness

changing = no possible.

The file is 664.

Regards,

Andr�