From 58d7254f6c571456d130609db81e116a4d8b4fe2 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Sat, 8 Aug 2020 04:19:23 +0000 Subject: [PATCH] Fix formatting --- POWERSAVING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/POWERSAVING.md b/POWERSAVING.md index 329ab76..3f67c87 100644 --- a/POWERSAVING.md +++ b/POWERSAVING.md @@ -16,13 +16,13 @@ If the GPU is powered off during suspend, the system will hang. This can be solv #!/bin/bash if [ "${1}" == "pre" ]; then - sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._ON" > /proc/acpi/call' + sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._ON" > /proc/acpi/call' sleep 2 # The GPU needs a bit of time to ensure that it's on before suspend elif [ "${1}" == "post" ]; then - if xrandr --listproviders | grep NVIDIA; then - echo "GPU is in use for PRIME, keeping on" + if xrandr --listproviders | grep NVIDIA; then + echo "GPU is in use for PRIME, keeping on" else - sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._OFF" > /proc/acpi/call' + sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._OFF" > /proc/acpi/call' echo "GPU powered off" fi fi