Registered Member
|
Is there a way to enable and disable KDE4 desktop effects from the command-line rather than through the control centre?
The reason I ask is that with them enabled, applications that us GLX rendering (like Google Earth, video players, etc.) suffer from flickering when effects are enabled (a known problem according to the Ubuntu documentation). So rather than have to manually make the change, it would be useful to be able to do it within a wrapper-script and so make life easier. I'm sure it's simple enough if I can only find the right command. :-P |
Manager
|
there is a plasmoid http://www.kde-look.org/content/show.ph ... a26516181f
also see: disabling-kwin-com ... -6712.html
Last edited by google01103 on Sun Dec 14, 2008 6:00 pm, edited 1 time in total.
|
Registered Member
|
kubuntu 10.04 AMD64 - KDE 4.4
AMD - radeonHD - M-Audio revolution 5.1 |
Registered Member
|
Thanks both for the suggestions.
google01103's link helped by showing the right config file. And that helped me work out that it's kwin that I need to work on. So changing compositing's "enabled" parameter and running kwin --replace does the job, albeit in a rather messy way (all the windows vanish and then reappear) but it's better than having to do it manually. There must be a cleaner way (however the control centre does it) but it's a start. Shame kill -HUP doesn't persuade kwin to re-read its config file... |
Registered Member
|
Hit shift + left-alt + f12 at the same time is quick enough for me
OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct. |
Registered Member
|
...which along with another thread I was looking at led me to some interesting output from dbus-monitor when I hit that combination:
Now once I can decipher the dbus-send man page I may have an answer for doing it in a script. I'll get there yet |
Administrator
|
Since you are using KDE 4, and therefore Qt4, you may find qdbus easier to use.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Hi! I'm having more or less the same issue. Did you ever get it working? Using qdbusviewer and Alt-Shift-F12, I saw the signal sent was:
Received signal from :1.2, path /modules/kdedglobalaccel, interface org.kde.KdedGlobalAccel, member invokeAction Arguments: {"kwin", "Suspend Compositing", "KWin", "Suspend Compositing"}, "91208637" But I don't know how to get the same effect using the command line. I'm pretty sure it should start like this:
But anything I try to put after that results in either
Any ideas? |
Registered Member
|
Unfortunately I didn't get anywhere. I've given up even trying to understand how to get dbus or qdbus working from the command-line. I'm sure there's a very good reason for the impenetrable syntax and lack of useful documentation (or at least lack of any that I can find), but it's got me stumped. |
Registered Member
|
Yeah, the lack of documentation is stunning.
The problem seems to be with the fact that org.kde.KdedGlobalAccel.invokeAction is a signal and not a method. I can call the methods just fine, for example:
Anyway, thanks for your quick reply, I'll just wait a bit and see if anyone else knows.... bepaald |
Registered Member
|
I had to reinstall Linux when i enabled these effects.. i guess it's because i didn't have drivers installed..
|
Administrator
|
@QueenZ: There are numerous posts on this forum that detail how to edit the KWin configuration file to disable these configuration effects if a problem such as this is encountered.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
It's very much an ugly hack, but I needed to do this -- so I did using xmacro. All I did was install it, create a file with this in it:
and then I cat that and pipe it to xmacroplay ":0.0" whenever I want to toggle the special effects. |
Registered Member
|
See here viewtopic.php?f=17&t=6712 :
This command will disable compositing in the kwinrc config file: kwriteconfig --file kwinrc --group Compositing --key Enabled false Then restart kwin (in Alt+F2) with: kwin --replace To get compositing back, just substitute false with true and restart kwin again.
vatbier, proud to be a member of KDE forums since 2008-Oct.
|
Registered Member
|
I just worked out how to do this using qdbus. There's a function you can call with qdbus that toggles compositing, and by querying another function you can see if compositing is currently enabled and then disable it. Something like this:
This script will detect if compositing is enabled, and if it is it will disable it. Then it will run your command. Once that is done, it re-enabled compositing if it was enabled when you ran the script. Otherwise it leaves compositing disabled. Enjoy! |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]