You are not logged in.

#1 2020-05-19 03:20:15

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

[SOLVED] xset dpms affects redshift temperature

Hello everybody!

A few days ago I noticed that 'redshift' is disabled when my laptop screen goes off.

I have 'redshift' enabled at login. I manually enable 'xset dpms' with a 'xs' command

xs() {
xrandr --dpi 203 ; xset -b ; xset dpms 321 ; light -S 55 ;}

After I turn the screen on again 'redshift' seems not active. Task manager says it is running but the screen is blue-ish. Either the temperature is changed or redshift is kind of suspended.

Executing 'redshift -x' seems to fix the problem - after a couple of flickers the screen turns red-ish again.

How to make  'xset dpms' to not affect 'redshift'?

Thank you in advance!

Last edited by amaro (2020-05-19 09:51:59)

Offline

#2 2020-05-19 06:35:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] xset dpms affects redshift temperature

redshift alters the gamma ramps on the X11 server, several other tools can and do manipulate those as well (eg. xcalib, nvidia-settings, …)
Just altering/activating DPMS, DPI or the bell should™ not impact them, but "light" (backlight tool?) might.
If you run redshift continuously, it should™ keep updating the ramps w/ the next step.

=> first isolate which call in your function actually resets the gamma ramps (eg. kill the contiuous redshift, run "redshift -PO 4500" to set the screen to "reddish" and then run the indiviual commands. My money is on "light")

Offline

#3 2020-05-19 09:48:08

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: [SOLVED] xset dpms affects redshift temperature

You are right, seth. It was 'light'.
Moved 'light' to a new function and disabled 'redshift' at login.
Thank you, seth!

xs() {
xrandr --dpi 203 ; xset -b ; xset dpms 312 ;}

rx() {
redshift -PO 3900 ; light -S 55 ;}

Offline

Board footer

Powered by FluxBB