Bugfix for broken desktop on Amlogic glx (#2983)

* Bugfix - fancy modesetting seems to be broken on Amlogic GLX series. Reverting to fbdev fixes the problem of desktop not showing up.
* Tested on Vim2
This commit is contained in:
Igor Pečovnik 2021-07-13 18:51:38 +02:00 committed by GitHub
parent 8df3de47ae
commit e919a87485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,13 +218,23 @@ family_tweaks_bsp()
mkdir -p "$destination"/etc/X11/xorg.conf.d
case "${BOARD}" in
"odroidc2" | "nanopik2-s905" | "lepotato" | "lafrite" | "khadas-vim1" )
"odroidc2" | "nanopik2-s905" | "lepotato" | "lafrite" | "khadas-vim1" | "khadas-vim2" )
cat <<-EOF > "$destination"/etc/X11/xorg.conf.d/02-driver.conf
# set fbdev as default driver.
Section "Device"
Identifier "DRM Graphics"
Section "OutputClass"
Identifier "Amlogic"
MatchDriver "meson"
Driver "modesetting"
AccelMethod "none"
Option "PrimaryGPU" "true"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Meson"
Monitor "foo"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080" "1440x900" "1280x720" "1280x1024" "1280x960" "1024x768" "800x600" "640x480" "720x400"
EndSubSection
EndSection
EOF
;;