Fedora 26 GNOME on Wayland - screen tearing in Firefox

asked 2017-09-22 12:02:47 -0600

Tommy544 gravatar image

updated 2017-09-27 08:25:34 -0600

Hello,

I am having a problem with my setup. My laptop is Dell XPS 15 9550 and has integrated Intel HD530 as well as dedicated nvidia 960m graphics. I just did a fresh install of Fedora 26, haven't changed anything and I am noticing a quite severe horizontal screen tear while scrolling in Firefox. There is no screen tear while playing videos in Firefox or other video programs. Moreover, I notice that the performance of the DE in general is not ideal. Animations like opening the task view (windows key) is not very smooth and I also noticed my mouse being slightly laggy from time to time. The screen tear is present on X server as well as on Wayland session. I was under the impression that the screen tearing issue should no longer be present in Wayland.

Kernel: 4.12.13-300 GNOME: 3.24.2

Is there any additional setup that I should do since I have an Optimus enabled laptop? Any ideas why I might be getting these performance issues?

EDIT: I also noticed that there are some nouveau errors shown on the boot messages, so maybe there is some connection between those and my problem. Here are the logs:


17:01:29 kernel: nouveau 0000:01:00.0: DRM: Pointer to flat panel table invalid
17:01:29 kernel: nouveau 0000:01:00.0: DRM: Pointer to TMDS table invalid
17:01:29 kernel: nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 10ac08 [ IBUS ]
17:01:29 kernel: nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 022554 [ IBUS ]
17:01:27 kernel: ACPI Error: Method parse/execution failed [\_TZ.TZ01._TMP] (Node ffff935ead1a7c08), AE_NOT_FOUND (20170303/psparse-543)
17:01:27 kernel: ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20170303/psargs-364)
17:01:27 kernel: ACPI Error: Method parse/execution failed [\_TZ.TZ01._TMP] (Node ffff935ead1a7c08), AE_NOT_FOUND (20170303/psparse-543)
17:01:27 kernel: ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20170303/psargs-364)
17:01:27 kernel: ACPI Error: Method parse/execution failed [\_TZ.TZ00._TMP] (Node ffff935ead1a7690), AE_NOT_FOUND (20170303/psparse-543)
17:01:27 kernel: ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20170303/psargs-364)
17:01:27 kernel: ACPI Error: Method parse/execution failed [\_TZ.TZ00._TMP] (Node ffff935ead1a7690), AE_NOT_FOUND (20170303/psparse-543)
17:01:27 kernel: ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20170303/psargs-364)
17:01:27 kernel: acpi PNP0C0B:04: Failed to set initial power state
17:01:27 kernel: ACPI Error: Method parse/execution failed [\_TZ.FN04._ON] (Node ffff935ead1a7758), AE_NOT_FOUND (20170303/psparse-543)
17:01:27 kernel: ACPI Error: Method parse/execution failed [\_TZ.FNCL] (Node ffff935ead1a7488), AE_NOT_FOUND (20170303/psparse-543)
17:01:27 kernel: ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20170303/psargs-364)
17:01:27 kernel: ACPI Error: Method parse/execution failed [\_TZ.FN04._ON] (Node ffff935ead1a7758), AE_NOT_FOUND (20170303/psparse-543)
17:01:27 kernel: ACPI Error: Method ...
(more)
edit retag flag offensive close merge delete

Comments

I have found an article on Arch linux wiki mentioning specifically Skylake family of Intel processors having some issues with i915 DRM driver. Not sure if it applies here though. https://wiki.archlinux.org/index.php/...graphics#Skylakesupport

Tommy544 gravatar imageTommy544 ( 2017-09-22 12:06:13 -0600 )edit

Post here output of inxi -G. Maybe your laptop is set to use nvidia GPU and you're working on nouveau (which might have some issues on your GPU).

ozeszty gravatar imageozeszty ( 2017-09-25 15:38:17 -0600 )edit

Hey, thanks for the answer. Here is the output:


inxi -G
Graphics:  Card-1: Intel HD Graphics 530
           Card-2: NVIDIA GM107M [GeForce GTX 960M]
           Display Server: wayland (X.org 119.3 ) drivers: i915,nouveau Resolution: 1920x1080@59.88hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) version: 4.5 Mesa 17.1.7
Tommy544 gravatar imageTommy544 ( 2017-09-27 08:16:20 -0600 )edit

Create /etc/X11/xorg.conf.d/20-modesetting.conf with this content:

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
EndSection

It will force Intel GPU to work with modesetting DDX driver instead of Intel DDX. You'll see it it works better. inxi -G should report ...drivers: modesetting... instead of i915.

ozeszty gravatar imageozeszty ( 2017-09-27 08:40:53 -0600 )edit

I created the file with those contents as you wrote, but it does not seem to have any effect. After reboot I tried both Wayland and X11 sessions and inxi -G still shows i915 driver.

Tommy544 gravatar imageTommy544 ( 2017-09-27 09:19:08 -0600 )edit