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 619049 - [Suggestion] Running Program Prevent from Suspend
[Suggestion] Running Program Prevent from Suspend
Status: RESOLVED NOTABUG
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-05-19 01:51 UTC by zxvc
Modified: 2010-05-19 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description zxvc 2010-05-19 01:51:24 UTC
Could gnome-power-manager support a function, which
can temporarily disable "suspend to RAM" as a program is running?

I know Windows API supports this function:
if a program calls the WinAPI function SetThreadExecutionState,
the "idle timer" will be disabled and there is no timeout for entering sleep.


This function meaningfully saves the power at suitable time.
Without this function, we might have to fully disable the suspend function,
because the suspend function might suspend our running programs (for example, some simulation or computing programs).

Thanks.
Comment 1 Richard Hughes 2010-05-19 10:13:13 UTC
That's exactly what the Inhibit() API allows you to do. See http://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Inhibit
Comment 2 zxvc 2010-05-19 13:56:17 UTC
(In reply to comment #1)
> That's exactly what the Inhibit() API allows you to do. See
> http://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Inhibit

Thank you for your information.

Unfortunately, it seems to being that my Ubuntu 9.10 (GNOME 2.28) and CentOS 5.5 (GNOME 2.16) don't support org.gnome.SessionManager. However, my Ubuntu 9.04 (GNOME 2.26.1) supports.