Hibernate and Suspend actions should appear in Gshutdown

Bug #385889 reported by Mantas Kriaučiūnas
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gshutdown (Baltix)
New
Undecided
Unassigned
gshutdown (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gshutdown

There should be a possibility in Gshutdown to choose not just to Turn off, Restart or End current session, but also to Hibernate or Suspend computer at the chosen time.

Tags: patch
Revision history for this message
Thomas Novin (thomasn80) wrote :

This is a good idea. You can do this yourself by going into preferences and create a custom command for some of the events, for example end current session.

You there enter the command

gnome-power-cmd suspend

This will suspend the computer instead of ending the session..

Revision history for this message
idokibovito (idokibovito) wrote :

That won't work since gnome-power-cmd does not exist in Lucid.

Moreover the action "shutdown" does only log the user out from gnome, won't actually shut down (at least in Lucid).
-> the autodetected options are not complete and not working either

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :
Download full text (3.7 KiB)

Hibernate action is included in GShutdown since May 2008, see http://svn.tuxfamily.org/viewvc.cgi/gshutdown_gshutdown/ChangeLog?view=markup , but Ubuntu 12.04 and older includes old and buggy GShutdown 0.2 release :(

I will build Ubuntu package of latest GShutdown code and include them into official Baltix GNU/Linux repository (ppa:baltix-members/ppa ), see https://launchpad.net/~baltix-members/+archive

Also there is working GShutdown fork - https://launchpad.net/gpoweroff , which works fine in latest Ubuntu versions (9.10 or newer)

Bellow are listed main GShutdown improvements since version 0.2, which is currently in Ubuntu 12.04 and older:

2009-08 Maxime Cheramy
 * Action names are forced for non-custum types.
 * The button to manage the profiles is removed for now.
 * Edit an action is now possible.
 * Add Up/Down for the action tree view items.
 * Update glade file to add scrollbars to the action tree view.
 * Add edit and delete functions for the actions list
 * Rewrite several ugly functions...

2009-04 Maxime Cheramy
 * Patch for Notify-OSD. Thanks to Francesco Marella.

2008-10 Maxime Cheramy
 * Update glade file
 * Can add ordinary actions (only adding)
 * Check if the custom command is available

2008-08 Maxime Cheramy
 * Add the ability to add custom actions (only adding, neither editing nor deleting yet)
 * Remove useless variables in the config file (don't store the number of notifications and actions)
 * Save and load actions from config file
 * Deep changes to deal with custom actions (warning : there are maybe some regressions)
 * Actions are now stored in values.
 * Fix bug with system tray icon (change when an action is scheduled)
 * Clear code using glade for the callbacks (not finished)
 * Fix bug with tooltips (countdown is now displayed again) due to change to GtkStatusIcon
 * Begin custom actions implementation (glade)

2008-08 Achraf cherti
 * Galician translation added (Thanks to Lois Lamas)

2008-05 Achraf cherti
 * Serbian translation updated (Thanks to Miloš Popović)
 * Bosnian translation added (Thanks to Milos Mandaric)

2008-04 Maxime Cheramy
 * Logout action now works with kde4
 * Lock action now works with kde4
 * now gshutdown uses GtkStatusIcon instead of eggtrayicon
 * Croatian translation added (thanks to Danijel Snajder !)
 * all dates use GDate now. (before it was 3 guint)
 * new calendar (GtkDateEntry from homebank)
 * add dbus support
 * add hibernate and lock actions

2008-04 Achraf cherti
 * some warnings removed by adding -D__USE_POSTFIX to gcc (implicit declaration of kill and snprintf)
 * adding arabic to configure.ac
 * new tray icons added (thanks to Hayri Bakic !)
 * time/date is now hidden when it's useless
 * the calendar is now in a popup, not in the main window
 * the profiles are now in the right of the interface, with a listbox
 * a little button with an image is added in the right of "start" button to show/hide the profiles
 * adding the new icon (thanks to Hayri Bakic)
 * "profile support" added in the interface, by Hayri Bakic (thanks)
 * in the command line check, if sudo is the command, the command after sudo is the command tested
 * Arabic translation added (thanks to Fa...

Read more...

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Last active GShutdown developer told me "gshutdown is no longer developed nor maintained", see text bellow.
So, I've chosen to improve Gpoweroff, which is an alternative to GShutdown written in Python/Gtk, see
https://launchpad.net/gpoweroff

I've improved Gpoweroff - added Hibernate and Suspend actions, changed dbus commands to modern universal org.freedesktop.ConsoleKit instead of outdated (and GNOME-depending) org.gnome.SessionManager
Patched Gpoweroff works fine with latest Ubuntu/Kubuntu 11.04 and 11.10 releases
I'm attaching a patch with these improvements to this bugreport, also main GShutdown developer Philip Peitsch promised me to add my improvements to official Gpoweroff sources and release new Ubuntu packages in ppa:gpoweroff/stable repository, see bug #973577

On Tue, Apr 3, 2012, Maxime Chéramy <email address hidden> wrote:
> Unfortunately, gshutdown is no longer developed nor maintained for a long
> time now. There are several reasons for that:
> - The developers had other projects and not enough time to do everything.
> - It was very discouraging to adapt the source code after each major
> release : the protocols changed, the commands changed, etc. That explains
> the "it stopped to work". At the time, there was a lack of a real standard
> common to any distribution and desktop manager. The solution was to try 3
> different ways of doing the same action! I don't know the current situation.
> - The source code was in C/Gtk2+ which is not very sexy to develop a
> graphical application. I would definitely use Python/Gtk now.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch which adds Hibernate and Suspend actions, use dbus org.freedesktop.ConsoleKit + other improvements to Gpoweroff" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.