Lenovo Legion 5双GPU功能验证及Ubuntu下运行DOOM游戏技术咨询
Hey McCall, great question—let's break this down step by step, since it sounds like you're jumping back into Ubuntu after a long break (welcome back, by the way! The ecosystem has come a long way since 2010).
First off: yes, your setup is exactly what's called hybrid graphics. This is super common in modern laptops—your Ryzen 5000's integrated GPU handles light tasks (like browsing, document editing) to save battery, while the NVIDIA RTX kicks in for heavy workloads like gaming to deliver maximum performance.
1. How to check if both GPUs are working in Windows
- Open Task Manager (press
Ctrl+Shift+Esc), switch to the Performance tab. You'll see two separate GPU entries: one labeled something like "AMD Radeon Graphics" (your Ryzen integrated GPU) and another like "NVIDIA GeForce RTX [your model]". If both show usage percentages, temperature, and memory stats when you use your laptop, they're active and working. - You can also right-click your desktop and open NVIDIA Control Panel. Head to 3D Settings > Manage 3D Settings—here you can confirm that apps like DOOM are set to use the NVIDIA GPU (it should be the default for games, but you can manually adjust if needed).
2. Verifying both GPUs in Ubuntu
Modern Ubuntu versions (22.04 LTS and newer) have way better hybrid graphics support than back in 2010, so you won't need to mess with Xorg config files right off the bat. Here's how to check:
- Open a terminal (press
Ctrl+Alt+T) and run this command to list all recognized GPUs:
You should see two entries: one for your AMD integrated GPU (look for "AMD Renoir/Raven" or similar) and one for your NVIDIA RTX. This means Ubuntu has detected both cards.lspci | grep -E "VGA|3D controller" - To confirm the NVIDIA GPU is functional, first make sure you've installed the official NVIDIA proprietary drivers (not the open-source
nouveaudriver). You can do this via Software & Updates > Additional Drivers—select the recommended NVIDIA driver version, install it, and restart your laptop. - After restarting, run this command in terminal:
If you see output showing your RTX model, driver version, and GPU utilization, your NVIDIA card is up and running.nvidia-smi
3. Running DOOM (Steam version) on Ubuntu
Steam's Proton compatibility layer makes running most Windows games on Linux a breeze these days. Here's what to do:
- If you haven't already, install Steam from Ubuntu's Software Center.
- Open Steam, find DOOM in your library, right-click it and select Properties.
- Go to the Compatibility tab, check the box that says Force the use of a specific Steam Play compatibility tool, then select the latest Proton version (like Proton 8.0) or Proton Experimental (great for newer games or troubleshooting).
- If you run into performance issues or the game seems to be using the integrated GPU instead of the RTX, add this line to the Launch Options field in the game's Properties:
This forces the game to use your NVIDIA GPU explicitly.__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%
That should cover everything—you should be blasting through DOOM on Ubuntu in no time. Let me know if you hit any snags!
备注:内容来源于stack exchange,提问作者Timothyhtomit

