Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons
Hello,
immediately after I have upgraded my system from Fedora 28 x64 to 29 graphics' issue started. Mouse leaves a trail composed of multiple blinking cursors and sometimes rectangular not-refreshed parts. The more loaded the system is the more pronounced the issue - the longer the trail. It's enough just to start moving mouse when system is idle and no app was started by the user yet, to trigger the issue. My system is based on Intel Celeron J3160 with integrated graphics (8086:22b1). Before upgrade to Fedora 29 the issue did not occur. Recently I’ve upgraded to Fedora 30 x64. The issue remains. I use XFCE as a desktop.
What I have tried so far:
1. Changing Option “AccelMethod” “sna” used so far to “uxa” in /etc/X11/xorg.conf.d/20-intel.conf.
The issue was replaced with another - no mouse cursor on primary display. The cursor was only visible on secondary display.
2. Changing Option “TearFree” “true” used so far with “false”. No effect.
3. Remove "AccelMethod" and "TearFree" from the 20-intel.conf. It didn't help.
4. Remove 20-intel.conf file. The issue was replaced with tearing.
5. Check if xorg-x11-drv-intel is installed. It wasn't.
6. Gathered inxi output (with removed 20-intel.conf file):
$ inxi -Gxx Graphics: Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics vendor: Gigabyte driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1 Display: x11 server: Fedora Project X.org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1024x768~60Hz, 1920x1200~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (Braswell) v: 4.5 Mesa 19.0.5 compat-v: 3.0 direct render: Yes
7. Changed configuration in the 20-intel.conf to the initial and gathered inxi output:
$ inxi -Gxx Graphics: Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics vendor: Gigabyte driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1 Display: x11 server: Fedora Project X.org 1.20.4 driver: intel resolution: 1024x768~60Hz, 1920x1200~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (Braswell) v: 4.5 Mesa 19.0.5 compat-v: 3.0 direct render: Yes
8. Start Live F30 x64. The problem was not present, but video playback was a nightmare. I could give spf instead of fps when playing 1080p movies ;-) [liveuser@localhost ~]$ inxi -Gxx
Graphics:
Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics vendor: Gigabyte
driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1
Display: wayland server: Fedora Project X.org 1.20.4 driver: i915 compositor: gnome-shell resolution: 1920x1200~60Hz, 1024x768~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (Braswell) v: 4.5 Mesa 19.0.2 compat-v: 3.0 direct render: Yes
9. I have installed LXDE for tests on non-Wayland, non-Gnome sessions.
The problem with mouse cursor is gone. Tearing is present with varying extent.
In Modesetting DDX (i.e. without 20-intel.conf file) tearing is visible during web browsing on images while scrolling with mouse. It is also visible during movie playback especially in scenes with lots of panoraming. In Intel mode (20-intel.conf without any Options neither AccelMethod) video playback suffers the same. Web browsing is better. Tearing is not in the middle of a line, but rather whole lines are torn. As if scroll speed was not equal among y-axis. In Intel mode adding TearFree Option does what it says. No tearing is visible.
I'd like to solve the issue on XFCE, which I prefer.
How can I fix this? I will be thankful for your help.
At first I have started a topic for the issue at LQ:
https://www.linuxquestions.org/questions/fedora-35/graphics-issue-after-upgrade-from-fedora-28-to-29-multiple-mouse-cursor-icons-4175656433/
Signature · 7 lines
regards przemhb _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 12 lines · Przemysław Hołubowski
Hello,
immediately after I have upgraded my system from Fedora 28 x64 to 29 graphics' issue started. Mouse leaves a trail composed of multiple blinking cursors and sometimes rectangular not-refreshed parts. The more loaded the system is the more pronounced the issue - the longer the trail. It's enough just to start moving mouse when system is idle and no app was started by the user yet, to trigger the issue.
My system is based on Intel Celeron J3160 with integrated graphics (8086:22b1). Before upgrade to Fedora 29 the issue did not occur. Recently I’ve upgraded to Fedora 30 x64. The issue remains. I use XFCE as a desktop.
You need a fresh intel ddx (commit 6afed33b2d67 ("sna: Switch back to hwcursor on the next cursor update") in particular). That should make the problem less pronounced at least, due to switching back to the hw cursor from the sw cursor a bit more greedily.
The alternative is to never move the mouse cursor to the left edge of the screen (that's when we have to switch to the sw cursor). Or if your machine has other HDMI ports use those. Sadly most devices have chosen to wire up the HDMI port which has the borked hw cursor even though there may be other ports available on the chip :(
Ideally someone would fix the trail bug in the sw cursor code as well, but so far no one has found the will to dive in that deep.
Quoted 79 lines
What I have tried so far:
1. Changing Option “AccelMethod” “sna” used so far to “uxa” in
/etc/X11/xorg.conf.d/20-intel.conf.
The issue was replaced with another - no mouse cursor on primary display. The cursor was only visible on secondary display.2. Changing Option “TearFree” “true” used so far with “false”. No effect.
3. Remove "AccelMethod" and "TearFree" from the 20-intel.conf. It didn't help.
4. Remove 20-intel.conf file. The issue was replaced with tearing.
5. Check if xorg-x11-drv-intel is installed. It wasn't.
6. Gathered inxi output (with removed 20-intel.conf file):
$ inxi -Gxx Graphics: Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics vendor: Gigabyte driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1 Display: x11 server: Fedora Project X.org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1024x768~60Hz, 1920x1200~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (Braswell) v: 4.5 Mesa 19.0.5 compat-v: 3.0 direct render: Yes7. Changed configuration in the 20-intel.conf to the initial and gathered inxi output:
$ inxi -Gxx Graphics: Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics vendor: Gigabyte driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1 Display: x11 server: Fedora Project X.org 1.20.4 driver: intel resolution: 1024x768~60Hz, 1920x1200~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (Braswell) v: 4.5 Mesa 19.0.5 compat-v: 3.0 direct render: Yes8. Start Live F30 x64. The problem was not present, but video playback was a nightmare. I could give spf instead of fps when playing 1080p movies ;-)
[liveuser@localhost ~]$ inxi -Gxx
Graphics:
Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx
Integrated Graphics vendor: Gigabyte
driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1
Display: wayland server: Fedora Project X.org 1.20.4 driver: i915
compositor: gnome-shell resolution: 1920x1200~60Hz, 1024x768~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (Braswell) v: 4.5
Mesa 19.0.2 compat-v: 3.0 direct render: Yes9. I have installed LXDE for tests on non-Wayland, non-Gnome sessions. The problem with mouse cursor is gone. Tearing is present with varying extent.
In Modesetting DDX (i.e. without 20-intel.conf file) tearing is visible during web browsing on images while scrolling with mouse. It is also visible during movie playback especially in scenes with lots of panoraming. In Intel mode (20-intel.conf without any Options neither AccelMethod) video playback suffers the same. Web browsing is better. Tearing is not in the middle of a line, but rather whole lines are torn. As if scroll speed was not equal among y-axis.
In Intel mode adding TearFree Option does what it says. No tearing is visible.I'd like to solve the issue on XFCE, which I prefer.
How can I fix this? I will be thankful for your help.
At first I have started a topic for the issue at LQ:
https://www.linuxquestions.org/questions/fedora-35/graphics-issue-after-upgrade-from-fedora-28-to-29-multiple-mouse-cursor-icons-4175656433/Signature · 7 lines
regards przemhb _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi,
Quoted 14 lines · Ville Syrjälä
Quoted 12 lines · Przemysław Hołubowski
Hello,
immediately after I have upgraded my system from Fedora 28 x64 to 29 graphics' issue started. Mouse leaves a trail composed of multiple blinking cursors and sometimes rectangular not-refreshed parts. The more loaded the system is the more pronounced the issue - the longer the trail. It's enough just to start moving mouse when system is idle and no app was started by the user yet, to trigger the issue.
My system is based on Intel Celeron J3160 with integrated graphics (8086:22b1). Before upgrade to Fedora 29 the issue did not occur. Recently I’ve upgraded to Fedora 30 x64. The issue remains. I use XFCE as a desktop.
Quoted 4 lines
You need a fresh intel ddx (commit
6afed33b2d67("sna: Switch back to hwcursor on the next cursor update") in particular). That should make the problem less pronounced at least, due to switching back to the hw cursor from the sw cursor a bit more greedily.
Hmm, most distros (Fedora, Debian, Ubuntu) have switched to using the modesetting driver for newer intel iGPU-s (see below for why).
I guess that what happens is the kernel refuses a cursor related syscall and then the ddx drops back to the sw-cursor? Any simple reproduction instructions? (I have plenty of Cherry Trail hw to test with).
The reason I'm asking is because the modesetting driver may need a similar fix. Although I think it will simply try to use the hw-cursor each cursor update unconditionally so it probably is fine already.
Quoted 8 lines
The alternative is to never move the mouse cursor to the left edge of the screen (that's when we have to switch to the sw cursor). Or if your machine has other HDMI ports use those. Sadly most devices have chosen to wire up the HDMI port which has the borked hw cursor even though there may be other ports available on the chip :(
Ideally someone would fix the trail bug in the sw cursor code as well, but so far no one has found the will to dive in that deep.
I recently (otherwise unrelated) hit issues with the sw-cursor too.
There are 2 separate problems:
1) With xserver master it seems there is an issue leading to extensive trails:
https://gitlab.freedesktop.org/xorg/xserver/issues/829
the 1.20 branch does not seem to suffer from this (for me).
2) sw-cursor and pageflipping (present extension) do not play well together:
https://gitlab.freedesktop.org/xorg/xserver/issues/828
As comments there explain the amdgpu and ati ddx drivers have a workaround which disables page-flipping as soon as a sw-cursor is visible. I've a patch-set implementating that for modesetting here:
https://gitlab.freedesktop.org/jwrdegoede/xserver/commits/master
That still needs some work, when I have some time to work on this some more I plan to rebase my fixes on top of the 1.20 branch (to avoid issue 1) and then see if I can make this work reliably.
Regards,
Hans
p.s.
Off-topic, the reasons distros have stopped using the intel-ddx driver is because it has not seen a stable release in ages and does not do stable branches.
As one of the involved distro X-package maintainers I can tell you that playing the pick a random git-snapshot and hope that it fixes more then it breaks game is no fun and we have decided to simply stop playing this game.
If Intel wants the distros to use the Intel ddx, then it needs to do a stable release-branch which only gets bug fixes and not feature work or other major code changes and then regularly tag a release on that branch. Tarbals are optionally, the most important thing is having a stable branch and preferably also versioned-tags on that branch.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 22 lines · Hans de Goede
Hi,
Quoted 14 lines · Ville Syrjälä
Quoted 12 lines · Przemysław Hołubowski
Hello,
immediately after I have upgraded my system from Fedora 28 x64 to 29 graphics' issue started. Mouse leaves a trail composed of multiple blinking cursors and sometimes rectangular not-refreshed parts. The more loaded the system is the more pronounced the issue - the longer the trail. It's enough just to start moving mouse when system is idle and no app was started by the user yet, to trigger the issue.
My system is based on Intel Celeron J3160 with integrated graphics (8086:22b1). Before upgrade to Fedora 29 the issue did not occur. Recently I’ve upgraded to Fedora 30 x64. The issue remains. I use XFCE as a desktop.Quoted 4 lines
You need a fresh intel ddx (commit
6afed33b2d67("sna: Switch back to hwcursor on the next cursor update") in particular). That should make the problem less pronounced at least, due to switching back to the hw cursor from the sw cursor a bit more greedily.
Quoted 7 lines
Hmm, most distros (Fedora, Debian, Ubuntu) have switched to using the modesetting driver for newer intel iGPU-s (see below for why).
I guess that what happens is the kernel refuses a cursor related syscall and then the ddx drops back to the sw-cursor? Any simple reproduction instructions? (I have plenty of Cherry Trail hw to test with).
Just plug something into HDMI/DP port D and move the mouse cursor to the left edge of the screen. As mentioned usually if the machine has a HDMI port it is unfortunately on port D. See kernel commit ef8dd37af85a ("drm/i915: Workaround CHV pipe C cursor fail") for further detail.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hello,
thank you for your reply.
W dniu 01.07.2019 o 15:32, Ville Syrjälä pisze:
Quoted 4 lines
You need a fresh intel ddx (commit
6afed33b2d67("sna: Switch back to hwcursor on the next cursor update") in particular). That should make the problem less pronounced at least, due to switching back to the hw cursor from the sw cursor a bit more greedily.
I am wondering what is the safest and easy way of testing this. Do I have to compile source of a kernel or just Intel DDX or maybe there are already some ready to use builds from CI? What would you recommend?
Signature · 7 lines
regards Przemysław Hołubowski _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx