Skip to main content

Thread: Auto Sleep/Hibernate (without a Desktop GUI)


right have searched , not found answer here goes problem.

have minimal ubuntu install without desktop boots straight xbmc htpc duties. box runs download box in background. have wake on lan enabled means can wake box remotely iphone , start downloading stuff want sleep (standby or hibernate) when not in use. in winblows simple - set hibernate after 10 mins of inactivity. how done in ubuntu without having desktop config it?

should add don't want hibernating if downloading or if streaming video other network boxes - needs clever

appreciated. getting rather impressed ubuntu!!

make user stuf (download, streaming, etc ...)
monitorize processes of user, if no processes running launch hibernate command.

yo can see how hibernate works in script: /etc/acpi/hibernate.sh

example:
#! /bin/bash
while :
do
result=$(ps -u userx | grep -v pid)
if [ "$result" == "" ]

launch hibernate command
fi
sleep 10
done


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Auto Sleep/Hibernate (without a Desktop GUI)


Ubuntu

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code