Skip to content

Instantly share code, notes, and snippets.

@igal1c0de4n
igal1c0de4n / autosuspend.sh
Last active August 29, 2015 14:06
Are you running Linux with Gnome-Shell, installed packages and auto-suspend is broken? You can use this bash script to force suspend when system is idle!
#!/bin/bash
log()
{
echo "$(date): $@" >> /tmp/autosuspend.log
}
load_threshold()
{
DOTCONFIG="$HOME/.autosuspend"