All of lore.kernel.org
 help / color / mirror / Atom feed
* Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons
@ 2019-06-30 14:23 Przemysław Hołubowski
  2019-07-01 13:32 ` Ville Syrjälä
  0 siblings, 1 reply; 5+ messages in thread
From: Przemysław Hołubowski @ 2019-06-30 14:23 UTC (permalink / raw)
  To: intel-gfx

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/

-- 
regards
przemhb

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons
  2019-06-30 14:23 Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons Przemysław Hołubowski
@ 2019-07-01 13:32 ` Ville Syrjälä
  2019-07-01 14:20   ` Hans de Goede
  2019-07-03 21:36   ` Przemysław Hołubowski
  0 siblings, 2 replies; 5+ messages in thread
From: Ville Syrjälä @ 2019-07-01 13:32 UTC (permalink / raw)
  To: Przemysław Hołubowski; +Cc: intel-gfx

On Sun, Jun 30, 2019 at 04:23:47PM +0200, Przemysław Hołubowski wrote:
> 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.

> 
> 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/
> 
> -- 
> regards
> przemhb
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons
  2019-07-01 13:32 ` Ville Syrjälä
@ 2019-07-01 14:20   ` Hans de Goede
  2019-07-01 14:58     ` Ville Syrjälä
  2019-07-03 21:36   ` Przemysław Hołubowski
  1 sibling, 1 reply; 5+ messages in thread
From: Hans de Goede @ 2019-07-01 14:20 UTC (permalink / raw)
  To: Ville Syrjälä, Przemysław Hołubowski; +Cc: intel-gfx

Hi,

On 01-07-19 15:32, Ville Syrjälä wrote:
> On Sun, Jun 30, 2019 at 04:23:47PM +0200, Przemysław Hołubowski wrote:
>> 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.

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.

> 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
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons
  2019-07-01 14:20   ` Hans de Goede
@ 2019-07-01 14:58     ` Ville Syrjälä
  0 siblings, 0 replies; 5+ messages in thread
From: Ville Syrjälä @ 2019-07-01 14:58 UTC (permalink / raw)
  To: Hans de Goede; +Cc: intel-gfx

On Mon, Jul 01, 2019 at 04:20:45PM +0200, Hans de Goede wrote:
> Hi,
> 
> On 01-07-19 15:32, Ville Syrjälä wrote:
> > On Sun, Jun 30, 2019 at 04:23:47PM +0200, Przemysław Hołubowski wrote:
> >> 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.
> 
> 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.

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons
  2019-07-01 13:32 ` Ville Syrjälä
  2019-07-01 14:20   ` Hans de Goede
@ 2019-07-03 21:36   ` Przemysław Hołubowski
  1 sibling, 0 replies; 5+ messages in thread
From: Przemysław Hołubowski @ 2019-07-03 21:36 UTC (permalink / raw)
  To: Ville Syrjälä; +Cc: intel-gfx

Hello,

thank you for your reply.

W dniu 01.07.2019 o 15:32, Ville Syrjälä pisze:
> 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?

-- 
regards
Przemysław Hołubowski

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-03 21:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-30 14:23 Graphics issue after upgrade from Fedora 28 to 29 - multiple mouse cursor icons Przemysław Hołubowski
2019-07-01 13:32 ` Ville Syrjälä
2019-07-01 14:20   ` Hans de Goede
2019-07-01 14:58     ` Ville Syrjälä
2019-07-03 21:36   ` Przemysław Hołubowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.