After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 338450 - Ekiga should call the gnome-power-manager InhibitInactiveSleep command
Ekiga should call the gnome-power-manager InhibitInactiveSleep command
Status: RESOLVED DUPLICATE of bug 353077
Product: ekiga
Classification: Applications
Component: general
2.0.x
Other All
: Low enhancement
: ---
Assigned To: Snark
Ekiga maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-14 11:00 UTC by lists
Modified: 2006-08-27 09:14 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description lists 2006-04-14 11:00:09 UTC
From: https://launchpad.net/distros/ubuntu/+source/ekiga/+bug/39543

"I was just in the middle of a voice call and my machine suspended.

It would be excellent if ekiga could let Gnome-Power-Manager know not to go to
sleep using the InhibitInactiveSleep call.

Please find more information:
http://live.gnome.org/GnomePowerManager/Faq#head-ec399a12ba6d1a8461e5d6af7394d9560a838bc4
http://bugzilla.gnome.org/show_bug.cgi?id=334809

This is distinguished from Bug #30659 [gnome bugzilla: Bug #330237 ] because I
do not expect ekiga to inhibit the screensaver. I don't mind if the screen
blanks (in fact I would like it to do so), but I can't think of a good reason
why it should suspend when you are *in* a call (the inhibit should begin as a
call begins and stop when the call ends - so that it doesn't inhibit when it is
sitting idle 'waiting' for a call)."
Comment 1 Snark 2006-04-14 13:54:09 UTC
Hmmm... looks like a work for the DBUS component again...
Comment 2 Damien Sandras 2006-04-14 14:06:30 UTC
Snark, don't confuse the DBUS component as a server (which is the current state), and as a client (which corresponds to the current bug report).
Comment 3 Snark 2006-04-14 16:38:55 UTC
The DBUS component makes ekiga available through DBUS... hence if the power manager has to know about ekiga through DBUS, it will be through that component, isn't it ?
Comment 4 Damien Sandras 2006-04-14 20:51:13 UTC
Perhaps I misunderstood. I thought Ekiga had to warn gnome-power-manager using DBUS, not gnome-power-manager querying Ekiga. 
Comment 5 Snark 2006-04-15 05:07:16 UTC
The function in the DBUS component which signals call states will do a switch on the state and call the required methods through DBUS too.

So it will be ekiga warning the gnome-power-manager and the screensaver.
Comment 6 Damien Sandras 2006-04-15 20:00:23 UTC
That's exactly what I'm saying :-)

The current DBUS component is sort of a "server" offering services to other DBUS "clients".

Here it is just the reverse situation.

Anyway, that's for 2.2.
Comment 7 Snark 2006-04-15 20:04:37 UTC
Yes, it's for 2.2. And I hope it will be soon :-)
Comment 8 lists 2006-04-26 01:24:07 UTC
As Damien says, I believe that the work involved in making a DBus call to GPM is far less than making ekiga act as a server receiving DBus calls.

To let you know, it seems that the call only works in GPM 2.15+ so it may be worth checking your version before testing any code that you write :).
Comment 9 Snark 2006-04-26 08:14:27 UTC
I intended to make the method call without checking for errors or whatever. It works or I don't care.
Comment 10 lists 2006-06-11 03:12:02 UTC
You'll want to use Inhibit() rather than InhibitInactiveSleep. See http://cvs.gnome.org/viewcvs/*checkout*/gnome-power-manager/docs/gnome-power-manager.html#pm-Compatibility -- this is due to the XDG standardisation.

I have also (with Richard's help) compiled some information on this in the Ubuntu wiki. Please see https://wiki.ubuntu.com/GnomePowerManagerInactiveSleep
Comment 11 Snark 2006-08-27 09:14:25 UTC

*** This bug has been marked as a duplicate of 353077 ***