LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 06-02-2013, 06:17 AM   #1
matt_thumper
Member
 
Registered: Feb 2010
Posts: 37

Rep: Reputation: 15
Question 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

Last edited by matt_thumper; 06-02-2013 at 06:29 AM.
 
Old 06-14-2013, 12:36 PM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, fedora, CentOS, ubuntu
Posts: 197

Rep: Reputation: 49
...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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to put an icon/shortcut on the desktop for a custom application? firefiber Linux - Newbie 5 09-17-2011 03:40 AM
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 11:51 AM
Shortcut-application wanted daniel-kun Linux - Software 2 06-02-2008 04:26 PM
application shortcut trumpetdork Linux - Software 5 04-19-2005 05:58 PM


All times are GMT -5. The time now is 12:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration