Skip to content

Instantly share code, notes, and snippets.

@pantor
Last active December 20, 2024 07:06
Show Gist options
  • Save pantor/9786c41c03a97bca7a52aa0a72fa9387 to your computer and use it in GitHub Desktop.
Save pantor/9786c41c03a97bca7a52aa0a72fa9387 to your computer and use it in GitHub Desktop.
Installing NVIDIA drivers on a realtime Linux (PREEMPT-RT)
# Tested on Ubuntu 16.04 and X11, 2019
# 1. Download NVIDIA driver as a .run file
# 2. Stop X-Server
sudo service lightdm stop
# 3. Blacklist Nouveau driver
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
# Insert into file:
# blacklist nouveau
# options nouveau modeset=0
# 4. Update kernel initramfs
sudo update-initramfs -u
sudo reboot # I'm not sure if needed
# 5. Install driver!
sudo IGNORE_PREEMPT_RT_PRESENCE=1 bash <*>.run # Insert downloaded .run file
# 6. Reboot
sudo reboot
@aopolin-lv
Copy link

Worked on Ubuntu 20.04 with 5.15.107-rt62 kernel, thanks a lot

Thanks, following this setting, I succeed.

@ynrng
Copy link

ynrng commented May 15, 2024

Succeed on 5.15.0-rt17 with ubuntu 20.04.6 . I hesitated when it popped out saying "GUI has better supporting installation versions." Thank you.

@Oct19
Copy link

Oct19 commented May 25, 2024

It worked on Ubuntu 22.04 RT with NVIDIA 535

@jmcoholich
Copy link

I also installed the RTK on an ubuntu 20 machine with NVIDIA gpus. The machine was working fine for awhile, but now the system only boots into command line after showing "ACPI BIOS Error". startx fails from this command line environment. I'm wondering if installing the RTK with IGNORE_PREEMPT_RT_PRESENCE=1 is the root cause of my issues. (Desktop env failing could indicate problems with graphics drivers).

@liver121888
Copy link

Tested on Ubuntu 22.04.5 with version 550 run.sh, works.

@felix-h-kong
Copy link

Worked on Ubuntu 22.04.5 with 5.15.0-1072-realtime and NVIDIA-Linux-x86_64-550.127.05.run

@solnox99
Copy link

solnox99 commented Dec 6, 2024

Worked on Ubuntu 22.04.5 with 5.15.0-1072-realtime and NVIDIA-Linux-x86_64-550.127.05.run

저도 같은 조건에서 잘 되었습니다.

@pcchenxi
Copy link

Worked on Ubuntu 20.04 with 5.15.107-rt62 kernel, thanks a lot

Worked on the same setting, Ubuntu 20.04 with 5.15.107-rt62 kernel and Nvidia-535, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment