New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redshift causing screen flicker after linux kernel update to 4.15 #588

Closed
dekay opened this Issue Feb 18, 2018 · 24 comments

Comments

Projects
None yet
10 participants
@dekay

dekay commented Feb 18, 2018

Redshift is causing screen flicker ever since I updated my Linux kernel to 4.15. I have an AMD 560 and am running KDE on Arch Linux. Others are seeing the same problem. The poster described it as follows:

I see random flickering between night and day colour temperatures when night should be constant. This happens intermittently with sometimes long periods of time between flickers. I'm using the open source drivers for AMD, with a RX-480 card.

Manjaro users see it too.

Redshift is version 1.11-5 and kernel is 4.15.2-2. I have amdgpu.dc=1, enabling the AMD kernel code that was merging in in 4.15.

I get flashing every few minutes with these settings in the Plasma applet:

  • smooth transitions not selected
  • auto mode

resulting in this (obfuscating my lat / long)

[dk@ryzen ~]$ ps -ef |grep shift
dk        1607   778  0 20:13 ?        00:00:00 /usr/bin/redshift -l xx.xxxx -yy.yyyy -t 6500 4000 -b 1 1 -g 1 1 1 -r
dk        1619  1392  0 20:14 pts/0    00:00:00 grep shift

Redshift worked flawlessly before this update.

@jonls

This comment has been minimized.

Show comment
Hide comment
@jonls

jonls Feb 18, 2018

Owner

Probably the same issue as other people have reported in #221

Owner

jonls commented Feb 18, 2018

Probably the same issue as other people have reported in #221

@dekay

This comment has been minimized.

Show comment
Hide comment
@dekay

dekay Mar 7, 2018

I have recently upgraded to Arch kernel 4.15.6-1 and it seems like the flickering has gone away. I'll monitor this for a while longer and close the issue if the problem has indeed gone away.

dekay commented Mar 7, 2018

I have recently upgraded to Arch kernel 4.15.6-1 and it seems like the flickering has gone away. I'll monitor this for a while longer and close the issue if the problem has indeed gone away.

@etam

This comment has been minimized.

Show comment
Hide comment
@etam

etam Mar 7, 2018

I have openSUSE Tumbleweed with kernel 4.15.7-1 with amdgpu.dc=1 and flickering is still present.

etam commented Mar 7, 2018

I have openSUSE Tumbleweed with kernel 4.15.7-1 with amdgpu.dc=1 and flickering is still present.

@ashleybone

This comment has been minimized.

Show comment
Hide comment
@ashleybone

ashleybone Mar 7, 2018

Arch kernel 4.15.17-1 here, flickering still present with amdgpu.dc=1.

ashleybone commented Mar 7, 2018

Arch kernel 4.15.17-1 here, flickering still present with amdgpu.dc=1.

@dekay

This comment has been minimized.

Show comment
Hide comment
@dekay

dekay Mar 8, 2018

@etam @ashleybone Are you running KDE or something else. Maybe the desktop environment comes into play?

dekay commented Mar 8, 2018

@etam @ashleybone Are you running KDE or something else. Maybe the desktop environment comes into play?

@etam

This comment has been minimized.

Show comment
Hide comment
@etam

etam Mar 8, 2018

I use KDE session with plasma desktop disabled, window manager is i3wm and compton.

As discussed in #221 it's not only KDE.

etam commented Mar 8, 2018

I use KDE session with plasma desktop disabled, window manager is i3wm and compton.

As discussed in #221 it's not only KDE.

@ashleybone

This comment has been minimized.

Show comment
Hide comment
@ashleybone

ashleybone Mar 8, 2018

I run KDE, more or less vanilla. Seen reports of this across many DE/WMs, though.

ashleybone commented Mar 8, 2018

I run KDE, more or less vanilla. Seen reports of this across many DE/WMs, though.

@dekay

This comment has been minimized.

Show comment
Hide comment
@dekay

