This is for dracut systemd options i struggled to find info about this so i made a guide after getting it working on my 3090 nvidia and my 4gb amd at the same time
#tip do not login via gui it froze for me
1. Using Keyboard Shortcuts (TTYs)
-
Press Ctrl + Alt + F1 (or F2–F6) to switch from the graphical login screen to a virtual terminal.
-
You’ll see a text-based login prompt.
-
Enter your username and password to log in.
-
You’ll now be in a shell session where you can run commands.
2. Returning to Graphical Login
- To go back to the graphical login screen, press Ctrl + Alt + F7 (sometimes F1 or F2 depending on your distribution and display manager).
3. From GUI Login Screen
- If you’re already logged in to the desktop environment, you can open a terminal by pressing Ctrl + Alt + T (Ubuntu and many distros) or searching for “Terminal” in the application menu
#step 1
first login via cli then
step 2.
#Configure Dracut for NVIDIA
# Install NVIDIA drivers
sudo pacman -S nvidia nvidia-utils lib32-nvidia-utils
# Install AMD drivers (should already be in kernel)
sudo pacman -S mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon
# Create dracut config for NVIDIA** sudo nano /etc/dracut.conf.d/nvidia.conf**
Add this one per line
add_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "
force_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "
omit_drivers+=" nouveau "
Step 3: Configure Kernel Parameters
sudo nano /etc/kernel/cmdline
#Add these parameters one line:
nvidia-drm.modeset=1 nvidia-drm.fbdev=1 module_blacklist=nouveau
Step 4: Blacklist Nouveau
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
#Add: one per line UWU
blacklist nouveau
options nouveau modeset=0
Step 5: Configure NVIDIA Modules
sudo nano /etc/modprobe.d/nvidia.conf
options nvidia_drm modeset=1 fbdev=1
Step 6: Rebuild Dracut Initramfs
# Regenerate initramfs for all kernels
sudo dracut-rebuild
Step 8: Reboot
sudo reboot
After Reboot: Verify Setup
# Check if NVIDIA is loaded
lsmod | grep nvidia
# Check which GPU is being used
glxinfo | grep “OpenGL renderer”
# Verify both GPUs are detected
lspci | grep -E “VGA|3D”