Scheduled maintenance — back soon.

~/blog/suspend-your-laptop-with-1-line-of-code

Suspend laptop Linux with 1 line of code

by eugen

22 Feb 2012

cat:linuxshellxfce

tags:#laptop#suspend

I have Gentoo with Xfce desktop environment. It has a xfce4-session-logout command which displays a logout-suspend-shutdown confirmation screen where you can choose what you want to do. Sometimes I only need to suspend to RAM the session and I want to do it quick, from keyboard, not using the mouse in two-three steps.

Suspend laptop Linux

For those which feel the same I have a tip to share:

echo -n mem > /sys/power/state

I defined a keyboard shortcut that call that line of code, so that way I became able to suspend my laptop from keyboard, with just 1 line of code.

Comments

No comments yet

Be the first to leave a comment.

Leave a comment

Name and email required · moderated before publish · plain text only