mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-22 11:20:07 +09:00
Allow use of compton with fkms GL driver; look for ARM in model name to determine platform.
This commit is contained in:
parent
e757a50126
commit
344417ec97
11
raspi-config
11
raspi-config
@ -9,7 +9,7 @@ BLACKLIST=/etc/modprobe.d/raspi-blacklist.conf
|
|||||||
CONFIG=/boot/config.txt
|
CONFIG=/boot/config.txt
|
||||||
|
|
||||||
is_pi () {
|
is_pi () {
|
||||||
grep -q BCM27 /proc/cpuinfo
|
grep -q "^model name\s*:\s*ARMv" /proc/cpuinfo
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1227,12 +1227,6 @@ do_gldriver() {
|
|||||||
mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
|
mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
|
||||||
fi
|
fi
|
||||||
sed $CONFIG -i -e "s/^gpu_mem/#gpu_mem/"
|
sed $CONFIG -i -e "s/^gpu_mem/#gpu_mem/"
|
||||||
else
|
|
||||||
if [ -e /usr/share/X11/xorg.conf.d/99-fbturbo.~ ] ; then
|
|
||||||
mv /usr/share/X11/xorg.conf.d/99-fbturbo.~ /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if echo "$GLOPT" | grep -q -E "1" ; then
|
|
||||||
if [ ! -e /etc/xdg/autostart/xcompmgr.desktop ] ; then
|
if [ ! -e /etc/xdg/autostart/xcompmgr.desktop ] ; then
|
||||||
cat << EOF > /etc/xdg/autostart/xcompmgr.desktop
|
cat << EOF > /etc/xdg/autostart/xcompmgr.desktop
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
@ -1247,6 +1241,9 @@ EOF
|
|||||||
sudo apt-get -y install compton
|
sudo apt-get -y install compton
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
if [ -e /usr/share/X11/xorg.conf.d/99-fbturbo.~ ] ; then
|
||||||
|
mv /usr/share/X11/xorg.conf.d/99-fbturbo.~ /usr/share/X11/xorg.conf.d/99-fbturbo.conf
|
||||||
|
fi
|
||||||
if [ -e /etc/xdg/autostart/xcompmgr.desktop ] ; then
|
if [ -e /etc/xdg/autostart/xcompmgr.desktop ] ; then
|
||||||
rm /etc/xdg/autostart/xcompmgr.desktop
|
rm /etc/xdg/autostart/xcompmgr.desktop
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user