Skip navigation

To suspend-to-RAM (aka sleep):
pmi action suspend

To suspend-to-disk (aka hibernate):
pmi action hibernate

If you want to lock the Gnome session first (ie. require a password on resumption), then issue the following command before pmi:

gnome-screensaver-command --lock

For example, you can use these commands to create a button (launcher) on a Gnome panel (taskbar) that instantly locks the screen and goes into sleep mode:

  1. Right-click the gnome-panel(taskbar),
  2. Select Add to panel,
  3. Custom application launcher,
  4. Fill in the fields with the following :

    Name: Sleep ,

    Command: gnome-screensaver-command --lock ; pmi action suspend


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: