Page 1 of 1

Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 10:47 am
by FraterLinux
I bought an LG ultrawide 26WQ500 monitor. I installed gddccontrol to manage this monitor. This monitor is not supported, but it is possible to use generic configuration. This gddccontrol has monitor brightness setting.

In mx-tweak there is also an option to configure the monitor's brightness. It has a larger adjustment range. However, a few seconds after I adjust the brightness using mx-tweak, the brightness returns to its previous intensity. Even if I click save, the brightness setting is lost.

mx-tweak uses xrandr to configure brightness, is this configuration through hardware or software?
Is there a conflict between gddccontrol and mx-tweak?
What is the path to the mx-tweak configuration file for me to check?

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 11:07 am
by dolphin_oracle
the brightness by xrandr is software manipulation of X values.

the hardware brightness control works directly with the backlight control of supported monitors. usually that is just laptops but some desktop monitors seem to also show up.

the software brightness setting is applied directly and also stored under a file name matching the display name under .config/MX-Linux/MX-Tweak/brightness/

that file is sourced by a script at login.

you can check

Code: Select all

xrandr --verbose
to see the brightness level set, and if X is reseting the value or if your monitor is doing something weird.

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 1:55 pm
by FraterLinux
dolphin_oracle wrote: Wed Nov 29, 2023 11:07 am the brightness by xrandr is software manipulation of X values.

the hardware brightness control works directly with the backlight control of supported monitors. usually that is just laptops but some desktop monitors seem to also show up.

the software brightness setting is applied directly and also stored under a file name matching the display name under .config/MX-Linux/MX-Tweak/brightness/

that file is sourced by a script at login.

you can check

Code: Select all

xrandr --verbose
to see the brightness level set, and if X is reseting the value or if your monitor is doing something weird.
I'll see. My old monitor didn't have brightness adjustment. On this LG monitor I can change the brightness using MX-Tweak, but it returns to the previous brightness after a few seconds.

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 3:24 pm
by FraterLinux
Two brightness values

$ xrandr --verbose

Code: Select all

HDMI1 connected 2560x1080+0+0 (0x46) normal (normal left inverted right x axis y axis) 600mm x 250mm
	Identifier: 0x42
	Timestamp:  127204
	Subpixel:   unknown
	Gamma:      2.0:4.2:3.4
	Brightness: 0.70
	Clones:     VGA1
	CRTC:       0
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
.config/MX-Linux/MX-Tweak/brightness/HDMI1

Code: Select all

xrandr --output HDMI1 --brightness 0.75 --gamma 0.625:0.37:0.417

Re: Brightness adjustment via mx-tweak does not work (MX-23)  [Solved]

Posted: Wed Nov 29, 2023 3:30 pm
by dolphin_oracle
do you have something running adjusting the gamma? like a redshift type app?

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 3:36 pm
by FraterLinux
dolphin_oracle wrote: Wed Nov 29, 2023 3:30 pm do you have something running adjusting the gamma? like a redshift type app?
Yes. Redshift also changes the brightness?

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 3:40 pm
by dolphin_oracle
FraterLinux wrote: Wed Nov 29, 2023 3:36 pm
dolphin_oracle wrote: Wed Nov 29, 2023 3:30 pm do you have something running adjusting the gamma? like a redshift type app?
Yes. Redshift also changes the brightness?
it changes the gamma anyway.

it might be possible to kill redshift, set the brightness, then restart redshift. I honestly don't know exactly how redshift works, other than the color temp is usually a function of gamma adjustments.

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 3:46 pm
by FraterLinux
dolphin_oracle wrote: Wed Nov 29, 2023 3:40 pm
it changes the gamma anyway.

it might be possible to kill redshift, set the brightness, then restart redshift. I honestly don't know exactly how redshift works, other than the color temp is usually a function of gamma adjustments.
I will try to do that.

Before I tried to set the brightness, but also back to the previous level.

Code: Select all

$ xrandr --output HDMI1 --brightness 0.8

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 4:06 pm
by FraterLinux
It really is the redshift that is changing the intensity of brightness.

I edited the redshift.conf file to make the brightness as I want:

Code: Select all

[redshift]
              temp-day=5000
              temp-night=4000
              brightness-day=0.9
              brightness-night=0.7
              gamma=0.8:0.7:0.8
              adjustment-method=randr
Is there another way for redshift not to interfere with the brightness configuration?

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 4:11 pm
by dolphin_oracle
not that I can think of. its always tricky to have two utilities muckying around with xrandr settings. especially something like redshift, which presumably adjusts its values every few minutes. with xrandr, you generally have to specify the gamma and the brightness when messing with either, otherwise things get out of sync and unexpected results occur.

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 4:26 pm
by FraterLinux
Ok. I will set in MX-Tweak the brightness in 1.0

If that doesn't resolve maybe I change from redshift to xsct.

Thank you very much!!!

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 8:30 pm
by FraterLinux
dolphin_oracle wrote: Wed Nov 29, 2023 4:11 pm not that I can think of. its always tricky to have two utilities muckying around with xrandr settings. especially something like redshift, which presumably adjusts its values every few minutes. with xrandr, you generally have to specify the gamma and the brightness when messing with either, otherwise things get out of sync and unexpected results occur.
Which application sets up gamma? Videos get very dark with gamma 0.625:0.37:0.417 (Which application generated this configuration? .config/MX-Linux/MX-Tweak/brightness/)
I edited manually for gamma 1:1:1 and the image in the videos got clearer.

Any ideal gamma configuration suggestions?

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 9:07 pm
by dolphin_oracle
any color temperature app is going to change the gamma. its how the do their color shifting.

the save feature of the mx-tweak brightness tool will save whatever the gamma is when the brightness is set, but it doesn't change it.

the command generated in .config/MX-Linux/MX-Tweak/brightness is safe to delete. you should get default values on next log in.

Re: Brightness adjustment via mx-tweak does not work (MX-23)

Posted: Wed Nov 29, 2023 9:21 pm
by FraterLinux
dolphin_oracle wrote: Wed Nov 29, 2023 9:07 pm any color temperature app is going to change the gamma. its how the do their color shifting.

the save feature of the mx-tweak brightness tool will save whatever the gamma is when the brightness is set, but it doesn't change it.

the command generated in .config/MX-Linux/MX-Tweak/brightness is safe to delete. you should get default values on next log in.
Thanks!!!