Bug 33839 - add suspend & hibernate actions
Summary: add suspend & hibernate actions
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
: 65499 77384 111390 128451 210583 235073 279070 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-18 05:48 UTC by Unknown
Modified: 2018-04-16 20:22 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
openSuse's patch (10.29 KB, patch)
2011-10-06 23:40 UTC, Daimonion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Cromwell 2001-10-18 05:38:21 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kdm
Version:           KDE 2.2.1 
Severity:          wishlist
Installed from:    Mandrake RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Among the list of shutdown options (shutdown reboot etc) there should be a "sleep" option which invokes APM.

Currently I have two options:
(a) invoke APM from an xterm myself. Trouble with this is that I'm logged in when the computer is woken up and I do have multiple users.

(b) Set my bios to go to sleep after a couple of hours of inactivity. It looks like I can do this from within KDE as well (I haven't tried this). But this sucks because it means I can't do a long FTP without the computer going to sleep and disconnecting me. 

I want to be able to log out at night and then select "sleep" from KDM! As a final cheap shot - Windows 2000 does this very nicely.

Regards.
Jon


(Submitted via bugs.kde.org)
Comment 1 Oswald Buddenhagen 2003-11-20 04:13:35 UTC
see bug #65499 for a different variation of the same request.
Comment 2 Stephan Kulow 2004-05-20 21:17:42 UTC
Replaced cromwell@ivwnet.com with null@kde.org due to bounces by reporter
Comment 3 Kevin Goeser 2004-11-12 15:33:07 UTC
it would be nice if this was configurable, for it is possible to use different power states / implementations (e.g. acpi sleep and software-suspend2 for the disk state)
Comment 4 Renchi Raju 2004-11-19 08:30:28 UTC
*** Bug 77384 has been marked as a duplicate of this bug. ***
Comment 5 Renchi Raju 2004-11-19 08:33:11 UTC
*** Bug 65499 has been marked as a duplicate of this bug. ***
Comment 6 Pierre Renié 2006-05-24 20:32:59 UTC
Suspend option should be implemented only if it's safe
http://www.suspend2.net/HOWTO-4.html
"Unmounting Filesystems (Unmount)
Suspending while network filesystems or removable devices are mounted may lead to unpredictible results."

I won't use this option if I am not sure that I won't have a filesystem corruption. If all potential dangers are very well tested, then this feature is good.
Comment 7 Stefan Borggraefe 2006-06-30 23:46:58 UTC
*** Bug 128451 has been marked as a duplicate of this bug. ***
Comment 8 Michael Jahn 2006-08-23 13:11:35 UTC
*** Bug 111390 has been marked as a duplicate of this bug. ***
Comment 9 Matthew Flaschen 2006-12-24 07:36:28 UTC
Um, this is already implemented.  See Power Control - Laptop Battery in KControl.  You have to explicitly enable it.  I haven't got hibernate yet, but suspend works fine.
Comment 10 Raúl 2006-12-25 02:47:31 UTC
Matthew, I think this bug is not ability to do hibernate or suspend, but to have a button on the Finish session/reboot/halt so users could choose this on this dialog.
Comment 11 arne anka 2007-01-03 09:27:36 UTC
well, but what about those not using a laptop but a desktop-pc? 
"Power Control" would not be available in kcontrol until installed explicitely (klaptopdaemon in debian) -- and the neccessary features would not be enabled in kernel because a desktop-pc does not utilize a battery. thus the suspend/hibernate feature would not be there to be enabled.
Comment 12 Raúl 2007-01-04 00:11:23 UTC
As I see it, these options altough are handier on a laptop are not exclusive of them, so having them on the finish session dialog shouldn't depend on klaptopdaemon.

There are two cases:
1-Suspend to ram: always present on kernel(more or less buggy), but I get it to work.
2-Hibernate to disk: could be included in the kernel and most of times it is. There's also the suspend2 option, which I personally use and like a lot. This latter option isn't normally (and unfortunately) supported on most distros except gentoo(AFAIK).

1st option could always be present, 2nd is optional if the corresponding options are enabled on kernel+hibernate script present.

These options works better IHMO with the hibernate scripts. So the hibernate script "could" be a dependence of having the suspend/hibernate options enable.
Comment 13 arne anka 2007-02-24 14:47:53 UTC
well, now that the fglrx-driver support wake-up w/o freezing (8.34.8) i gave it a try. klaptopdaemon is installed, all checkboxes (comment #9) are enabled -- but no "hibernate", "standby" whatsoever buttons visible on logout, only "end current session", "turn off", "reboot".

so -- did i miss something?
Comment 14 Shinobu Maehara 2008-01-20 07:41:49 UTC
Windows automatically sort of semi logs out before hibernation. Allow me to explain. When you hibernate, it shows a progressbar and when it finishes the computer turns itself of. When you turn it on again, a menu displays showing all logged in users and how many programs are running on behalf of each. These programs actually resume running as soon as the system is up again. Click your username, enter your password (if necessary) and your desktop is displayed.
Also, if you do not click any username for an extended period of time (I don't know exactly how long) the system assumes the computer was turned back on by accident and hibernates again. I'm not sure how useful the last feature is, but I can imagine there are situations where such behaviour is wanted.
Comment 15 Carlos Russo 2008-08-31 12:54:51 UTC
The possibility of suspending/hibernating on the kdm login greeter would be great.
No fancy tricks are required: something like a "SuspendCmd=" and "HibernateCmd=" in kdmrc would already help a lot, see comment #10 (from 1.5 years ago!)

AFAIK such options don't exist yet for kdm, but they seem to exist in other login managers (such as gdm).

If kdm reacted on closing the laptop's lid by suspending to RAM, that would be the cherry on top...
Comment 16 arne anka 2008-09-01 10:46:20 UTC
> AFAIK such options don't exist yet for kdm

kubuntu has them.
Comment 17 Carlos Russo 2008-09-01 11:13:38 UTC
>> AFAIK such options don't exist yet for kdm

> kubuntu has them.

I use Kubuntu: suspend/hibernate is available on the logout menu, but not on the kdm greeter, before you login. At the login menu, you can only login, shutdown or reboot.
Comment 18 arne anka 2008-09-01 11:27:55 UTC
uhm, confused it. my bad, but it never occured to me to shutdown/suspend/... from kdm_greeter
Comment 19 Tristan Miller 2008-09-24 16:55:11 UTC
I'm using openSUSE 11.0 and the KDM greeter screen has both suspend-to-disk and suspend-to-RAM options.  Is this standard in KDE 4.x now or is this a custom addition by openSUSE?  If the former, I suppose this bug can be marked as fixed.
Comment 20 Nicolas L. 2008-09-29 09:56:58 UTC
this is stuff added by OpenSuse, it would be nice to have them merged in trunk
Comment 21 J 2009-07-27 10:14:51 UTC
Is this feature always planned to be added ?

Below is the use case for which I need the suspend/hiberbate features from KDM greater.

The computer is shared with many persons:
- we don't want to shut it down when user A logout because it is slow when user B switch the computer on
- we don't want to suspend to RAM or hiberbate from logout menu since we don't want the user A session to be restored when only the user B wants to use the computer (consumes memory for the unused session of user A)
Comment 22 Oswald Buddenhagen 2009-10-24 16:46:36 UTC
*** Bug 210583 has been marked as a duplicate of this bug. ***
Comment 23 Oswald Buddenhagen 2010-04-22 16:27:51 UTC
*** Bug 235073 has been marked as a duplicate of this bug. ***
Comment 24 Octavian Petre 2010-12-14 11:09:03 UTC
Any updates on this? 
My humble opinion is that it should not be too difficult to add those Suspend/Hibernate buttons on KDM login window. Am I right? Is KDM still actively supported?

Thank you in advance for your answers,
Octavian
Comment 25 Daimonion 2011-06-05 19:19:41 UTC
Any update on this? Will KDE SC 4.7 bring us anything new regarding this?
Comment 26 Christoph Feck 2011-08-01 22:07:51 UTC
*** Bug 279070 has been marked as a duplicate of this bug. ***
Comment 27 Daimonion 2011-10-06 23:40:07 UTC
Created attachment 64295 [details]
openSuse's patch

This is a patch for adding Suspend/Hibernate option to KDM greeter, from openSuse. It can be applied to kde-workspace 4.7.2 but it requires liblazy and hal, so from that point of view it is kinda old and unusable. Perhaps someone could rewrite it for qdbus or whatever...
Comment 28 Ronny Standtke 2012-07-02 14:45:05 UTC
I have another use case: I have installed Debian with KDE on a Samsung Series 7 Slate tablet. I have configured the power settings so that when I press the power button, the tablet suspends. This works great as long as I am logged in. When I log out and then press the power button, the tablet just shuts down. That's not what I want here...
Either the power management settings of kdm should be configurable somewhere or it should provide buttons for suspend and hibernate.
Comment 29 Nate Graham 2018-04-16 20:22:41 UTC
KDM is unmaintained and not used in KDE Plasma 5.

SDDM is the login manager used in KDE Plasma 5. If you still have this same issue with SDDM, please file an issue on the SDDM bugtracker (after doing a search for existing issues first!): https://github.com/sddm/sddm/issues/