If lsmod | grep nvidia returns nothing, it means that the NVIDIA kernel modules are not loaded. Here are some steps to troubleshoot and resolve the issue:
1. Check if the Drivers are Installed Correctly
First, ensure that the NVIDIA drivers are installed:
pacman -Qs nvidia
You should see packages like nvidia, nvidia-utils, and possibly nvidia-libgl listed. If they are not installed, use this command to install them:
sudo pacman -S nvidia nvidia-utils
2. Check for Conflicts with Nouveau
The open-source Nouveau driver may conflict with the NVIDIA driver. You'll need to blacklist Nouveau:
-
Blacklist Nouveau:
Create a file to blacklist Nouveau:
echo "blacklist nouveau" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
Also, add the following lines to the same file to properly disable it:
options nouveau modeset=0
-
Update the Initramfs:
After blacklisting Nouveau, regenerate the initramfs:
sudo mkinitcpio -P
3. Reboot the System
Reboot your system to apply the changes:
sudo reboot
4. Check Kernel Modules Again
After rebooting, check again if the NVIDIA modules are loaded:
lsmod | grep nvidia
5. Verify Kernel Compatibility
Make sure the installed NVIDIA driver is compatible with your kernel version. If you're running a newer kernel and the NVIDIA driver doesn't support it, you may need to install the nvidia-dkms package instead of the standard nvidia package:
sudo pacman -S nvidia-dkms
Then, regenerate the initramfs again:
sudo mkinitcpio -P
Reboot your system once more.
6. Check Logs
If the NVIDIA modules still do not load, check your system logs for any errors:
dmesg | grep nvidia
Also, check for any messages regarding graphics drivers:
journalctl -b | grep -i 'nvidia'
7. Use the Correct Kernel
Ensure you are running the correct kernel for the installed driver. For example, if you're using the linux-lts kernel, make sure you also have the nvidia-lts package installed.
8. Install Required Packages for Sway
If you plan to run Sway, make sure you have the required packages:
sudo pacman -S sway wlroots
9. Check for Wayland Support
Ensure that you are launching Sway in a session where the NVIDIA driver is compatible with Wayland. The newer NVIDIA drivers have better support for Wayland, but it may still be finicky depending on the specific version of your drivers and the kernel.
Summary
Follow these steps methodically to troubleshoot the driver issues with your NVIDIA GT 610 on Arch Linux while using Sway. If you continue to encounter issues after trying these solutions, consider visiting the Arch Wiki and forums for more specific help.