Bug 341972 - KWin doesn't refresh screen when compositing is enabled
Summary: KWin doesn't refresh screen when compositing is enabled
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 15:03 UTC by Jan Grulich
Modified: 2021-11-06 20:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Output from KWin. (36.76 KB, text/plain)
2014-12-17 15:04 UTC, Jan Grulich
Details
Requested KWin info. (6.28 KB, text/plain)
2014-12-17 15:26 UTC, Jan Grulich
Details
KWin info with enabled compositing. (8.15 KB, text/plain)
2014-12-18 09:30 UTC, Jan Grulich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Grulich 2014-12-17 15:03:21 UTC
With enabled compositing it looks like my screen is frozen, it doesn't do anything and mouse cursor is the only thing which is moving. Clicking on something actually do some action, but you can just guess what is going on as the display is not refreshed. 

Here is some output from KWin about my driver and so on:
OpenGL vendor string:  Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL version string: 3.0 Mesa 10.4.0
OpenGL shading language version string: 1.30
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.0
GLSL version: 1.30
Mesa version: 10.4
Linux kernel version: 3.17.6
Requires strict binding: yes
GLSL shaders: yes
Texture NPOT support: yes
Virtual Machine: no
Direct rendering: true

Reproducible: Always
Comment 1 Jan Grulich 2014-12-17 15:04:23 UTC
Created attachment 90013 [details]
Output from KWin.

Here is some output from KWin running from konsole when I was trying to enable/disable compositing.
Comment 2 Thomas Lübking 2014-12-17 15:10:08 UTC
Run "qdbus org.kde.KWin /KWin supportInformation" and attach the output.
If there's a line that says:
         Current Plugin: aurorae
ply retry with the oxygend decoration.
Comment 3 Jan Grulich 2014-12-17 15:26:32 UTC
Created attachment 90015 [details]
Requested KWin info.

I do not use aurorae, I'm using default breeze decoration.
Comment 4 Thomas Lübking 2014-12-17 15:43:10 UTC
> Compositing is not active
Please try:
sleep 15; qdbus org.kde.KWin /KWin supportInformation

and after calling that (ie. while "sleep" sleeps) activate compositing (press SHIFT+Alt+F12), wait half a minute and then suspend the compositor again (same shortcut)
Comment 5 Jan Grulich 2014-12-18 09:30:10 UTC
Created attachment 90031 [details]
KWin info with enabled compositing.
Comment 6 Thomas Lübking 2014-12-18 21:39:46 UTC
Random things to try:

> OpenGL version: 3.0
Try to fall back to GL 2.0 (you'll eventually have to reboot) ("kcmshell5 kwincompositing")

> Currently Active Effects:
> -------------------------
> blur
> contrast

Disable both ("kcmshell5 kwineffects")

> GPU class: SandyBridge
Do you use sna or glamor acceleration? ("grep -i glamor /var/log/Xorg.0.log")

Try sna if glamor:
/etc/X11/xorg.conf.d/20-intel.conf
----------------------------------------------
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "sna"
EndSection

Finally: does this also happen with a singlescreen setup?
Comment 7 Jan Grulich 2015-01-05 15:56:07 UTC
(In reply to Thomas Lübking from comment #6)
> Random things to try:
> 
> > OpenGL version: 3.0
> Try to fall back to GL 2.0 (you'll eventually have to reboot) ("kcmshell5
> kwincompositing")
Both OpenGL 3.0 and 2.0 don't work.

> > Currently Active Effects:
> > -------------------------
> > blur
> > contrast
> 
> Disable both ("kcmshell5 kwineffects")
> 
Didn't help.

> > GPU class: SandyBridge
> Do you use sna or glamor acceleration? ("grep -i glamor /var/log/Xorg.0.log")
I'm using sna.

> Try sna if glamor:
> /etc/X11/xorg.conf.d/20-intel.conf
> ----------------------------------------------
> Section "Device"
>    Identifier  "Intel Graphics"
>    Driver      "intel"
>    Option      "AccelMethod"  "sna"
> EndSection
> 
> Finally: does this also happen with a singlescreen setup?
Yep, it happens also with a singlescreen setup.
Comment 8 Jan Grulich 2015-01-09 15:22:34 UTC

*** This bug has been marked as a duplicate of bug 342582 ***
Comment 9 Jan Grulich 2015-02-02 09:08:07 UTC
I'm still experiencing this issue, but it happens randomly. It freezes only sometimes and I have to restart compositing to refresh the screen and make it work again.
Comment 10 Thomas Lübking 2015-02-02 23:52:31 UTC
Do you have
   glxinfo | grep sync_object

In case, try:
   KWIN_EXPLICIT_SYNC=0 kwin_x11 --replace &
Comment 11 Jan Grulich 2015-02-03 09:01:11 UTC
(In reply to Thomas Lübking from comment #10)
> Do you have
>    glxinfo | grep sync_object

No.

> In case, try:
>    KWIN_EXPLICIT_SYNC=0 kwin_x11 --replace &

Ok, I'm going to try that and will let you know.
Comment 12 Thomas Lübking 2015-02-03 10:35:03 UTC
(In reply to Jan Grulich from comment #11)

> Ok, I'm going to try that and will let you know.


shouldn't make any difference.
could be https://bugs.freedesktop.org/show_bug.cgi?id=81551 ?

 LIBGL_DRI3_DISABLE=1 kwin_x11 -- replace &
Comment 13 Thomas Lübking 2015-07-06 21:27:28 UTC
Did you try comment #12?
Comment 14 Alexander Mentyu 2018-04-10 17:00:37 UTC
Can you reproduce this bug after updates?
Comment 15 kde.org 2021-11-06 20:39:54 UTC
User has not responded to request for information for 3 years. Closing.