The NVIDIA driver does not support real-time kernels.
I follow the apollo_1_5_hardware_system_installation_guide.md to install apollo with both apollo-kernel and nvidia-driver.
wsine@hostname:~/Downloads$ ls
linux-4.4.32-apollo-1.5.0.tar.gz NVIDIA-Linux-x86_64-375.39.run
wsine@hostname:~/Downloads$ uname -a
Linux sensetime-MS-7A71 4.4.32-apollo-2-RT #2 SMP PREEMPT RT Wed Sep 20 11:45:34 CST 2017 x86_64 x86_64 x86_64 GNU/Linux
wsine@hostname:~/Downloads$ sudo bash ./NVIDIA-Linux-x86_64-375.39.run --no-x-check -a -s
[sudo] password for weizhengyuan:
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.39.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ERROR: The kernel you are installing for is a PREEMPT_RT kernel!
The NVIDIA driver does not support real-time kernels. If you
are using a stock distribution kernel, please install
a variant of this kernel that does not have the PREEMPT_RT
patch set applied; if this is a custom kernel, please
install a standard Linux kernel. Then try installing the
NVIDIA kernel module again.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver
download page at www.nvidia.com.
If you did not run in real car,I suggest that there no need to install real-time kernel. But if you really need it ,try this file.
https://github.com/ApolloAuto/apollo-kernel/blob/master/linux/install-nvidia.sh
i do run in a real car, thus i need it. it works, thanks very much. recommend to update the installation guide.
@gengqx @Wsine Is the NVIDIA-Linux-x86_64-375.39.run in the file install-nvidia.sh you recommended above only matched with 1080Ti? If it is, how to install other Nvidia drivers(like GTX1050) in Apollo real-time kernels?
No,it works on others cards. My card is GTX1050Ti
@Jasonsun1993 I tested on both 1050 and 1080 cards. they works.
here is my another solution to this problem. https://github.com/ApolloAuto/apollo/issues/2595
@turinglife Could you create a PR and checkin your solution in Q&A section like in here ? https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Software_FAQs.md Thanks.
My laptop has GT540M(a little bit of old), after installed nvidia driver the following script based on RT kernel: https://github.com/ApolloAuto/apollo-kernel/blob/master/linux/install-nvidia.sh
The display resolution is not correct, the nvidia driver 390.25 is working fine before upgrade the RT kernel, is it normal with wrong display resolution?
BR, Thanks.
@Wsine @gengqx
Hi guys, I installed 4.4.32-apollo-2-RT (pre-built binary). And I executed the shell script to install the Nvidia driver (My GPU is GTX 1070Ti).
But the screen refresh rate is very very slow. And after executing "nvidia-smi", I got "no device found". Dmesg showed "NVRM: RmInitAdapter failed".
Besides, without the GPU and the nvidia driver, the screen refresh rate is also very slow when using apollo real time kernel.
Looking forward to your reply.
@gengqx bit off topic , can you recommend any laptop that will be good to run apollo in the real car environment ?
Hi, @gengqx @Wsine ,my card is 1050ti, I use the " install-nvidia.sh " and the terminal print: "successfully install" , but the screen resolution is still very very slow(the nvidia card still does not work). After executing "nvidia-smi", the terminal showed "failed to initialize NVML: Driver/library version mismatch". how should I do?
Looking forward to your reply.
Hi guys,I have solved this problem. my Youdao Yun Note: solution
Hi guys, I got the same error(not support real-time kernel) when installing NVIDIA RTX 2080Ti on ubuntu 18.04 with Apollo kernel(1.5.5), do you have any idea about this issue? thank you very much!
after running the command "sudo ./install-nvidia.sh", it printed "Done to install nvidia kernel driver and user libraries." then I ran "nvidia-smi" , but still didn't work. anybody have any suggestions?
Hey guys, I tried to install the NVIDIA Driver 450.102.04 for the Quadro P920 (on the RT Kernel 5.4.84-rt47, Ubuntu 18.04) using the script that was mentioned above (install-nvidia.sh). As I'm not using the apollo-kernel I made some changes in the script as described here.
I always end up getting the same error when I try to run "nvidia-smi": "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."
Is there anybody who managed to get their NVIDIA-Driver working without using the apollo-kernel?
Hey guys, I tried to install the NVIDIA Driver 450.102.04 for the Quadro P920 (on the RT Kernel 5.4.84-rt47, Ubuntu 18.04) using the script that was mentioned above (install-nvidia.sh). As I'm not using the apollo-kernel I made some changes in the script as described here.
I always end up getting the same error when I try to run "nvidia-smi": "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."
Is there anybody who managed to get their NVIDIA-Driver working without using the apollo-kernel?
See https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_install_apollo_kernel.md for the updated docs on kernel.
Nvidia-smi can't communicate with nvidia driver was a common seen problem when installing Nvidia driver.
Try to disable the multiverse distribution component in /etc/apt/sources.list:
sudo add-apt-repository --remove multiverse
Hey guys, I tried to install the NVIDIA Driver 450.102.04 for the Quadro P920 (on the RT Kernel 5.4.84-rt47, Ubuntu 18.04) using the script that was mentioned above (install-nvidia.sh). As I'm not using the apollo-kernel I made some changes in the script as described here. I always end up getting the same error when I try to run "nvidia-smi": "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running." Is there anybody who managed to get their NVIDIA-Driver working without using the apollo-kernel?
See https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_install_apollo_kernel.md for the updated docs on kernel.
Nvidia-smi can't communicate with nvidia driverwas a common seen problem when installing Nvidia driver.Try to disable the
multiversedistribution component in/etc/apt/sources.list:sudo add-apt-repository --remove multiverse
Thank you very much, it's finally working now!
ecco un'altra mia soluzione a questo problema. #2595 ma questo ha capito di che parlano?