tigrezno
September 17th, 2018, 08:17 AM
I want Xorg to start with a brightness setting of 0.5.
I've succeded at configuring lightdm in /etc/lightdm/lightdm.conf with the display-setup-script directive.
But I have failed to configure Xfce. I've tried launching the brightness script from the Session & Startup settings but didn't work.
Also tried /etc/X11/Xsession.d/ without success.
The script actually executed but something else is setting the brightness again at 100% after that.
I'm so mad at it that I'm on the verge to uninstall xfce and use other DE.
[note] I'm using xrandr since xbacklight doesn't work. I'm on a desktop PC.
[SOLVED] Somehow. I just added a .desktop file with the script in ~/.config/autostart. It's executed AFTER xfce sets the brightness to 100%, so it works. For a few milliseconds there is a flash, but that's all.
[EDIT] Ok, I found the real culprit. It was nvidia-settings being loaded by xfce. I had to set the brightness in the nvidia-settings GUI. That fixed the issue.
I've succeded at configuring lightdm in /etc/lightdm/lightdm.conf with the display-setup-script directive.
But I have failed to configure Xfce. I've tried launching the brightness script from the Session & Startup settings but didn't work.
Also tried /etc/X11/Xsession.d/ without success.
The script actually executed but something else is setting the brightness again at 100% after that.
I'm so mad at it that I'm on the verge to uninstall xfce and use other DE.
[note] I'm using xrandr since xbacklight doesn't work. I'm on a desktop PC.
[SOLVED] Somehow. I just added a .desktop file with the script in ~/.config/autostart. It's executed AFTER xfce sets the brightness to 100%, so it works. For a few milliseconds there is a flash, but that's all.
[EDIT] Ok, I found the real culprit. It was nvidia-settings being loaded by xfce. I had to set the brightness in the nvidia-settings GUI. That fixed the issue.