Ubuntu 22.04 and PREEMPT_RT?

Hello,

I am running Ubuntu 22.04 with PREEMPT_RT applied. According to this GitHub post some folks have had success at least with Ubuntu 16.04 and PREEMPT_RT and Nvidia. For Ubuntu 22.04 and PREEMPT_RT there is a reported limitation post/article (923366) on lwn net. I have followed several forum suggestions for fixes pre Ubuntu 22.04 but none of them work. It appears that the Nvidia driver just refuses to install the instance the real-time kernel is detected. These solutions range from downgrading to older drivers, using the third party official drivers, all the way through purging the official repository drivers and installing them directly from Nvidia .run installs.

Hoping to work with ROS2 and Gazebo which offer nice simulation benefits in an RTOS sense but tools like Gazebo and ROS Viz really prefer Nvidia etc… for visualization. It would be nice to run them on the same machine but as of now it looks like visualization tools will need to be run on a non RTOS setup while ROS and the Gazebo server run on a separate RTOS machine.

Help and insight would be appreciated.

Thanks,

Wess

What’s exactly wrong with direct driver installation from “.run” files and not from repository?
I used it with my linux-rt + RealSense Patches for ROS2 with Gazebo as well. I didn’t stumble on that Github post, but in essence I did the same: disabled X and nouveau, installed from .run with IGNORE_PREEMPT_RT_PRESENCE=1 and rebooted. Everything works great, there’s little to no freezes even on full CPU load now.