You are not logged in.

#1 2021-05-22 01:05:07

kmani314
Member
Registered: 2021-02-19
Posts: 13

Intel Xe graphics poor performance on X11

Hi, I have a 2021 Dell XPS13 with an 11th Gen Intel i7-1185G7 (Intel Iris Xe Graphics) and I'm getting really bad performance when running X11. My whole computer lags when opening new terminal windows, both chromium and firefox can't scroll smoothly even on text-only websites, and my fans spin up to max when I am trying to watch an HD video. Both Chromium and Firefox have hardware acceleration turned on, and I see the GPU being used when running them in intel_gpu_top. I have the latest intel_media_driver and xf86-video-intel installed, which both say they support Intel Xe. I don't think these are unreasonable things to ask of very recent (and relatively high end) hardware, so is this a driver/configuration problem? Does anyone know how to fix this?

Offline

#2 2021-05-22 01:46:35

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Intel Xe graphics poor performance on X11

Try removing xf86-video-intel.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-05-22 06:12:57

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Intel Xe graphics poor performance on X11

Offline

#4 2021-05-22 18:33:15

kmani314
Member
Registered: 2021-02-19
Posts: 13

Re: Intel Xe graphics poor performance on X11

Thanks! Removing xf86-video-intel fixes the issue. Chrome runs really well most of the time now, but occasionally the UI freezes for ~15 seconds at a time and firefox is unusable (it is basically a slideshow). I tried installing vulkan-intel and switching Chrome to use vulkan as the graphical backend, but that made it much worse. Is this another configuration issue?

Offline

#5 2021-05-22 18:46:56

jsoy9pQbYVNu5nfU
Member
Registered: 2013-04-19
Posts: 108

Re: Intel Xe graphics poor performance on X11

kmani314 wrote:

Thanks! Removing xf86-video-intel fixes the issue. Chrome runs really well most of the time now, but occasionally the UI freezes for ~15 seconds at a time and firefox is unusable (it is basically a slideshow). I tried installing vulkan-intel and switching Chrome to use vulkan as the graphical backend, but that made it much worse. Is this another configuration issue?

Are you running with a composited desktop using a reasonable compositor? Like GNOME, Plasma. Don't use outdated compositor software like compton. If not try, and check dmesg as well as Xorg.0.log for interesting entries (errors, warnings, ...). It should be using the modesetting driver and glamor without errors in Xorg.0.log. If in doubt pastebin the full files and post them.

In Firefox, try force-enabling WebRender (see the Arch wiki article for details). Check if any existing issues persist with Firefox Nightly (AUR).

Last edited by jsoy9pQbYVNu5nfU (2021-05-22 18:47:31)

Offline

#6 2021-05-22 19:12:45

kmani314
Member
Registered: 2021-02-19
Posts: 13

Re: Intel Xe graphics poor performance on X11

I use i3 without a compositor. I used to use picom, but I stopped because I didn't really need it. There aren't any error messages in dmesg or Xorg.0.log, but there is output from the modesetting driver so it is definitely in use. I had WebRender turned on, and when I disabled it firefox started working fine (although with high cpu usage) so it seems that WebRender is causing some problems. Should I be using a compositor?

Offline

#7 2021-05-22 19:18:36

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Intel Xe graphics poor performance on X11

Did you try the i965 GL driver (see my prev post)?

Offline

#8 2021-05-22 19:51:48

kmani314
Member
Registered: 2021-02-19
Posts: 13

Re: Intel Xe graphics poor performance on X11

I just tried the i965 driver, and while there aren't any lag spikes, the performance is much worse overall. Simple animations are choppy and the CPU usage is very high when using Chrome. I think this has something to do with my external monitor. My laptop has a HiDPI 3840x2400 display and the monitor I'm using is a 34" 3440x1400 ultrawide (normal DPI). When I disconnect the monitor and use only the laptop screen, there are no lag spikes and I'm able to use firefox with WebRender turned on. Everything is very responsive and smooth. When I plug in the monitor, there are occasionally lag spikes and firefox with webrender is unusable. Here is my xrandr command for reference:

#!/bin/bash

xrandr  --fb 10720x5280 \
    --output eDP-1 --mode 3840x2400 --pos 6880x0\
    --output DP-1 --mode 3440x1440 --scale 2x2 --pos 0x0

i3-msg restart

Offline

#9 2021-05-22 19:57:24

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Intel Xe graphics poor performance on X11

Or the 10720x5280 resolution - do you get similar problems when not scaling the external output and stacking them vertically (3840x3840)?

Edit, if yes: what about only the external output and is it maybe VRR capable?

Last edited by seth (2021-05-22 19:58:03)

Offline

#10 2021-05-22 20:11:50

kmani314
Member
Registered: 2021-02-19
Posts: 13

Re: Intel Xe graphics poor performance on X11

If I don't scale the output I won't be able to use both displays at the same time because of the different DPIs. Either content will be way too small on my laptop screen or way too large on the monitor. I've tried disabling the laptop screen output but I'd still have to manually switch applications back to HiDPI mode if I wanted to use the laptop screen by itself. Scaling fixes this but I guess the GPU isn't capable of rendering a framebuffer that large.

Offline

#11 2021-05-22 20:16:45

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Intel Xe graphics poor performance on X11

The test is meant to figure whether this is resolution dependent (ie. whether you're asking the chip to colorize too many pixels) - the impact on usability is irrelevant itr.

Offline

#12 2021-05-22 20:22:46

kmani314
Member
Registered: 2021-02-19
Posts: 13

Re: Intel Xe graphics poor performance on X11

I just tried it, everything works perfectly if I use the screen at its native resolution without scaling. This means that it's almost definitely a resolution problem?

Offline

#13 2021-05-22 20:35:01

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Intel Xe graphics poor performance on X11

Likely. 10720x5280 is quite a lot.

You could drive the internal display at a lower resolution (1920x1200) or try to arrange them into 8192x8192 (the next smaller frame to test would be 4096x4096, but that defies scaling as well)

Offline

Board footer

Powered by FluxBB