Skip to content
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

Tearing when windows are resized #6880

Open
DemiMarie opened this issue Sep 8, 2021 · 5 comments
Open

Tearing when windows are resized #6880

DemiMarie opened this issue Sep 8, 2021 · 5 comments
Labels
affects-4.1 This issue affects Qubes OS 4.1. C: gui-virtualization fixed-by-wayland Bugs that would not appear if Qubes OS used Wayland instead of X11 needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. P: minor Priority: minor. The lowest priority, below "default." T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@DemiMarie
Copy link

How to file a helpful issue

Qubes OS release

R4.1

Brief summary

When a window is resized quickly, tearing will sometimes happen. Reproducing the problem is difficult, as the problem is intermittent.

Steps to reproduce

Quickly resize a window, such as a terminal window. The bug will not always trigger.

Expected behavior

No tearing

Actual behavior

Tearing

@DemiMarie DemiMarie added T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. labels Sep 8, 2021
@DemiMarie
Copy link
Author

There is a FreeDesktop specification that can help, if I recall correctly.

@marmarek marmarek added P: minor Priority: minor. The lowest priority, below "default." and removed P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. labels Sep 8, 2021
@andrewdavidwong andrewdavidwong added C: gui-virtualization needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels Sep 8, 2021
@andrewdavidwong andrewdavidwong added this to the Release 4.1 updates milestone Sep 8, 2021
@jamke
Copy link

jamke commented Nov 19, 2022

I have similar in R4.1.1 all the time. Any resize of a window causes tearing and glitches, but after resize is finished - it's OK again.
Intel iGPU of 11-gen i7.
The tearing and flashing glitches during resizing process are visible only inside the resized window.

@DemiMarie
Copy link
Author

This is a known problem with the GUI protocol. Fixing it requires the GUI daemon to tell the agent to resize, and defer the actual resize until the agent has rerendered the window. @marmarek is this something you are okay with?

@jamke
Copy link

jamke commented Nov 20, 2022

In my case I solved almost all tearing, glitches and artifacts problems with these 3 steps:

  1. Adding kernel parameter i915.enable_psr=0: https://wiki.archlinux.org/title/Intel_graphics#Screen_flickering
  2. Creating 20-intel.conf with TearFree option: https://wiki.archlinux.org/title/Intel_graphics#Tearing
  3. Turning on the Compositor in the xfce settings. Without it I still had scrolling and video tearing.

Now I'm finally very comfortable with the video output of R4.1.

@andrewdavidwong andrewdavidwong added the affects-4.1 This issue affects Qubes OS 4.1. label Aug 8, 2023
@andrewdavidwong andrewdavidwong removed this from the Release 4.1 updates milestone Aug 13, 2023
@DemiMarie DemiMarie added the fixed-by-wayland Bugs that would not appear if Qubes OS used Wayland instead of X11 label Aug 20, 2023
@Middenvaus
Copy link

Middenvaus commented Dec 20, 2023

i have the same issue after resizing the window several times I got tearing in almost all applications in other appvms. my hardware is amd with vega integrated graphic

i try to solve my problem by writing xorg config in /etc/X11/xorg.conf.d with next content:

Section "OutputClass"
        Identifier "AMD"
        MatchDriver "amdgpu"
        Driver "amdgpu"
        Option "TearFree" "true"
EndSection

@DemiMarie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.1 This issue affects Qubes OS 4.1. C: gui-virtualization fixed-by-wayland Bugs that would not appear if Qubes OS used Wayland instead of X11 needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. P: minor Priority: minor. The lowest priority, below "default." T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

No branches or pull requests

5 participants