NVIDIA/Intel双GPU(prime-select intel)下OpenGL renderer显示N/A求助
Let's walk through the fixes to get your OpenGL renderer working properly with the modesetting driver (the correct choice for your Kabylake Intel UHD 620):
Verify Core Dependencies Are Installed
First, make sure you have all the required Mesa packages for hardware-accelerated OpenGL:sudo apt update && sudo apt install mesa-utils libgl1-mesa-glx libgl1-mesa-driThe
mesa-utilspackage gives you tools likeglxinfoto check your OpenGL status later.Configure Modesetting with Glamor Acceleration
Kabylake GPUs rely on the glamor acceleration backend for proper OpenGL support with modesetting. Create a dedicated Xorg config file to enforce this:- Create the config directory if it doesn't exist:
sudo mkdir -p /etc/X11/xorg.conf.d - Create the config file
20-intel.conf:sudo nano /etc/X11/xorg.conf.d/20-intel.conf - Paste the following content:
Section "Device" Identifier "Intel Graphics" Driver "modesetting" Option "AccelMethod" "glamor" Option "DRI" "3" # Enables DRI3, which improves performance EndSection - Save and exit (Ctrl+O, Enter, Ctrl+X in nano).
- Create the config directory if it doesn't exist:
Confirm Prime Select is Set to Intel
Double-check that you're actually using the Intel GPU:prime-select queryIf it doesn't return
intel, switch with:sudo prime-select intelRestart Your System
For the changes to take effect, reboot your machine:sudo rebootVerify OpenGL is Working
After rebooting, run this command to check your OpenGL renderer:glxinfo | grep "OpenGL renderer"You should see output like:
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
Key Notes to Remember
- Do NOT install
xserver-xorg-video-intel-hwe: As you noted, modesetting is the official recommended driver for Kabylake and newer Intel GPUs. The legacyinteldriver causes more issues than it solves here. - If you're on an older Ubuntu release (pre-20.04), consider upgrading your Mesa packages or the OS itself—newer Mesa versions have better support for Kabylake hardware.
内容的提问来源于stack exchange,提问作者siebenheaven

