How to disable suspend to RAM

Serguei Miridonov mirsev at cicese.mx
Thu Feb 19 17:04:06 UTC 2009


This is a durty hack to disable suspend to RAM on a system which 
reports this capability but in fact can not do it properly...

Since this option (disabling certain actions from power manager) is 
not available, I wrote a small file 'local_check' and put it into 
/etc/pm/config.d directory:

grep() {
	echo "$@" | /bin/grep -q 'mem /sys/power/state' &&
	return 1 					|| 
	/bin/grep "$@"
}

Now /usr/bin/pm-is-supported --suspend returns 1 and
/usr/bin/pm-is-supported --hibernate returns 0

Enjoy!




More information about the fedora-list mailing list