Hi,
Here is a script that should work on all our computer (instead of looking for CPU numbers...) :
#!/bin/sh
# Disable hyper-threading processor cores on suspend and hibernate, re-enable them
# on resume. Presumably helps for flash resume problem.
# This file goes into /etc/pm/sleep.d/
case $1 in
hibernate|suspend)
for i in /sys/devices/system/cpu/cpu*/online; do echo "0">$i; done
;;
thaw|resume)
for i in /sys/devices/system/cpu/cpu*/online; do echo "1">$i; done
;;
esac
I think it will be easier that checking cpus numbers...
For me, it's not an ubuntu bug (I have it on debian stable too) and not a compiz one too (as disabling cpus is a workaround...).
Hope this "new" scripts helps few of us
Regards,
Bookmarks