From 87fd18f4a03645940e888fe5ca0a9e80c153237a Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sun, 23 Aug 2015 22:29:03 -0400 Subject: [PATCH] Do not save video output during suspend This is done automatically by KMS in newer kernels. --- stage2/misc/acpi/suspend2ram.sh | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/stage2/misc/acpi/suspend2ram.sh b/stage2/misc/acpi/suspend2ram.sh index 6fdbd96..7da0ac4 100755 --- a/stage2/misc/acpi/suspend2ram.sh +++ b/stage2/misc/acpi/suspend2ram.sh @@ -33,29 +33,11 @@ if [ "x${XSCREENSAVER_ACTIVE}" != "x" ]; then sleep 1 fi -# discover video card's ID -ID=`lspci | grep VGA | awk '{ print $1 }' | sed -e 's@0000:@@' -e 's@:@/@'` - -# securely create a temporary file -TMP_FILE=`mktemp /var/tmp/video_state.XXXXXX` -trap 'rm -f $TMP_FILE' 0 1 15 - # write all unwritten data (just in case) sync -# dump current data from the video card to the -# temporary file -cat /proc/bus/pci/$ID > $TMP_FILE - echo "Entering suspend mode" echo -n mem > /sys/power/state echo "Resuming" - -# restore video card data from the temporary file -# on resume -cat $TMP_FILE > /proc/bus/pci/$ID - -# remove temporary file -rm -f $TMP_FILE -- 2.20.1