Bug 315294 - blur and sliding popups are not working after upgrade to 4.10
Summary: blur and sliding popups are not working after upgrade to 4.10
Status: RESOLVED DUPLICATE of bug 179042
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: 4.10.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-16 21:52 UTC by Yassine SAKOUM
Modified: 2013-09-11 14:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yassine SAKOUM 2013-02-16 21:52:10 UTC
after upgrading to kde 4.10 blur and sliding popups effects are not working anymore.
I have an ATI Mobility Radeon HD 4500/5100 Series and i'm using catalyst driver.

Reproducible: Always
Comment 1 Thomas Lübking 2013-02-16 22:31:32 UTC
Mind elaborating on "not working anymore" - do you get an error (like "could not be loaded") or do they simply not do anything or do the not work in combination (ie. sliding popups works but is not blurred) or ...
Comment 2 Yassine SAKOUM 2013-02-17 13:26:31 UTC
I don't get errors, both are activated but i can't see these effects, they do nothing no bluring and no sliding popups and the they do not interfere.
I wated to fil two separate bugs for each effect but i thought mabe they are related to enabling direct rendering for catalyst so it is better to group them in one report.
Sorry if i was not clear from the beginning.
I saw in another bug report that you demanded the output of "qdbus org.kde.kwin /KWin supportInformation" here is mine if this will help you :

http://paste.kde.org/673352/
Comment 3 Thomas Lübking 2013-02-17 13:33:09 UTC
Thanks, would have been the next question ;-)

run "kcmshell4 kwincompositing"
In the second tab, configure the blur effect and deactivate caching (the only checkbox)
See what happens.

To determine relation in general, please deactivate the blur effect and see whether slidingpopups start to work again.
Comment 4 Yassine SAKOUM 2013-02-17 14:59:07 UTC
I did everything you said nothing changed.
Now i'm using "Icon Only Task Manager" but there is no thumbnails showing when i hover the icon of an opened application despite Taskbar Thumbnails is activated.
I tried to activate the explosion effect but t get this error : explosion effect requires OpenGL 2
but my driver's OpenGL version is 3.3 (information from catalyst control center).
Comment 5 Martin Flöser 2013-02-17 15:12:53 UTC
according to the support information you are not using OpenGL 2:
> OpenGL 2 Shaders are not used. Legacy OpenGL 1.x code path is used.

You could try to do a:
KWIN_DIRECT_GL=1 kwin --replace &
Comment 6 Thomas Lübking 2013-02-17 15:19:21 UTC
unrelated but plasma popups will likely not be used due to plasma not knowing that compositing is active: https://git.reviewboard.kde.org/r/107983/
Comment 7 Yassine SAKOUM 2013-02-17 15:53:37 UTC
(In reply to comment #5)
> according to the support information you are not using OpenGL 2:
> > OpenGL 2 Shaders are not used. Legacy OpenGL 1.x code path is used.
> 
> You could try to do a:
> KWIN_DIRECT_GL=1 kwin --replace &

Unfortunatly Nothing changed.
Comment 8 Thomas Lübking 2013-02-17 16:05:54 UTC
KWIN_DIRECT_GL=1 KWIN_COMPOSE=O2 kwin --replace &

either the explosion effect can be activated then or everything crashes or there's something severely broken about your installation..

Reg. the original issue:
Did you eg. try oxygen transparent or does eg the tabbox (alt+tab) blur?

If this is only about the panels there's only one problem being: plasma does not know that compositing is active

In that case: ensure compositing and the blur effect are enabled, then run:
kquitapp plasma-desktop; sleep 5; plasma-desktop

This should kill the desktop and after 5 seconds start it again. Since compositing is up at that time, plasma-desktop should notice that and activate translucency, blurring and animation for its panels.
Comment 9 Yassine SAKOUM 2013-02-17 17:09:03 UTC
1-kquitapp plasma-desktop; sleep 5; plasma-desktop
fixed every thing (blur, sliding popup, thumbnails) except plasmoids that blur dosen't work for them they still transparent.

2-KWIN_DIRECT_GL=1 KWIN_COMPOSE=O2 kwin --replace &
fixed explosion effect.

Now that we know what the problem is. Can i do something to fix it besides killing the desktop at every boot ?
Comment 10 Thomas Lübking 2013-02-17 19:02:20 UTC
There's always some way ;-)

To ensure kwin runs with direct rendering and OpenGL2:

add an executable shellscript to ~/.kde/env (could be ~/.kde4/env)

#!/bin/sh
export KWIN_DIRECT_GL=1
export KWIN_COMPOSE=O2

Be warned that this overrides system detection AND configuration. Don't forget you put it there, might cause trouble when you replace the hardware.

For plasma i've not tried, but guess it will be sufficient to delay the launch a bit. Place some "plasma-desktop.desktop" into ~/.kde[4]/share/autostart/

[Desktop Entry]
Exec=sleep 5; plasma-desktop
Hidden=false
Name=Plasma Desktop Workspace
OnlyShowIn=KDE;
Type=Service
X-DBUS-StartupType=wait
X-KDE-StartupNotify=false
X-KDE-autostart-phase=BaseDesktop

This will shadow the stock service and thanks to "sleep 5" wait 5 seconds before actually starting plasma in the hope that the compositor is completely up before it starts so that it will detect the compositing state "correctly" (it will eg. not notice if compositing gets suspended afterwards)

*** This bug has been marked as a duplicate of bug 179042 ***
Comment 11 Yassine SAKOUM 2013-02-17 21:03:01 UTC
After some testings i found out that all i need is "export KWIN_DIRECT_GL=1" to make everything work.
I removed the desktop file and "export KWIN_COMPOSE=O2" from the script.
Thank you very much for your help and good luck with the "KSelectionWatcher" bug :).
Comment 12 Michael D 2013-09-11 08:04:03 UTC
I have this bug and it still affects KDE 4.11.1. I'm running Catalyst 13.8 beta. If I disable compositing, click on something that's supposed to use the sliding popups animation (like the clock widget), click it again to close it, and then reenable compositing, I get the animation back. If I just disable and immediately reenable compositing, I'm not guaranteed to get the animation back. What's up?
Comment 13 Thomas Lübking 2013-09-11 14:37:24 UTC
(In reply to comment #12)
> I have this bug
nope ;-)

> beta. If I disable compositing, click on something that's supposed to use
> the sliding popups animation (like the clock widget), click it again to
> close it, and then reenable compositing, I get the animation back.

See?

> If I just disable and immediately reenable compositing, I'm not guaranteed 
> to get the animation back. What's up?

Timing related, i assume. Some race condition in detecting the availability of the feature (rather than compositing)
Does just "wait long enough" before re-enabling compositing do?

The effects are destroyed with the compositor and annouce their absence immediately while the compositor selection is kept for half a second to stash temprary toggles (for resets) what might confuse the client depending on how it obtains, caches and interprets availablity of compositing and effect.

See bug #179042 comment #101 and please keep this on the actual bug and not this dupe, thanks.