I don't want the "lock screen" or something like that to start during an movie which it does currently in kde4.
I have checked the "Inhibit the power management daemon during playback" option but it doesn't change anything when i run kde4.
Now i don't know how vlc handles this since i haven't looked in vlc code.
But i did some google to find out how kde4 handles it because i think that vlc doesn't talk to kde powerdevil in the correct way.
This is what i did find out.
Later in the same thread.Application developers, you can now easily prevent the PC from suspending. It's enough to call the method "Inhibit" on org.kde.Solid.PowerManagement.Inhibit, specifying your application name and the reason why you want to inhibit. PowerDevil will take care of the rest, including notifying the user when the system tries to suspend.
The method returns an int, that you can use as argument when calling "Uninhibit" on the same interface to get suspension back working.
Information source kde-devel: http://lists.kde.org/?l=kde-devel&m=122281043430015Bad advice! In fact, KDE developers shouldn't use the D-Bus interface directly
(it's very likely to change at this point, to switch to the fd.o proposal...
need to find time to push that out) but the Solid::PowerManagement namespace
which offers the same services.
@All: Please use Solid::PowerManagement::(begin|stop)SuppressingSleep. For you
the D-Bus interface used is an implementation detail. This way once we make
the switch it'll be transparent for you.
I hope this helps. Nille