Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Comment from dHeinemann:
- # This script was borrowed from http://ubuntuforums.org/showpost.php?p=10868975&postcount=18
- # Fixes HD Flash and HTML5 video becoming extremely choppy after a suspend/hibernate.
- # Despite the comment below about Nvidia, I experienced this problem on an ATI card.
- # Has side-effects related to virtualisation (see above post for details).
- # Original comment:
- # Disable hyper-threading processor cores on suspend and hibernate, re-enable them
- # on resume. Presumably helps for buggy nvidia behaviour.
- # This file goes into /etc/pm/sleep.d/
- case $1 in
- hibernate|suspend)
- echo 0 > /sys/devices/system/cpu/cpu1/online
- echo 0 > /sys/devices/system/cpu/cpu3/online
- ;;
- thaw|resume)
- echo 1 > /sys/devices/system/cpu/cpu1/online
- echo 1 > /sys/devices/system/cpu/cpu3/online
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement