jonls / redshift

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
http://jonls.dk/redshift
GNU General Public License v3.0
5.92k stars 429 forks source link

Redshift fails when using VR headset #693

Open Zamundaaa opened 5 years ago

Zamundaaa commented 5 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Let redshift be started automatically by the Plasma applet or start it manually using redshift-gtk or just redshift
  2. start SteamVR
  3. error message " `RANDR Set CRTC Gamma' returned error 10 Temperature adjustment failed. " is shown as a notification

Expected behavior I expected redshift to ignore non-desktop displays and only control normal

Error output/logs/screenshots I'll gladly give logs if pointed to where they are

Software versions (please complete the following information):

Zamundaaa commented 5 years ago

As a note for other VR players, should one find this issue: Switching the mode to "vidmode" works as a fine workaround! No more blinding screens in the afternoon

dsalt commented 3 years ago

Seeing this here (1.12-4.2, installed via Devuan). As noted above, adjustment-method=vidmode works.

digitalcircuit commented 2 years ago

Another option to use the randr method is to specify the allowed CRTCs (roughly, graphics card outputs). In my case, as my desktop monitor is the first CRTC, I've added -m randr:crtc=0:

redshift-gtk -l $LAT:$LON -t 6500:2200 -m randr:crtc=0

That said, I'm not sure if there's any limitations to vidmode that would make randr a preferred option. It still seems to coexist with color correction.

(I'm still using Redshift as KDE Plasma 5.24's Night Color option does not maintain applied color correction on Xorg.)