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 684979 - inhibit going idle when doing a call
inhibit going idle when doing a call
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: VoIP
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks: 687430
 
 
Reported: 2012-09-27 17:08 UTC by Matthias Clasen
Modified: 2012-11-02 11:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
call-window: add 'inhibit' signal (1.81 KB, patch)
2012-09-28 08:50 UTC, Guillaume Desmottes
committed Details | Review
empathy-call: inhibit when we are in a call (1.90 KB, patch)
2012-09-28 08:50 UTC, Guillaume Desmottes
committed Details | Review

Description Matthias Clasen 2012-09-27 17:08:55 UTC
I was recently trying empathy for video calls, and noticed that the lock screen came on, and my webcam was still giving me the green light. I think there's two things wrong:

- The session should probably be inhibited from going idle while I am doing a call

- If the session gets locked, empathy should drop the webcam
Comment 1 Guillaume Desmottes 2012-09-28 08:07:48 UTC
Agreed, we should terminate the call if user manually locks his session.
Comment 2 Guillaume Desmottes 2012-09-28 08:50:54 UTC
Created attachment 225320 [details] [review]
call-window: add 'inhibit' signal
Comment 3 Guillaume Desmottes 2012-09-28 08:50:57 UTC
Created attachment 225321 [details] [review]
empathy-call: inhibit when we are in a call
Comment 4 Guillaume Desmottes 2012-09-28 08:51:43 UTC
In inhibited logout, switch, suspend and idle; does that makes sense to you?

Which API can I use to know when the session get locked or switched?
Comment 5 Matthias Clasen 2012-09-28 16:18:29 UTC
(In reply to comment #4)
> In inhibited logout, switch, suspend and idle; does that makes sense to you?

Yes, makes sense.


> Which API can I use to know when the session get locked or switched?

There is a org.gnome.ScreenSaver.ActiveChanged signal that you can probably listen for. There is also a org.gnome.ScreenSaver.Active property which tells you whether the screensaver is active (ie the session is locked).

That should work with both gnome-shell and gnome-screensaver.
Comment 6 Guillaume Desmottes 2012-11-02 11:40:16 UTC
(In reply to comment #0)
> - The session should probably be inhibited from going idle while I am doing a
> call

Let's use this bug for this.

> - If the session gets locked, empathy should drop the webcam

And bug #687430 for this.
Comment 7 Guillaume Desmottes 2012-11-02 11:42:07 UTC
Attachment 225320 [details] pushed as b42c4d7 - call-window: add 'inhibit' signal
Attachment 225321 [details] pushed as 24296ef - empathy-call: inhibit when we are in a call