我试图让 Chromium 在嵌入式 ARM 板上(在 Wayland 下)上通过硬件加速运行,但是当我运行它时,我得到
libEGL warning: failed to open /dev/dri/card0: Permission denied
确实,我无法/dev/dri/card0
以用户身份访问。我添加了自己video
并重新启动,但没有帮助。我应该有权限。是否有类似 ACL、SELinux 之类的东西可能会阻止我?
$ sudo ls -hal /dev/dri
total 0
drwxrw-rw- 3 root root 120 Dec 16 11:55 .
drwxr-xr-x 16 root root 3.7K Dec 16 11:55 ..
drwxrw-rw- 2 root root 100 Dec 16 11:55 by-path
crwxrw-rw-+ 1 root video 226, 0 Sep 7 18:34 card0
crwxrw-rw-+ 1 root video 226, 1 Dec 16 11:55 card1
crwxrw-rw-+ 1 root render 226, 128 Dec 16 11:55 renderD128
$ sudo getfacl /dev/dri/card0
getfacl: Removing leading '/' from absolute path names
# file: dev/dri/card0
# owner: root
# group: video
user::rwx
user:jdm:rw-
group::rw-
mask::rw-
other::rw-