dekay Mar 9, 2018

It looks like a spoke a bit too soon. I still get the odd flicker, but it is much less frequent than before. Maybe once an hour or so, on average. Used to be I'd get flicker every couple minutes.

dekay commented Mar 9, 2018

It looks like a spoke a bit too soon. I still get the odd flicker, but it is much less frequent than before. Maybe once an hour or so, on average. Used to be I'd get flicker every couple minutes.

@freerunner

This comment has been minimized.

Show comment
Hide comment
@freerunner

freerunner Mar 26, 2018

I believe it's gone. Currently running 4.15.12 on Arch. Currently refusing to upgrade to .13 :)

There were several commits targeting amdgpu: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/log/?h=v4.15.12

freerunner commented Mar 26, 2018

I believe it's gone. Currently running 4.15.12 on Arch. Currently refusing to upgrade to .13 :)

There were several commits targeting amdgpu: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/log/?h=v4.15.12

@Kommynct

This comment has been minimized.

Show comment
Hide comment
@Kommynct

Kommynct Mar 27, 2018

i'm also running 4.15.12 on arch, it's not gone for me.

Kommynct commented Mar 27, 2018

i'm also running 4.15.12 on arch, it's not gone for me.

@etam

This comment has been minimized.

Show comment
Hide comment
@etam

etam Apr 9, 2018

After upgrading to 4.16.0 it got worse.

etam commented Apr 9, 2018

After upgrading to 4.16.0 it got worse.

@pager72

This comment has been minimized.

Show comment
Hide comment
@pager72

pager72 Apr 10, 2018

Much worse with 4.16.0 on gentoo/kde-5 perhaps using randr or drm mode will stop flicker but I don't know how to properly configure those.

pager72 commented Apr 10, 2018

Much worse with 4.16.0 on gentoo/kde-5 perhaps using randr or drm mode will stop flicker but I don't know how to properly configure those.

@Quoor8ee

This comment has been minimized.

Show comment
Hide comment
@Quoor8ee

Quoor8ee Apr 12, 2018

Fluxbox on Archlinux (anything since about 4.15.12, including 4.16 from testing) here.
Flickering: yes @ RX 550; no on Raven Ridge (2500U) (both amdgpu).
I noticed that prior to 4.15 (and on other GPUs), the mouse cursor is/was not tinted by redshift at all (method "randr"), but now it is has the same color as the screen (RX 550), or appears even to be red-shifted twice (RR). Maybe this helps in localizing the reasons.

Adding amdgpu.dc=0 to the kernel commandline did stop the flickering.

Quoor8ee commented Apr 12, 2018

Fluxbox on Archlinux (anything since about 4.15.12, including 4.16 from testing) here.
Flickering: yes @ RX 550; no on Raven Ridge (2500U) (both amdgpu).
I noticed that prior to 4.15 (and on other GPUs), the mouse cursor is/was not tinted by redshift at all (method "randr"), but now it is has the same color as the screen (RX 550), or appears even to be red-shifted twice (RR). Maybe this helps in localizing the reasons.

Adding amdgpu.dc=0 to the kernel commandline did stop the flickering.

@dekay

This comment has been minimized.

Show comment
Hide comment
@dekay

dekay Apr 14, 2018

Upgrading to 4.16 from 4.15 made it significantly worse for me as well.

dekay commented Apr 14, 2018

Upgrading to 4.16 from 4.15 made it significantly worse for me as well.

@Xerus2000

This comment has been minimized.

Show comment
Hide comment
@Xerus2000

Xerus2000 Apr 17, 2018

just upgraded my Linux Mint Cinnamon to Kernel 16.2 and experienced frequent flickering until turning off redshift

Xerus2000 commented Apr 17, 2018

just upgraded my Linux Mint Cinnamon to Kernel 16.2 and experienced frequent flickering until turning off redshift

@Quoor8ee

This comment has been minimized.

Show comment
Hide comment
@Quoor8ee

