trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: July 2019

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

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 22 Jul 2019 02:16:20 -0500
On 07/20/2019 08:45 AM, andre_debian@... wrote:
> The directory Autostart is in :
> /home/andre/.trinity/Autostart/
> 
> So I put exactly this line in "/home/andre/.trinity/Autostart/" ? :
> scrnbrightwiznv_startup.sh -> /home/andre/scr/adm/scrnbrightwiznv_startup.sh
> 
> Thanks for your help and Regards,
> 
> Andr�

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"'"



-- 
David C. Rankin, J.D.,P.E.