master
Cole Deck 4 years ago
commit 8f3a47a2cc

@ -9,7 +9,11 @@ echo 1 | sudo tee /sys/devices/system/cpu/cpu12/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu13/online echo 1 | sudo tee /sys/devices/system/cpu/cpu13/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu14/online echo 1 | sudo tee /sys/devices/system/cpu/cpu14/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu15/online echo 1 | sudo tee /sys/devices/system/cpu/cpu15/online
<<<<<<< HEAD
sudo systemctl restart auto-cpufreq sudo systemctl restart auto-cpufreq
=======
>>>>>>> 4dbc103e37ed3440d42370c1b3251d5ee6faf3e4
sleep 0.5 sleep 0.5
#sudo tlp start #sudo tlp start
asusctl profile normal asusctl profile normal

@ -14,4 +14,7 @@ xrandr --output eDP --mode 1920x1080 --rate 60
#sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._OFF" > /proc/acpi/call' #sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._OFF" > /proc/acpi/call'
#./gpuoff.sh #./gpuoff.sh
#sleep 0.5; echo "ON" | sudo tee /proc/acpi/bbswitch; sleep 1; echo "OFF" | sudo tee /proc/acpi/bbswitch #sleep 0.5; echo "ON" | sudo tee /proc/acpi/bbswitch; sleep 1; echo "OFF" | sudo tee /proc/acpi/bbswitch
<<<<<<< HEAD
sudo systemctl restart auto-cpufreq sudo systemctl restart auto-cpufreq
=======
>>>>>>> 4dbc103e37ed3440d42370c1b3251d5ee6faf3e4

@ -1,19 +1,18 @@
#!/bin/bash #!/bin/bash
function exit_script { function exit_script() {
sleep 0.5 echo 1 | sudo tee /sys/bus/pci/devices/0000:01:00.0/remove
if nvidia-smi | grep "No running processes found"; then echo 1 | sudo tee /sys/bus/pci/devices/0000:01:00.1/remove
sudo rmmod nvidia_modeset echo 1 | sudo tee /sys/bus/pci/devices/0000:01:00.2/remove
sudo rmmod nvidia echo 1 | sudo tee /sys/bus/pci/devices/0000:01:00.3/remove
sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._OFF" > /proc/acpi/call'
fi
} }
trap exit_script SIGINT trap exit_script SIGINT
trap exit_script SIGTERM trap exit_script SIGTERM
if lsmod | grep nvidia; then if lspci | grep -i nvidia; then
vblank_mode=0 primusrun "$@" vblank_mode=0 primusrun "$@"
else else
sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._ON" > /proc/acpi/call' echo 1 | sudo tee /sys/bus/pci/rescan
sudo modprobe nvidia
sleep 1 sleep 1
vblank_mode=0 primusrun "$@" vblank_mode=0 primusrun "$@"
fi fi

Loading…
Cancel
Save