On 07/19/2019 03:36 AM, andre_debian@xxxxxxxxxxxxxx wrote: > Hello David, > > I cannot create the file "${USER}-backlight" in /usr/local/share/ > or I don't understand (maybe the "$" ?) > > Thanks, regards, > > andré andré, "${USER}-backlight" will be a new file that holds the current brightness setting. ${USER} just expands to your username. It was just brace-enclosed to make that apparent. For what it is worth I use the following script (with a second script that is just a wrapper to call the primary script with the -s option for startup) The wrapper script (scrnbrightwiznv_startup.sh) is simply: #!/bin/bash /home/david/scr/adm/scrnbrightwiznv.sh -s In my ~/.kde/Autostart (you would have ~/.trinity/Autostart or ~/.tde/Autostart), I just use the symlink l ~/.kde/Autostart/ ... scrnbrightwiznv_startup.sh -> /home/david/scr/adm/scrnbrightwiznv_startup.sh The primary script is attached. You will need to change acpi_video0 to intel_backlight. Other than that, it should work for you. You can simply use the wrapper calling it with the -s option at startup in the Autostart folder if tdepowersave handles the changes during the session for you. (however, you will need a way to write the final brightness value to the file in /usr/local/ so it is saved for next startup. There is no right way or wrong way to do this. Like I posted earlier, it can be display driver dependent, kernel dependent, distribution config dependent, etc.. Just find a way that works and stick with it :) -- David C. Rankin, J.D.,P.E.
Attachment:
scrnbrightwiznv.sh
Description: application/shellscript
--------------------------------------------------------------------- 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