Re: to adjust the brigtness of the screen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/20/2019 08:45 AM, andre_debian@xxxxxxxxxxxxxx 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-users-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting





[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux