Resolve / Fix "PM: Cannot find swap device, try
swapon -a" GNOME issue on Debian Squeeze/Sid
Few days ago I've blogged on
How to workaround (fix) hibernate “PM: Cannot find swap device, try
swapon -a” GNOME issues on Debian testing/unstable Linux
In that article I've suggested one possible fix to the hibernation
issues I experienced with the error;
PM: Cannot find swap device, try swapon -a
Nevertheless just recently I have figure out another better
solution to the hibernation issues I've experienced
I've noticed that for some reason the debian package
linux-patch-tuxonice was missing in my current set deb
package repository.
deb http://ftp.bg.debian.org/debian/
Changing this repository to
deb
http://ftp.nl.debian.org/debian/ and installing the
linux-patch-tuxonice package actually solved the issue
properly without any need for exchange of the script
/usr/sbin/pm-hibernate with
/usr/sbin/hibernate as
I've earlier suggested in my article on how to fix the
PM:
Cannot find swap device try swapon -a
So the solution to the hibernation issue came out as easily as to
installing the
linux-patch-tuxonice deb package.
Thus the issues was properly and fully resolved by:
debian:~# apt-get install
linux-patch-tuxonice
Now hibernation should start working once agian.
One more issue with the solition I've earlier pointed out with
exchanging the
/usr/sbin/pm-hibernate with the
/usr/sbin/hibernate script was that using the hibernate in
favour of pm-hibernate cause my system to crash sometimes after a
system restore from hibernate.