How to disable suspend to RAM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux