fixed 480p modeline to not randomly flicker my sony crt monitor in the bedroom

This commit is contained in:
lucca
2026-06-26 21:00:23 -04:00
parent c705b8061d
commit 7f45f2da7f
5 changed files with 35 additions and 46 deletions
-44
View File
@@ -1,44 +0,0 @@
#!/bin/bash
# Quest 2 wireless mirror to PC → 480i CRT
# Right-eye focus crop + audio kept on Quest (no mute)
IP="10.0.0.30:5555"
echo "Enabling ADB over TCP..."
adb tcpip 5555
sleep 2
echo "Connecting to Quest..."
adb connect "${IP}"
echo ""
echo "ADB devices (should list your Quest):"
adb devices
echo ""
read -p "Disconnect USB now. Wake Quest fully (put it on), launch game/app, press Enter..."
echo ""
echo "Starting scrcpy... (fullscreen with F11 or similar; q/Ctrl+C to quit)"
echo ""
scrcpy -s "${IP}" \
--crop=1832:960:1832:0 \
--max-size=640 \
--max-fps=30 \
--video-bit-rate=800K \
--no-control \
--always-on-top \
--window-width=640 \
--window-height=480 \
--window-borderless
echo ""
echo "Troubleshooting:"
echo " - Still seeing both eyes/duplication? Increase x-offset: try --crop=1832:960:1850:100 or --crop=1832:960:1900:0"
echo " - Right eye looks wrong/black? Swap to left: --crop=1832:960:0:0 (or tweak offset lower like 100:100)"
echo " - Black screen overall? Add --encoder=OMX.google.h264.encoder"
echo " - No audio on Quest? (rare) — audio should play normally in headset; scrcpy captures to PC too unless --no-audio is added"
echo " - Game lag? Lower --video-bit-rate=500K or --max-size=480"
echo " - HDMI from PC → composite adapter → CRT"
Executable
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
addMode () {
xrandr --newmode $*
xrandr --addmode HDMI-A-0 "$1"
}
#addMode "1280x960_120i" 105.90 1280 1360 1496 1712 960 963 969 1031 -HSync +Vsync interlace
#addMode "1280x960_120i" 105.50 1280 1360 1496 1712 960 963 969 1031 -HSync +VSync Interlace #119hz
addMode "1280x960_120i" 105.90 1280 1360 1496 1712 960 963 969 1031 -HSync +VSync Interlace
addMode "1600x900_120i" 124.240 1600 1696 1864 2128 900 903 908 949 -HSync +VSync interlace
addMode "1600x1000_120i" 137.500 1600 1696 1864 2128 1000 1003 1008 1049 -HSync +VSync interlace
#addMode "640x480_120p" 52.50 640 680 744 848 480 483 487 518 -hsync +vsync
addMode "640x480_120p" 52.41 640 680 744 848 480 481 484 515 +HSync -Vsync
addMode "480x360_120p" 29.00 480 504 552 624 360 363 367 389 -hsync +vsync #enter the gungeon
addMode "760x284_120p" 35.50 760 792 864 968 284 287 297 308 -hsync +vsync #downwell
addMode "1920x240_120p" 92.443 1920 2202 2266 2744 240 245 250 281 -HSync -VSync
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
delMode () {
xrandr --delmode HDMI-A-0 "$1"
xrandr --rmmode "$1"
}
#delMode "1280x960_120i" 105.90 1280 1360 1496 1712 960 963 969 1031 -HSync +Vsync interlace
delMode "1280x960_120i" 105.50 1280 1360 1496 1712 960 963 969 1031 -HSync +VSync Interlace
delMode "1600x900_120i" 124.240 1600 1696 1864 2128 900 903 908 949 -HSync +VSync interlace
delMode "1600x1000_120i" 137.500 1600 1696 1864 2128 1000 1003 1008 1049 -HSync +VSync interlace
delMode "640x480_120p" 52.50 640 680 744 848 480 483 487 518 -hsync +vsync
delMode "480x360_120p" 29.00 480 504 552 624 360 363 367 389 -hsync +vsync
delMode "760x284_120p" 35.50 760 792 864 968 284 287 297 308 -hsync +vsync
delMode "1920x240_120p" 92.443 1920 2202 2266 2744 240 245 250 281 -HSync -VSync
+2
View File
@@ -1,4 +1,6 @@
#!/bin/sh
sudo wakeUltrawide.sh
xrandr --output HDMI-A-0 --mode 1280x960_120i
sleep 0.2
xrandr --output HDMI-A-0 --pos 1920x1080 --output DisplayPort-2 --pos 605x0 --output DisplayPort-1 --mode 1920x1080 --scale-from 1920x1080 --pos 0x1080 --rotate normal
kscreen-doctor output.HDMI-A-0.primary output.DisplayPort-1.priority.2 output.DisplayPort-2.priority.3
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh
xrandr --output DisplayPort-2 --off
xrandr --output DisplayPort-1 --off
sleep 2
xrandr --output DisplayPort-1 --mode 1920x1080 --scale-from $(xdpyinfo | grep -oP 'dimensions:\s+\K\d+x\d+') --same-as HDMI-A-0
#sleep 2
#xrandr --output DisplayPort-1 --mode 1920x1080 --scale-from $(xdpyinfo | grep -oP 'dimensions:\s+\K\d+x\d+') --same-as HDMI-A-0