addapt to 1440p
This commit is contained in:
parent
34803e220d
commit
b5a4b69c76
|
@ -1,7 +1,7 @@
|
|||
; Global settings for redshift
|
||||
[redshift]
|
||||
; Set the day and night screen temperatures (Neutral is 6500K)
|
||||
temp-day=6000
|
||||
temp-day=5000
|
||||
temp-night=3000
|
||||
|
||||
; Enable/Disable a smooth transition between day and night
|
||||
|
@ -42,8 +42,8 @@ adjustment-method=randr
|
|||
; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
|
||||
; are negative numbers.
|
||||
[manual]
|
||||
lat=45.5
|
||||
lon=-73.5
|
||||
lat=45.51
|
||||
lon=-73.59
|
||||
|
||||
; Configuration of the adjustment-method
|
||||
; type 'redshift -m METHOD:help' to see the settings.
|
||||
|
|
|
@ -54,14 +54,27 @@ play-vm() {
|
|||
sudo cset proc -k -f root -t system --force
|
||||
|
||||
echo "Setup cpumask"
|
||||
sudo bash -c "echo 5 > /sys/devices/virtual/workqueue/cpumask"
|
||||
for i in /sys/devices/virtual/workqueue/*/cpumask; do
|
||||
sudo sh -c "echo 001 > $i"
|
||||
done;
|
||||
|
||||
echo "Setup interrupt affinity"
|
||||
for i in $(sed -n -e 's/ \([0-9]\+\):.*vfio.*/\1/p' /proc/interrupts); do
|
||||
sudo sh -c "echo 0,4 > /proc/irq/$i/smp_affinity_list"
|
||||
done
|
||||
|
||||
echo "Starting looking-glass"
|
||||
LD_PRELOAD=/usr/\$LIB/libgamemodeauto.so looking-glass-client -p 0 -c /tmp/win10.sock -o opengl:preventBuffer=0 -MFk $@
|
||||
|
||||
echo "Restore system"
|
||||
# irq
|
||||
for i in $(sed -n -e 's/ \([0-9]\+\):.*vfio.*/\1/p' /proc/interrupts); do
|
||||
sudo sh -c "echo ff > /proc/irq/$i/smp_affinity"
|
||||
done
|
||||
# cpumask
|
||||
sudo bash -c "echo f > /sys/devices/virtual/workqueue/cpumask"
|
||||
for i in /sys/devices/virtual/workqueue/*/cpumask; do
|
||||
sudo sh -c "echo ff > $i"
|
||||
done;
|
||||
# cpuset
|
||||
sudo cset set -d system &>/dev/null
|
||||
fi
|
||||
|
|
|
@ -7,7 +7,7 @@ export LD_PRELOAD="$LD_PRELOAD /usr/lib/libgtk3-nocsd.so.0"
|
|||
# screen layout
|
||||
if xrandr | grep 'HDMI-1 connected'; then
|
||||
xrandr \
|
||||
--output HDMI-1 --auto --pos 1080x420 --primary \
|
||||
--output HDMI-1 --auto --pos 1080x190 --primary \
|
||||
--output HDMI-2 --rotate right --auto --pos 0x0
|
||||
fi
|
||||
export PRIMARY_MONITOR="$(xrandr | grep 'primary' | grep -Eo '^[^ ]+')"
|
||||
|
|
Loading…
Reference in New Issue