Bug 155581

Summary: Shortcut To Turn Off Compositing
Product: [Plasma] kwin Reporter: Jay LaCroix <jay>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: kde-2011.08, linux, schmaker, StormByte
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jay LaCroix 2008-01-12 22:26:55 UTC
Version:            (using KDE KDE 4.0.0)
Installed from:    Ubuntu Packages
OS:                Linux

I have an idea that I think will make things easier for some people and hopefully this is not hard to implement.

I really like the compositing/desktop effects of KDE4. The only downside is that when I have these effects turned on, I lose about half of the framerate for my video card when I play 3D games.

I know compositing with KDE4 may not be mature yet, but I have an idea to reach a cool middleground for people like me that play games and video, and suffer slowdown from compositing, but like the compositing too much to turn it off.

In the properties window for an icon, perhaps there should be a tickbox that says something like "disable desktop effects while this program is running". The option would be in kmenuedit also.

That way, it's not a burden for all the developers to choose what programs disable compositing and which ones don't, it's up to me, the user.

If I find compositing is slowing down a program, I can just go into the icon properties window, and set it to disable desktop effects while the program is running. Then, when I launch the game/application, desktop effects turns off so all the video resources are freed up, and then when I close the game/application, desktop effects would return.

I hope this idea makes sense.
Comment 1 Lubos Lunak 2008-01-14 22:47:52 UTC
I guess we can suspend compositing for fullscreen apps and/or provide a keyboard shortcut, but detecting which game is active is hard.
Comment 2 Jay LaCroix 2008-01-15 00:58:55 UTC
Hi Lubos!

I agree, detecting which game would be very difficult, and suspending compositing for full screen apps would be EXTREMELY awesome!

However, my idea was a bit more simple. When you create a desktop launcher icon, you can set different options such as "run as root" or "run as a different user". 

My idea was to have a new option when creating a desktop launcher that would be something like "disable compositing while this app is running". That way, it's up to the user which apps suspend compositing.

However, your idea is outstanding and I'd like to see KDE4 suspend compositing for full screen apps, that would make me the happiest KDE fan on this planet!
Comment 3 Bernd Steinhauser 2008-01-15 01:43:29 UTC
Wouldn't it be possible, to add an option "Disable compositing effects for this program" to the "special window settings"?
I mean the dialog, where you can set things like size, position etc.
Comment 4 Jay LaCroix 2008-01-15 13:30:57 UTC
No, special window settings wouldn't work, because that's hard to get to if a game is full screen, the launcher would make more sense.
Comment 5 Jonathan Thomas 2008-04-10 15:54:24 UTC
There's a Plasmoid that accomplishes this:
http://kde-look.org/content/show.php/Toggle-Compositing?content=78299
Comment 6 Jay LaCroix 2008-04-10 18:58:14 UTC
That plasmoid doesn't accomplish what I'd like to see. I'd like KDE to 
switch off compositing automatically when a full screen app is running, 
or have a toggle switch on a desktop shortcut that you can use to make 
KDE know not to use compositing while particular apps are running.

Jonathan Thomas wrote:
[bugs.kde.org quoted mail]
Comment 7 Lubos Lunak 2008-04-22 12:40:52 UTC
*** Bug 160386 has been marked as a duplicate of this bug. ***
Comment 8 Lubos Lunak 2008-04-22 12:41:10 UTC
*** Bug 161140 has been marked as a duplicate of this bug. ***
Comment 9 Roman Šmakal 2008-04-22 13:47:48 UTC
At least it will be nice to have that checkbox for shortcuts, like Jeremy said, before somebody find out how to detect OpenGL and/or fullscreen app is running.
Comment 10 premierSullivan 2008-05-17 03:44:44 UTC
If you have some command that can be run by the command line, you can do this without too much trouble.  Use kmenuedit to create a menu icon that runs that command, then right click on it and select "add to panel" or "desktop".  What command would this be?
Comment 11 Lubos Lunak 2008-05-19 23:49:15 UTC
SVN commit 810031 by lunakl:

Shortcut for temporarily suspending compositing. Useful when
one wants to run something graphically intensive like a game
or when compositing goes awry and one wants to see the checkbox
that turns it off.
FEATURE: 155581



 M  +13 -0     composite.cpp  
 M  +1 -0      kwinbindings.cpp  
 M  +2 -1      workspace.cpp  
 M  +2 -0      workspace.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=810031
Comment 12 Roman Šmakal 2008-07-11 13:03:59 UTC
Is there any chance to get it in KDE4.1? I'm finding this checkbox everytime i got my KDE updated, but it isnt anywhere...
Comment 13 Lubos Lunak 2008-07-11 14:13:21 UTC
There is no checkbox. There is a keyboard shortcut.
Comment 14 Jay LaCroix 2008-07-11 19:57:00 UTC
There should be a check box. That way you can set different applications to automatically do this.
Comment 15 Roman Šmakal 2008-07-11 20:08:31 UTC
I agree, there have to be a checkbox for kmenuedit and shortcuts, because without this it is "another manual switch".
Comment 16 Jay LaCroix 2008-08-20 05:29:26 UTC
I'm curious as to why this was marked as resolved. I am using KDE 4.1 and cannot find this feature anywhere. I did read a comment about there being a keyboard shortcut, but to me that doesn't solve it, since even Windows Vista turns off desktop effects automatically when necessary without you having to do anything.
Comment 17 Lubos Lunak 2008-08-20 11:06:06 UTC
Read comment #1 again then. I can mark this to be a duplicate of bug #165237 or mark it as WONTFIX if that helps you, but that doesn't really change anything.
Comment 18 Dotan Cohen 2008-08-30 23:35:10 UTC
@Jeremy: If you really need a checkbox, then open a new bug that requests that feature. Don't forget to link to that new bug from here so that interested parties will be able to find it.
Comment 19 Jay LaCroix 2008-09-03 04:45:43 UTC
Here is a wish for a checkbox to be placed in kmenuedit:
https://bugs.kde.org/show_bug.cgi?id=170293