OSDN Git Service

init.sh: check driver name instead of fb name android-x86-8.1-r6
authorChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 31 Oct 2020 06:56:49 +0000 (14:56 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 31 Oct 2020 06:56:49 +0000 (14:56 +0800)
Similar to commit ff4be9e.

init.sh

diff --git a/init.sh b/init.sh
index 1ee0c02..25f283b 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -215,11 +215,11 @@ function init_hal_hwcomposer()
 
 function init_hal_vulkan()
 {
-       case "$(cat /proc/fb | head -1)" in
-               0*i915drmfb|0*inteldrmfb)
+       case "$(readlink /sys/class/graphics/fb0/device/driver)" in
+               *i915)
                        set_property ro.hardware.vulkan android-x86
                        ;;
-               0*amdgpudrmfb)
+               *amdgpu)
                        set_property ro.hardware.vulkan radv
                        ;;
                *)