update scripts

master
Cole Deck 4 years ago
parent 813932361d
commit 4dbc103e37

@ -9,6 +9,7 @@ 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
asusctl profile normal
sleep 0.5
sudo tlp start
#sudo tlp start
asusctl profile normal

@ -9,8 +9,8 @@ echo 0 | sudo tee /sys/devices/system/cpu/cpu13/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu14/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu15/online
xrandr --output eDP --mode 1920x1080 --rate 60
sudo ryzenadj --max-gfxclk=800 --stapm-limit=5000
#sudo ryzenadj --max-gfxclk=800 --stapm-limit=5000
#sudo tlp start
#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
#sleep 0.5; echo "ON" | sudo tee /proc/acpi/bbswitch; sleep 1; echo "OFF" | sudo tee /proc/acpi/bbswitch

@ -6,9 +6,9 @@ for dev in "$@"; do
echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id
if [ -e /sys/bus/pci/devices/$dev/driver ]; then
#echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
#rmmod nvidia_drm
#rmmod nvidia_modeset
#rmmod nvidia
rmmod nvidia_drm
rmmod nvidia_modeset
rmmod nvidia
echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
echo "Unbound old driver"
fi

@ -4,7 +4,7 @@ cd /home/cole/g14gpu
#if [ `which-driver-for-gpu` == "nvidia" ]; then
sudo sh -c 'echo "ON" > /proc/acpi/bbswitch'
sleep 1
sudo binddev 0000:01:00.0
sudo binddev 0000:01:00.0 0000:01:00.1 0000:01:00.2 0000:01:00.3
#fi
vm
#sudo unbinddev 0000:01:00.0 0000:01:00.1 0000:01:00.2 0000:01:00.3

@ -4,7 +4,7 @@ cd /home/cole/g14gpu
#if [ `which-driver-for-gpu` == "nvidia" ]; then
sudo sh -c 'echo "ON" > /proc/acpi/bbswitch'
sleep 1
sudo binddev 0000:01:00.0
sudo binddev 0000:01:00.0 0000:01:00.1 0000:01:00.2 0000:01:00.3
#fi
vmrdp
#sudo unbinddev 0000:01:00.0 0000:01:00.1 0000:01:00.2 0000:01:00.3

@ -17,7 +17,7 @@ remmina &
#looking-glass-client -s -d -g egl -a -M -K 120 &
#looking-glass-client -g egl -j -m 283 -S egl:vsync &
while [ "$command" != "stop" ]; do
if jobs | grep looking | grep Running; then
if jobs | grep remmina | grep Running; then
read command
else
#looking-glass-client -d -g egl -a -K 120 -j -m 69 -S &

Loading…
Cancel
Save