Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

linux suspend and hibernation made simple

groupadd --system power
usermod -a -G power michael
echo "#\!/bin/sh
chgrp power /sys/power/state
chmod g+w /sys/power/state" \
>/etc/local.d/00sys-power.start
chmod +x /etc/local.d/00sys-power.start

emerge -C sys-power/pm-utils

diff --git a/.xbindkeysrc b/.xbindkeysrc
index e1c32fe..f1c08af 100644
--- a/.xbindkeysrc
+++ b/.xbindkeysrc
@@ -13,9 +13,9 @@
   Control+Alt + l
 "xscreensaver-command --lock"
   XF86ScreenSaver
-"xscreensaver-command --lock; sudo /usr/sbin/pm-suspend"
+"xscreensaver-command --lock; echo mem >/sys/power/state"
   XF86Sleep
-"xscreensaver-command --lock; sudo /usr/sbin/pm-hibernate"
+"xscreensaver-command --lock; echo disk >/sys/power/state"
   XF86Suspend
 "xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1"
   XF86Display
Tags: own linux

Don't be the product, buy the product!

Schweinderl