After I had my own issues with Nvidia and Linux on my gaming laptop, I decided to make a PSA to help people who had the same issue I had.
Note: As of 5/1/2025, there are other known issues with StarMade on Linux such as shader and credential issues. A fix for these is in the works and will be released soon.
StarMade Linux Troubleshooting with Nvidia GPUs
If you have a Linux computer with a Nvidia GPU and StarMade runs poorly, this may be due to your system selecting the wrong GPU (such as an integrated GPU on gaming laptops) rather than a high performance dedicated one.
You can verify if this is happening by looking near the top of the latest log file (StarMade/logs/logstarmade.0.log):
If you happen to see something like this, rather than your dedicated GPU, this guide may prove useful.
Prerequisites
Before starting, identify your NVIDIA GPU model:
Ensure you have administrator (sudo) privileges on your system.
Installing NVIDIA Drivers
Ubuntu/Debian-based distributions:
Fedora/RHEL-based distributions:
Arch Linux:
After installation, reboot your system:
Verifying Driver Installation
Check if your NVIDIA GPU is recognized:
This should display information about your GPU, including model, driver version, and usage statistics.
Troubleshooting Driver Issues
Driver Not Communicating
If you see this error:
Follow these steps:
1. Check if NVIDIA drivers are installed:
For Debian/Ubuntu:
For Fedora/RHEL:
2. Reinstall the drivers:
For Ubuntu/Debian:
For Fedora:
For Arch:
Dealing with Secure Boot
Secure Boot can prevent NVIDIA drivers from loading:
1. Check Secure Boot status:
2. If enabled, you have two options:
- Disable Secure Boot in BIOS/UEFI
- Sign the NVIDIA modules (advanced users)
Blacklisting Nouveau Driver
The open-source Nouveau driver might conflict with NVIDIA's proprietary driver:
1. Check if Nouveau is loaded:
2. Blacklist it:
3. Update initramfs:
For Ubuntu/Debian:
For Fedora/RHEL:
4. Reboot your system:
Configuring StarMade to use your GPU
1. Via Steam launch options:
- Right-click on StarMade in your Steam library
- Select "Properties"
- Click "SET LAUNCH OPTIONS" and add either:
OR
Making GPU Selection Permanent
Create a configuration file to always use your NVIDIA GPU:
Add these lines:
For a system-wide setting to make all OpenGL applications use the NVIDIA GPU by default:
Add these lines:
Then restart your system.
Verifying GPU Usage
While running StarMade check if it's using the NVIDIA GPU by running in a terminal:
You should see your application in the processes list with GPU usage.
You can also check the previously mentioned log file, and look for something like this:
[hr]
If you encounter specific problems not covered here, ask for help in the #support channel in the StarMade Discord or consult your distribution's documentation or the NVIDIA forums for additional assistance.
Note: As of 5/1/2025, there are other known issues with StarMade on Linux such as shader and credential issues. A fix for these is in the works and will be released soon.
StarMade Linux Troubleshooting with Nvidia GPUs
If you have a Linux computer with a Nvidia GPU and StarMade runs poorly, this may be due to your system selecting the wrong GPU (such as an integrated GPU on gaming laptops) rather than a high performance dedicated one.
You can verify if this is happening by looking near the top of the latest log file (StarMade/logs/logstarmade.0.log):
Code:
Adapter: null
Driver Version: null
Vendor: Intel
OpenGL Version: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.3
Renderer: Mesa Intel(R) Xe Graphics (TGL GT2)
Prerequisites
Before starting, identify your NVIDIA GPU model:
Code:
lspci | grep -i nvidia
Installing NVIDIA Drivers
Ubuntu/Debian-based distributions:
Code:
sudo apt update
sudo apt install nvidia-driver-570 # Use the latest version available (570 as of 04/01/2025)
Code:
sudo dnf install akmod-nvidia
Code:
sudo pacman -S nvidia
Code:
sudo reboot
Check if your NVIDIA GPU is recognized:
Code:
nvidia-smi
Troubleshooting Driver Issues
Driver Not Communicating
If you see this error:
Code:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
1. Check if NVIDIA drivers are installed:
For Debian/Ubuntu:
Code:
dpkg -l | grep nvidia
Code:
rpm -qa | grep nvidia
For Ubuntu/Debian:
Code:
sudo apt purge *nvidia*
sudo apt autoremove
sudo apt install nvidia-driver-535 # Use the latest version
Code:
sudo dnf remove *nvidia*
sudo dnf install akmod-nvidia
Code:
sudo pacman -Rs nvidia
sudo pacman -S nvidia
Secure Boot can prevent NVIDIA drivers from loading:
1. Check Secure Boot status:
Code:
mokutil --sb-state
- Disable Secure Boot in BIOS/UEFI
- Sign the NVIDIA modules (advanced users)
Blacklisting Nouveau Driver
The open-source Nouveau driver might conflict with NVIDIA's proprietary driver:
1. Check if Nouveau is loaded:
Code:
lsmod | grep nouveau
Code:
sudo bash -c "echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf"
sudo bash -c "echo 'options nouveau modeset=0' >> /etc/modprobe.d/blacklist.conf"
For Ubuntu/Debian:
Code:
sudo update-initramfs -u
Code:
sudo dracut --force
Code:
sudo reboot
1. Via Steam launch options:
- Right-click on StarMade in your Steam library
- Select "Properties"
- Click "SET LAUNCH OPTIONS" and add either:
Code:
prime-run %command%
Code:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%
Create a configuration file to always use your NVIDIA GPU:
Code:
sudo nano /etc/X11/xorg.conf.d/10-nvidia.conf
Code:
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
EndSection
Code:
sudo nano /etc/environment.d/nvidia.conf
Code:
__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia
Verifying GPU Usage
While running StarMade check if it's using the NVIDIA GPU by running in a terminal:
Code:
nvidia-smi
You can also check the previously mentioned log file, and look for something like this:
Code:
Adapter: null
Driver Version: null
Vendor: NVIDIA Corporation
OpenGL Version: 4.6.0 NVIDIA 570.133.07
Renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2
If you encounter specific problems not covered here, ask for help in the #support channel in the StarMade Discord or consult your distribution's documentation or the NVIDIA forums for additional assistance.