저는 CentOS 8.2.2004와 AMD Radeon RX570 및 Intel 온보드 그래픽이 포함된 듀얼 모니터를 사용하고 있습니다. (AMD 그래픽 드라이버는 입니다 amdgpu-pro-20.20-1089974-rhel-8.2
.)
몇 주 전에는 내 컴퓨터가 Xserver에서 실행되고 있었지만 최근 커널 업데이트 이후에는 Wayland에서 실행되고 있습니다. 그 이후에는 H/W 가속을 사용하지 않은 것처럼 표시 속도가 매우 느려집니다.
확인하기 위해 를 실행했지만 LIBGL_DEBUG=verbose glxinfo
오류 메시지가 표시되었습니다.
name of display: :0
libGL: DRI2 mode is not allowed under Wayland. Running in DRI3 mode
libGL: Error! DRI3 initializes failed
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: dlopen /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/swrast_dri.so
libGL: dlopen /usr/X11R6/lib64/modules/dri/swrast_dri.so failed (/usr/X11R6/lib64/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/swrast_dri.so
libGL: dlopen /usr/X11R6/lib/modules/dri/swrast_dri.so failed (/usr/X11R6/lib/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: wrong ELF class: ELFCLASS32)
libGL: OpenDriver: trying /usr/X11R6/lib32/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib32/modules/dri/swrast_dri.so
libGL: dlopen /usr/X11R6/lib32/modules/dri/swrast_dri.so failed (/usr/X11R6/lib32/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib32/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib32/dri/swrast_dri.so
libGL: dlopen /usr/lib32/dri/swrast_dri.so failed (/usr/lib32/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 43
Current serial number in output stream: 42
저는 Linux 디스플레이 시스템을 처음 사용하기 때문에 이 문제를 해결하는 방법을 모르겠습니다. 누구든지 나를 도와줄 수 있나요?
추신: Xserver를 사용하도록 로그인을 변경할 수 있다는 것을 알고 있습니다. 하지만 이러한 문제로 인해 가능하다면 Wayland를 이용하고 싶은데,Intel 온보드 그래픽 + AMD Radeon(PRIME Sync 0)에서 화면 잘림 현상.
참고로 LIBGL_DEBUG=verbose glxinfo
Xserver 모드에서 실행하면 다음 출력이 나타납니다.
name of display: :0
libGL: Running in DRI3 mode
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/amdgpu_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so
libGL: dlopen /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/tls/amdgpu_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/amdgpu_dri.so
libGL: dlopen /usr/X11R6/lib64/modules/dri/amdgpu_dri.so failed (/usr/X11R6/lib64/modules/dri/amdgpu_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib64/dri/tls/amdgpu_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/amdgpu_dri.so
/opt/amdgpu/share/libdrm/amdgpu.ids version: 1.0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: AMD
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
...