applied more kernel patches, changed super resolution modes to normal modes

This commit is contained in:
lucca
2026-09-21 06:24:13 -04:00
parent 30c406f8c4
commit bbe7f72f36
6 changed files with 47 additions and 16 deletions
+10 -13
View File
@@ -144,26 +144,23 @@ testvidmode2 () {
xrandr --addmode DisplayPort-0 $1 xrandr --addmode DisplayPort-0 $1
xrandr --output DisplayPort-0 --mode $1 xrandr --output DisplayPort-0 --mode $1
} }
crtTVSet480i () {
testvidmode2 "1280x480_60i" 26.108 1280 1364 1487 1664 480 483 489 523 interlace -hsync -vsync
}
crtTV () { crtTV () {
crtTVSet480i testvidmode2 "640x480_60i" 13.038 640 666 727 831 480 483 489 523 interlace -hsync -vsync
xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 640x480 --below HDMI-A-0 xrandr --output DisplayPort-0 --transform none --below HDMI-A-0
} }
crtTVscale () { crtTVscale () {
crtTVSet480i testvidmode2 "1280x480_60i" 26.108 1280 1364 1487 1664 480 483 489 523 interlace -hsync -vsync
xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 1280x960 --same-as HDMI-A-0 xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 1280x960 --same-as HDMI-A-0
} }
crtTVSet240p () {
testvidmode2 "1280x240_60" 26.108 1280 1396 1519 1664 240 241 244 262 -hsync -vsync
}
crtTV240 () { crtTV240 () {
crtTVSet240p # testvidmode2 "320x240_60" 6.515 320 333 364 416 240 241 244 261 -hsync -vsync
xrandr --output DisplayPort-0 --mode 1280x240_60 --scale-from 320x240 --below HDMI-A-0 testvidmode2 "320x240_60" 6.515 320 341 372 416 240 241 244 261 -hsync -vsync
xrandr --output DisplayPort-0 --transform none --below HDMI-A-0
} }
crtTV240scale () { crtTV240scale () {
crtTVSet240p testvidmode2 "1280x240_60" 26.108 1280 1364 1487 1664 240 241 244 262 -hsync -vsync
xrandr --output DisplayPort-0 --mode 1280x240_60 --scale-from 1280x960 --same-as HDMI-A-0 xrandr --output DisplayPort-0 --mode 1280x240_60 --scale-from 1280x960 --same-as HDMI-A-0
} }
crtTVOff () {
xrandr --output DisplayPort-0 --off
}
+1
View File
@@ -0,0 +1 @@
normal
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Toggle between crtTV240 and crtTV240ra each time this script is run
source ~/.profile 2>/dev/null || true
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
STATE_FILE="$SCRIPT_DIR/.crt_tv_toggle"
if [[ -f "$STATE_FILE" && $(cat "$STATE_FILE") == "ra" ]]; then
crtTV240
echo "normal" > "$STATE_FILE"
else
crtTV240ra
echo "ra" > "$STATE_FILE"
fi
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Toggle between crtTV240 and crtTV240ra each time this script is run
source ~/.profile 2>/dev/null || true
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
STATE_FILE="$SCRIPT_DIR/.crt_tv_toggle"
if [[ -f "$STATE_FILE" && $(cat "$STATE_FILE") == "ra" ]]; then
crtTV
echo "normal" > "$STATE_FILE"
else
crtTVscale
echo "ra" > "$STATE_FILE"
fi
+2 -1
View File
@@ -4,7 +4,8 @@ xdotool windowactivate $(xdotool getmouselocation|sed "s/.*://")
} }
case $1 in case $1 in
1) 1)
xdotool mousemove 800 400 #xdotool mousemove 800 400 # top left of ultrawide display
xdotool mousemove 2080 2160 #15khz crt
focusWindowUnderMouse focusWindowUnderMouse
;; ;;
2) 2)
+4 -2
View File
@@ -11,7 +11,8 @@ wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz
moveWindowToMonitor () { moveWindowToMonitor () {
if [ "$(xprop -id $(xdotool getmouselocation --shell | awk -F= '/WINDOW/{print $2}') WM_CLASS | awk -F\" '{print $4}')" != "plasmashell" ]; then if [ "$(xprop -id $(xdotool getmouselocation --shell | awk -F= '/WINDOW/{print $2}') WM_CLASS | awk -F\" '{print $4}')" != "plasmashell" ]; then
unMaximizeWindow unMaximizeWindow
xdotool getactivewindow windowsize 800 600 #xdotool getactivewindow windowsize 800 600
xdotool getactivewindow windowsize 200 100
xdotool mousemove $1 $2 xdotool mousemove $1 $2
xdotool getactivewindow windowmove $1 $2 xdotool getactivewindow windowmove $1 $2
maximizeWindow maximizeWindow
@@ -20,7 +21,8 @@ fi
case $1 in case $1 in
1) 1)
moveWindowToMonitor 800 400 #moveWindowToMonitor 800 400 # top left of ultrawide display
moveWindowToMonitor 2080 2160 #15khz crt
;; ;;
2) 2)
moveWindowToMonitor 2650 500 moveWindowToMonitor 2650 500