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

Switches on and off in full screen game #334

Closed ThornedRose closed 7 years ago

ThornedRose commented 8 years ago

This is a long shot and possibly something more to do with an individual game but just in case --

When running Pillars of Creation (a Unity engine game), Redshift flickers off for several seconds and then back on for several seconds over and over.

So far in my testing this is the only full screen game to have this problem but it's also the only Unity based game I have so I have no way of testing to see if it's specific to Unity games or something else to do with full screen games.

Additionally, this only happens on Deepin Desktop and does not on OpenBox. Possibly something to do with the compositor?

OS: Arch Linux Kernel: x86_64 Linux 4.4.5-1-ARCH Uptime: 45m Packages: 1226 Shell: bash 4.3.42 Resolution: 1920x1200 WM: Mutter(DeepinGala) WM Theme: Adwaita Icon Theme: deepin Font: Noto Sans 10 CPU: Intel Core2 Quad CPU Q6600 @ 2.4GHz GPU: GeForce GTX 650 Ti RAM: 2185MiB / 6979MiB

ThornedRose commented 8 years ago

Ok, I have tested further. It happens on multiple full screen apps (some, not all). I have tried switching to vidmode but the problem remains. I have tried drm but it results in an error : Failed to get DRM mode resources Failed to start adjustment method drm. (I have libdrm installed)

ThornedRose commented 8 years ago

I have also tried turning the compositor off but it makes no difference.

zack112358 commented 8 years ago

I had a similar issue under Fluxbox. nvidia-settings gamma adjustments had the same problem. I uninstalled nVidia proprietary drivers and the problem disappeared.

jonls commented 7 years ago

Thanks for the report. This is a known limitation that Redshift unfortunately cannot prevent. Some applications will reset the gamma ramps which means that the redness effect disappears for a few seconds. If this only happens with nvidia proprietary drivers, please report this to nvidia directly. Otherwise, please report it to the software that causes the gamma reset.