1
0
Fork 0

set cpumask in gaming mode

This commit is contained in:
Massaki Archambault 2018-05-14 15:13:12 -04:00
parent 829dfaced3
commit 45161059d2
1 changed files with 8 additions and 1 deletions

View File

@ -55,11 +55,18 @@ game() {
sudo cset proc -m -f root -t system sudo cset proc -m -f root -t system
sudo cset proc -k -f root -t system --force sudo cset proc -k -f root -t system --force
echo "Setup cpumask"
sudo bash -c "echo 5 > /sys/devices/virtual/workqueue/cpumask"
echo "Starting looking-glass" echo "Starting looking-glass"
LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so looking-glass-client -o opengl:preventBuffer=0 -MF LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so looking-glass-client -o opengl:preventBuffer=0 -MFk
echo "Restore system" echo "Restore system"
# cpumask
sudo bash -c "echo f > /sys/devices/virtual/workqueue/cpumask"
# cpuset
sudo cset set -d system &>/dev/null sudo cset set -d system &>/dev/null
# services
compton &>/dev/null & disown compton &>/dev/null & disown
systemctl --user start redshift systemctl --user start redshift
sudo systemctl start cronie sudo systemctl start cronie