LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Need Help With a Desktop Application Shortcut (http://www.linuxquestions.org/questions/fedora-35/need-help-with-a-desktop-application-shortcut-4175464446/)

matt_thumper 06-02-2013 07:17 AM

Need Help With a Desktop Application Shortcut
 
PLEASE IGNORE - SOLVED
pm-suspend pm-hibernate


Hi,

I'm on 3.3.4-5.fc17.i686, KDE.

I've had a desktop application shortcut for lockscreen for a long time (since before there was an automatically gnerated one!)

It is "/usr/libexec/kde4/kscreenlocker --forcelock" inside a simple bash script (to which I refer in the Lockscreen application shortcut).

I'd like to create two new simple shell scripts - say, 'My_Sleep.sh' and 'My_Hibernate.sh' and refer to those in two new Desktop application shortcuts/icons.

Like "/usr/libexec/kde4/kscreenlocker --forcelock" for lockscreen, what are the hibernate and sleep commands?

tia,
Matt

netnix99 06-14-2013 01:36 PM

...just in case anyone else needs additional information:

You can use the following commands under Linux to suspend or Hibernate Linux system:

pm-suspend - During suspend most devices are shutdown, and system state is saved in RAM. The system still requires power in this state. Most modern systems require 3 to 5 seconds to enter and leave suspend, and most laptops can stay in suspend mode for 1 to 3 days before exhausting their battery.

pm-hibernate - During hibernate the system is fully powered off, and system state is saved to disk. The system does not require power, and can stay in hibernate mode indefinitely. Most modern systems require 15 to 45 seconds to enter and leave hibernate, and entering and leaving hibernate takes longer when you have more memory.

pm-suspend-hybrid - Hybrid-suspend is the process where the system does everything it needs to hibernate, but suspends instead of shutting down. This means that your computer can wake up quicker than for normal hibernation if you do not run out of power, and you can resume even if you run out of power.


All times are GMT -5. The time now is 01:37 AM.