我在 armv7 Chromebook 上运行 Parabola GNU/Linux(Arch 变体)。我正在尝试让 X11 使用集成的 Mali GPU;然而,我遇到了困难。
/dev/dri
列出了两个显卡:card0
和card1
。card1
是 Mali GPU,card0
我相信这是 Rockchip Soc 中包含的更简单的后备图形设备。当我启动 X11 时,两个设备似乎都能被识别(如以下日志文件所示);然而它打印一条消息说“没有找到主总线或设备”并且它似乎回退到card0,这是更简单的设备(不是Mali):
(显示我的文件的一部分/var/log/Xorg.1.log
)
[ 2710.485] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
[ 2710.487] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 2710.488] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[ 2710.489] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 2710.490] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 11 paused 0
[ 2710.491] (II) no primary bus or device found
[ 2710.491] falling back to /sys/devices/platform/display-subsystem/drm/card0
[ 2710.491] (II) LoadModule: "glx"
[ 2710.491] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 2710.495] (II) Module glx: vendor="X.Org Foundation"
[ 2710.495] compiled for 1.20.8, module version = 1.0.0
[ 2710.495] ABI class: X.Org Server Extension, version 10.0
我尝试创建以下配置文件(/usr/share/X11/xorg.conf.d/30-driver-mali.conf
):
Section "Device"
Identifier "Card1"
Driver "panfrost"
EndSection
然而,这似乎没有帮助。从下面的日志中可以看出,X11 仍然回落到 card0,这次它无法启动,因为 panfrost 驱动程序是该卡的错误驱动程序:
[ 2522.953] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
[ 2522.955] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 2522.957] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[ 2522.958] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 2522.959] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 11 paused 0
[ 2522.959] (II) no primary bus or device found
[ 2522.960] falling back to /sys/devices/platform/display-subsystem/drm/card0
[ 2522.960] (II) LoadModule: "glx"
[ 2522.960] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 2522.964] (II) Module glx: vendor="X.Org Foundation"
[ 2522.964] compiled for 1.20.8, module version = 1.0.0
[ 2522.964] ABI class: X.Org Server Extension, version 10.0
[ 2522.964] (II) LoadModule: "panfrost"
[ 2522.964] (WW) Warning, couldn't open module panfrost
[ 2522.964] (EE) Failed to load module "panfrost" (module does not exist, 0)
那么,如何指定card1为X11的默认图形设备呢?看来我应该能够在某个地方指定这一点,但我不确定如何指定。