Quoor8ee Apr 18, 2018

Flickering is gone for me on Polaris with amdgpu.dc=1 on Linux 4.17-rc1

Quoor8ee commented Apr 18, 2018

Flickering is gone for me on Polaris with amdgpu.dc=1 on Linux 4.17-rc1

@jpotier

This comment has been minimized.

Show comment
Hide comment
@jpotier

jpotier Apr 21, 2018

Happening on 4.16.3 still.

jpotier commented Apr 21, 2018

Happening on 4.16.3 still.

@Kommynct

This comment has been minimized.

Show comment
Hide comment
@Kommynct

Kommynct Apr 21, 2018

Do you all happen to have high refresh rate screens, or freesync capable ones, or both?

Kommynct commented Apr 21, 2018

Do you all happen to have high refresh rate screens, or freesync capable ones, or both?

@pager72

This comment has been minimized.

Show comment
Hide comment
@pager72

pager72 Apr 21, 2018

I have standard laptop display with ordinary refresh rate.

pager72 commented Apr 21, 2018

I have standard laptop display with ordinary refresh rate.

@Kommynct

This comment has been minimized.

Show comment
Hide comment
@Kommynct

Kommynct Apr 21, 2018

Well that throws my theory out.

Kommynct commented Apr 21, 2018

Well that throws my theory out.

@jpotier

This comment has been minimized.

Show comment
Hide comment
@jpotier

jpotier Apr 22, 2018

Can confirm that the problem is gone in linux 4.17.1_ rc1

jpotier commented Apr 22, 2018

Can confirm that the problem is gone in linux 4.17.1_ rc1

@Quoor8ee

This comment has been minimized.

Show comment
Hide comment
@Quoor8ee

Quoor8ee Apr 22, 2018

Depends on what you define by "high refresh rates". 60Hz @ 3.7 Mpx (DisplayPort) here, but from a market segment disjoint from where FreeSync is made for.
I noticed that since 4.17 my DVI is now Dual-link (-: and no longer affected by redshift flickering, too.
Sounds like an amdgpu issue, rather than redshift-specific. It would be interesting to compare this with other projects manipulating X11 colour representation (argyllcms/displaycal comes to my mind).

Quoor8ee commented Apr 22, 2018

Depends on what you define by "high refresh rates". 60Hz @ 3.7 Mpx (DisplayPort) here, but from a market segment disjoint from where FreeSync is made for.
I noticed that since 4.17 my DVI is now Dual-link (-: and no longer affected by redshift flickering, too.
Sounds like an amdgpu issue, rather than redshift-specific. It would be interesting to compare this with other projects manipulating X11 colour representation (argyllcms/displaycal comes to my mind).

@jonls

This comment has been minimized.

Show comment
Hide comment
@jonls

jonls May 7, 2018

Owner

Thanks for reporting this issue. This seems to be related to graphics drivers and not directly related to Redshift. While it's nice to have this information available for the users of Redshift, ultimately it's not the right place to discuss kernel/graphics driver issues since it's not something Redshift can do anything about. Please report this issue to your distribution or to the graphics driver maintainers.

Owner

jonls commented May 7, 2018

Thanks for reporting this issue. This seems to be related to graphics drivers and not directly related to Redshift. While it's nice to have this information available for the users of Redshift, ultimately it's not the right place to discuss kernel/graphics driver issues since it's not something Redshift can do anything about. Please report this issue to your distribution or to the graphics driver maintainers.

@dekay

This comment has been minimized.

Show comment
Hide comment
@dekay

dekay Jun 23, 2018

I opened this issue and just wanted to let you know that the problem indeed went away in kernel 4.17. Really happy that I can now resume using redshift. It's wonderful! That you for your work!

dekay commented Jun 23, 2018

I opened this issue and just wanted to let you know that the problem indeed went away in kernel 4.17. Really happy that I can now resume using redshift. It's wonderful! That you for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment