Inhibit power daemon kde4.2 [solved]

*nix specific usage questions
Nille
Blank Cone
Blank Cone
Posts: 19
Joined: 26 May 2009 21:34

Inhibit power daemon kde4.2 [solved]

Postby Nille » 26 May 2009 22:22

When i use vlc in kde4.2 i can't get the "i'm alive" function to work.
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.
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.
Later in the same thread.
Bad 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.
Information source kde-devel: http://lists.kde.org/?l=kde-devel&m=122281043430015

I hope this helps. Nille
Last edited by Nille on 28 May 2009 13:49, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Inhibit power daemon kde4.2

Postby Jean-Baptiste Kempf » 26 May 2009 22:40

"Solid::PowerManagement::(begin|stop)SuppressingSleep"

Well, I guess this is only for KDE applications... Too bad.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Nille
Blank Cone
Blank Cone
Posts: 19
Joined: 26 May 2009 21:34

Re: Inhibit power daemon kde4.2

Postby Nille » 26 May 2009 23:03

I sent en mail to Dario asking how it should be implemented for non kde apps.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Inhibit power daemon kde4.2

Postby Jean-Baptiste Kempf » 26 May 2009 23:30

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Nille
Blank Cone
Blank Cone
Posts: 19
Joined: 26 May 2009 21:34

Re: Inhibit power daemon kde4.2

Postby Nille » 27 May 2009 00:25

I run the rc1 but i shall try head and see if it works.

Nille
Blank Cone
Blank Cone
Posts: 19
Joined: 26 May 2009 21:34

Re: Inhibit power daemon kde4.2

Postby Nille » 28 May 2009 13:48

Tried vlc-1.0.0.rc2 and it's fixed in this release.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Inhibit power daemon kde4.2 [solved]

Postby Jean-Baptiste Kempf » 28 May 2009 14:23

Great. Topic closed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests