Search code examples
gtk4

libEGL warning: DRI2: failed to authenticate


I am trying to get the example from the docs working but I keep on getting this error

libEGL warning: DRI2: failed to authenticate

I installed the packages

sudo apt install libpango1.0-dev 
sudo apt-get install libgtk-4-dev
sudo apt-get install libglib2.0-dev

I also updated the system but nothing seems to fix this issue


Solution

  • I encountered the same error message

    libEGL warning: DRI2: failed to authenticate
    

    while attempting to run

    libcamera-hello
    

    on a Raspberry Pi 3B+ with Bullseye. I resolved it by utilizing

    raspi-config
    

    , then navigating to Advanced Options -> GL Driver -> GL (Full KMS) OpenGL desktop driver with full KMS. After rebooting, it should work smoothly.