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

Flickering screen when switching windows in i3 #2391

Closed
minad opened this issue Oct 22, 2016 · 13 comments
Closed

Flickering screen when switching windows in i3 #2391

minad opened this issue Oct 22, 2016 · 13 comments
Labels
C: desktop-linux C: gui-virtualization T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Milestone

Comments

@minad
Copy link

minad commented Oct 22, 2016

Qubes OS version (e.g., R3.1):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

dom0


Expected behavior:

Switching between fullscreen windows should not produce a visible flickering.

Actual behavior:

Switching fullscreen windows in the i3 window manager results in a white flicker.

Steps to reproduce the behavior:

...

General notes:

I am not sure if this happens only in the i3 window manager (I am currently using only i3). Maybe this is an issue of the window manager, but it could also be an issue of the isolation of dom0 X and the VM graphical output.


Related issues:

@andrewdavidwong
Copy link
Member

Have you or anyone else been able to duplicate this on different hardware?

@minad
Copy link
Author

minad commented Oct 23, 2016

Maybe to clarify: With flicker I mean that when I switch from a black terminal window to another black terminal the screen is cleared in between with white and this produces the visible effect.

I will test how other window managers behave. Right now I am using qubes only on one system (lenovo yoga x1) and I am still using an old kernel 4.2.8 due to issue #2186

@andrewdavidwong
Copy link
Member

Ok. If you have access to other hardware, or if anyone else reading this can test this, it would be worth seeing whether this is reproducible on other systems, or whether it's likely a hardware-specific issue.

@minad
Copy link
Author

minad commented Oct 24, 2016

I switched to the new kernel (3.2 reinstallation), but the flickering is still there.

@marmarek
Copy link
Member

I think I've seen similar issue somewhere. And enabling or disabling
composition helped (don't remember which one).

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

@andrewdavidwong andrewdavidwong added the T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. label Oct 27, 2016
@olekli
Copy link

olekli commented Nov 6, 2016

I have the same issue (screen flashes white when switching between black terminals). I'm using 3.2 with i3 4.12

I can add that it does not happen when switching to a terminal in dom0.

I attached the qubes-hcl-report output. I also tried Qubes on an older Dell laptop a couple of month ago and had the same issue.

Qubes-HCL-Dell_Inc_-Latitude_E7270-20161107-001406.yml.txt

@andrewdavidwong
Copy link
Member

@minad, @tfm1: Please try enabling and disabling composition to see whether the problem is improved or resolved in either state (with composition enabled or disabled), and let us know.

@olekli
Copy link

olekli commented Nov 7, 2016

On Sun, Nov 06, 2016 at 07:03:13PM -0800, Andrew David Wong wrote:

@minad, @tfm1: Please try enabling and disabling composition to see whether the problem is improved or resolved in either state (with composition enabled or disabled), and let us know.

I'm sorry, but how do I do that?

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#2391 (comment)

@minad
Copy link
Author

minad commented Nov 7, 2016

@tfm1 thanks for mentioning that it doesn't happen for dom0 (for me neither). Therefore I suspect that it has something to do with the VM isolation and how the buffers between dom0 and the vms are separated.

@andrewdavidwong I think i3 doesn't use composition by default. However it seems one could use a separate composite manager. Do you expect this to go away with composition due some GL double buffering?

Maybe related issue concerning i3 and missing composition: http://askubuntu.com/questions/751149/screen-tearing-when-using-i3-none-when-using-unity

@olekli
Copy link

olekli commented Nov 7, 2016

I tried XFCE4 and made two terminals in VMs other then dom0.
I made both terminals fullscreen then minimized the one currently on top.
It showed the other terminal without flashing of the screen.

@andrewdavidwong
Copy link
Member

Hm, I'm not sure. I just wanted to make sure we tried @marmarek's suggestion as part of the troubleshooting process, but it seems unclear how to do it with i3.

It is indeed helpful to know that it doesn't happen for dom0, though.

@cyrinux
Copy link

cyrinux commented Nov 8, 2016

FYI, I have less flickering problem with use of xcompmgr for enable
composition on i3

Le lun. 7 nov. 2016 à 10:48, tfm1 notifications@github.com a écrit :

On Sun, Nov 06, 2016 at 07:03:13PM -0800, Andrew David Wong wrote:

@minad, @tfm1: Please try enabling and disabling composition to see
whether the problem is improved or resolved in either state (with
composition enabled or disabled), and let us know.

I'm sorry, but how do I do that?

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#2391 (comment)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2391 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAfrqyC07HcnbRIuDOXbMuCD1mqDoRRnks5q7vPbgaJpZM4Kd9T9
.

@minad
Copy link
Author

minad commented Nov 8, 2016

It works with xcompmgr. At least the flickering when switching terminals is reduced greatly!

  1. install xcompmgr in dom0
  2. start xcompmgr in .i3/config

See https://github.com/minad/i3-config in the autostart file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: desktop-linux C: gui-virtualization 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