Autoscript to change brightness

Hi. I added a autostart script file with below command in ~/.config/autostart/orientation.desktop

[Desktop Entry]
Name=Set Display Orientation
Exec=xrandr --output eDP1 --rotate left
Type=Application

This is executed at boot time and the orientation is changed.

But when I use the below to change brightness, the brightness value is not changed during boot.
[Desktop Entry]
Name=Set Display Orientation
Exec=xrandr --output eDP1 --brightness 0.5
Type=Application

This works in kde and lxde (debian stretch). It doesn’t work in gnome (debian stretch?
Any pointers will be helpful. Thank you.

I notice the brightness changes for a few seconds and goes back to 1.0 with the above autostart file.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.