GNOME Bugzilla – Bug 559572
[mediakeys] should use the Shutdown dbus-interface provided by gnome-session when handing sleep action
Last modified: 2008-11-07 17:16:01 UTC
Currently, keybinding plugin use "apm" and "xset dpms force off" to handle sleep action. It's not portable. And gnome-session provides a Shutdown interface which will show a dialog with "Shutdown", "Suspend", "Restart" button. The plugin should use this interface to handle sleep action.
Sorry, a mistake. The plugin is media-keys plugin not keybinging plugin.
Created attachment 122082 [details] [review] patch to fix the problem Call Shutdown interface provided by gnome-session in do_sleep_action.
Thanks for the patch. However, calling Shutdown on sleep/suspend is wrong. The user doesn't want to shut down/log out, but suspend his system. I don't know if gnome-session provides a means to do that directly, but moving straight to "System will shut down in 60 seconds" is bad. *** This bug has been marked as a duplicate of 170175 ***
Hi Jens, Moving to "System will shutdown in 60 seconds" is bad. But there have to be a way for users to confirm they really want to suspend the system. What do you think if we can remove the "System will shutdown in 60 seconds" feature from gnome-session. Or even more, just showing "Suspend" button in the dialog.
I don't think it can be removed. We'd still need it for shutdown.