Browse Source

merge

master
Cole Deck 1 year ago
parent
commit
8f3a47a2cc
  1. 4
      ac.sh
  2. 3
      battery.sh
  3. 17
      gpuapp

4
ac.sh

@ -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/cpu14/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu15/online
<<<<<<< HEAD
sudo systemctl restart auto-cpufreq
=======
>>>>>>> 4dbc103e37ed3440d42370c1b3251d5ee6faf3e4
sleep 0.5
#sudo tlp start
asusctl profile normal

3
battery.sh

@ -14,4 +14,7 @@ xrandr --output eDP --mode 1920x1080 --rate 60
#sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._OFF" > /proc/acpi/call'
#./gpuoff.sh
#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
=======
>>>>>>> 4dbc103e37ed3440d42370c1b3251d5ee6faf3e4

17
gpuapp

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

Loading…
Cancel
Save

Proudly self-hosted by Cole Deck. Fast loading powered by Turbo.