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

Lollypop conflict #373

Closed M5oul closed 8 years ago

M5oul commented 8 years ago

Described here: https://github.com/gnumdk/lollypop/issues/773

ghost commented 8 years ago

Code here: https://github.com/gnumdk/lollypop/blob/master/src/inhibitor.py Look at __on_status_changed()

Seems Redshift badly reacts to suspend inhibition.

M5oul commented 8 years ago

https://github.com/gnumdk/lollypop/blob/master/src/inhibitor.py#L89-L97

jonls commented 8 years ago

Redshift doesn't listen for or react to suspend inhibition. This sounds more like another program is resetting the gamma ramps which means that a few seconds will pass before Redshift will catch up and reapply the redness effect. You said that this happens when you click play. This suggests to me that the media player backend is resetting the gamma ramps when playback is started. This is something a lot of games and media players seem to be doing. There's not really anything Redshift can do about that since we cannot prevent other programs from changing the gamma ramps.

ghost commented 8 years ago

Strange:

So IMO, it's Gnome Session Manager when receiving SUSPENDING inhibition. @M5oul Close this issue and go back on lollypop one, will search a workaround...

ghost commented 8 years ago

@jonls Any easy way to get for gamma ramps? I may be able to disable SUSPENDING if gamma ramps not default.