[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Questions about Power Devil
From:       Nicolas_Lécureuil <neoclust.kde () gmail ! com>
Date:       2009-12-06 1:58:59
Message-ID: 547338e40912051758y77e5fca9p1758acdd2686b7ea () mail ! gmail ! com
[Download RAW message or body]

On Sun, Jan 18, 2009 at 6:44 PM, Dario Freddi <drf54321@gmail.com> wrote:
> On domenica 18 gennaio 2009 17:58:06 David Edmundson wrote:
>> Hi,
>
> Hi David,
>
>>
>> As one of the Dragon Player maintainers I'm looking at using it's DBus
>> interface to inhibit the screen blanking or suspend kicking in when a user
>> is watching a film.
>>
>> 1) Should I be sending dbus method calls manually to a dbus connection or
>> is there a KDE library to do the calling.
>
> Solid is your friend. Granting an inhibition is really easy:
>
> int m_cookie = Solid::PowerManagement::beginSuppressingSleep(”Reason for
> inhibition”);
>
> Keep track of that cookie. W( hen you want to release the inhibition, just call:
>
> Solid::PowerManagement::stopSuppressingSleep(m_cookie);
>
> And that's it. PowerDevil will take care of everything else. Keep your eyes on
> Development and eventually my blog, as I'm adding more cool features to this
> that will make the Presentation profile useless (so we'll also move away from
> this custom profile workaround that's been going for years).

Hi,

there is a pb with this because if the user doesn't use screensaver,
it is automatically activated back when the application use
stopSuppressingSleep.
We should look if screensavers are used before using those functions

-- 
Cordialement,
Nicolas Lécureuil
Contributeur KDE pour Mandriva
JID: neoclust@jabber.fr
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic