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: Fri, 19 Jul 2019 20:07:00 -0500
On 07/19/2019 03:36 AM, andre_debian@... 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.

Attachments: