mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Enabling experimental GL driver modifies library path.
This commit is contained in:
parent
efdfcc1e66
commit
0de0f6307c
@ -1092,7 +1092,7 @@ do_gldriver() {
|
||||
if [ $RET -eq $CURRENT ]; then
|
||||
ASK_TO_REBOOT=1
|
||||
fi
|
||||
if [ $RET -eq 0 ]; then # disable driver
|
||||
if [ $RET -eq 0 ]; then # enable driver
|
||||
sed $CONFIG -i -e "s/^#dtoverlay=vc4-kms-v3d/dtoverlay=vc4-kms-v3d/"
|
||||
if ! grep -q -E "^dtoverlay=vc4-kms-v3d" $CONFIG; then
|
||||
printf "dtoverlay=vc4-kms-v3d\n" >> $CONFIG
|
||||
@ -1107,11 +1107,15 @@ Exec=xcompmgr -a
|
||||
EOF
|
||||
mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
|
||||
sed $CONFIG -i -e "s/^gpu_mem/#gpu_mem/"
|
||||
mv /etc/ld.so.conf.d/00-vmcs.conf /etc/ld.so.conf.d/z00-vmcs.conf
|
||||
ldconfig
|
||||
STATUS=enabled
|
||||
elif [ $RET -eq 1 ]; then #enable driver
|
||||
elif [ $RET -eq 1 ]; then # disable driver
|
||||
sed $CONFIG -i -e "s/^dtoverlay=vc4-kms-v3d/#dtoverlay=vc4-kms-v3d/"
|
||||
rm /etc/xdg/autostart/xcompmgr.desktop
|
||||
mv /usr/share/X11/xorg.conf.d/99-fbturbo.~ /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||
mv /etc/ld.so.conf.d/z00-vmcs.conf /etc/ld.so.conf.d/00-vmcs.conf
|
||||
ldconfig
|
||||
STATUS=disabled
|
||||
else
|
||||
return $RET
|
||||
|
Loading…
Reference in New Issue
Block a user