如何在Aurora Linux中同时使用两块GPU?
Hey there! Let's get your AMD onboard GPU up and running alongside the NVIDIA one in Aurora Linux. Here's a step-by-step breakdown to fix this:
第一步:确认系统是否识别了AMD GPU
First, let's check if your system can even see the AMD card. Open a terminal and run:lspci | grep -E "VGA|Display"Look for an entry with "AMD" in it. If you see it, great—hardware is detected, we just need to enable it. If not, head into your BIOS settings and make sure the integrated (onboard) GPU isn't disabled (look for options like Integrated Graphics or IGPU Mode and set them to Enabled).
第二步:确保AMD开源驱动已安装
Aurora Linux is Arch-based, so AMD's open-source drivers are included in themesapackage. Check if it's installed with:pacman -Qs mesaIf you don't see any results, install it with:
sudo pacman -S mesaFor older AMD cards, you might need the
xf86-video-atipackage instead, butmesacovers most modern AMD GPUs.第三步:配置Xorg(如果使用Xorg会话)
Most desktop environments in Aurora use Xorg by default. We need to make sure Xorg loads the AMD driver:- Create a config file in
/etc/X11/xorg.conf.d/(make the directory if it doesn't exist):sudo mkdir -p /etc/X11/xorg.conf.d sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf - Paste this content into the file:
Section "Device" Identifier "AMD_GPU" Driver "amdgpu" EndSection - Save and exit (Ctrl+O, Enter, then Ctrl+X in nano). Your NVIDIA config should already be set up (from the driver installation), so Xorg should now recognize both GPUs.
- Create a config file in
第四步:启用并配置你的显示器
Reboot your system, then open a terminal and run:xrandrThis will list all detected displays and their connected ports. Look for the ports linked to your AMD GPU (they might start with
HDMI-A-orDP-). You can enable the displays and position them relative to your NVIDIA ones with a command like:xrandr --output HDMI-A-0 --auto --right-of DP-0Replace
HDMI-A-0with your AMD display's port andDP-0with your main NVIDIA display's port. To make this permanent, add the command to your desktop environment's autostart script (like~/.xprofilefor Xorg-based desktops).如果使用Wayland会话
If you're using a Wayland session (check when you log in), AMD's GPU should be detected automatically. Just open your desktop environment's display settings and you should see the extra monitors—you can arrange them there directly.
If you run into issues, double-check that your BIOS has integrated graphics enabled, and that all cables are securely connected. Let me know if you hit any snags!
备注:内容来源于stack exchange,提问作者Allen Johnston

