I installed the opensuse driver with sudo zypper install x11-video-nvidiaG06
but when I start KDE show the mouse cursor but not other thinks so I go to tty shell with ctr+alt+F1 and i install the G05 sudo zypper install x11-video-nvidiaG05
.
Now If I use nvidia-smi
I have an error but if I use sudo nvidia-smi
it works. Also trought python with sudo and pytorch I’m able to use it, but for example steam have problem. How to solve this issue and achieve to use it without sudo?
(I try to force reinstall sudozypperin-f(rpm-q-a--qf'%{x11-video-nvidiaG05}')
but no results)
You should choose which driver to install: G05 or G06 but not both together.
If you choose the G06 driver and use KDE-Plasma, you should add nvidia-drm.modeset=1 to the kernel parameters.
At first I choose the G06 but I have problem with KDE (maybe because I do not add add nvidia-drm.modeset=1) so I pass to the G05, and it works but It require sudo (if I do sudo nvidia-smi I watch all correctly, but if I do nvidia-smi it say that the GPU are not visible).
I do not think that it is normal, how to fix the sudo required?
I would completely remove the G05 driver and adapt the kernel parameters at boot (nvidia-drm.modeset=1).
If I have any issues with the G05 driver (after a kernel or driver update), they are usually cleared by reinstalling either the module or everything nvidia, from my admin notes:
Nvidia - in the event the kernel module needs a manual rebuild:
[ul]
[li]rebuild the module only:[/li][LIST]
[li] zypper in -f nvidia-gfxG05-kmp-default[/li][/ul]
[li]if that’s not enough force a reinstall of all nvidia repo packages:[/li][ul]
[li]zypper --no-refresh se --installed-only -r NVIDIA | awk ‘$1 ~ /^i[+]*/ { print $3 }’ | xargs zypper in --force[/li][/ul]
[/LIST]
I put the kernel param at boot, I also try to reinstall with the suggested command, I also try to remove , reboot and reinstall but the problem is the same, to understad it better that is the commands:
[FONT=monospace]
[/FONT]⋊> ~ nvidia-smi 08:09:49
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
⋊> ~ sudo nvidia-smi 08:09:54
Mon Jan 31 08:10:05 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.94 Driver Version: 470.94 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| 0% 35C P0 36W / 198W | 1MiB / 8119MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 Tesla M40 24GB Off | 00000000:02:00.0 Off | 0 |
| N/A 30C P0 63W / 250W | 0MiB / 22945MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
I solve with:
sudo nvidia-smi -acp UNRESTRICTED
sudo usermod -a -G video <MY-USER-NAME>
# relogin
Now nvidia-smi work without sudo.
Would you post the output of nvidia-smi again?
It is better to start with hardware description.
And what about nouveau drivers - you deleted them or what?
Scuse me to all, I do not read the blog for days.I try to describe better the problem:
- Desktop PC
- Opensuse Tumbleweed, KDE
- GPUs: nvidia 1080 + nvidia M40 24 GB
- I install at first G6 driver but KDE do not start correctly (I only see the mouse on screen without the other components of the desktop)
- I use tty to remove and install G5 driver
- KDE started correctly, but to see nvidia-smi I must do sudo, and I’m able to use GPU with python only if sudo
- I made the instruction that I described before and It seams to work for some days
- I installed STEAM and Proton with Battle.net using Proton with command line (maybe I do something else but I do not remember what, maybe zypper dup --allow-vendor-changes)
- now I cannot login, after the password insert (if it is wrong say that is wrong, but if it is correct) it start show very quickly something in the screen and return to login (I also tried wayland)
Hi
If you pull the Tesla M40 card, does it start working? You need to be running a 410 driver for the Tesla, which likely won’t work with the current kernel without patching (Tesla Driver for Linux x64 | 410.104 | Linux 64-bit | NVIDIA).
NVIDIA Tesla M40 24 GB uses Maxwell 2.0 architecture: NVIDIA Tesla M40 24 GB Specs | TechPowerUp GPU Database
For Tesla M40 24 GB use special drivers: Data Center Driver for Linux x64 | 510.47.03 | Linux 64-bit | NVIDIA
Try to use Leap - TW kernel is too new.
Just updated from G05 to G06 and am facing the same issue. Thrown to tty, then
sudo nvidia-smi
launches KDE Plasma…
I was wondering why I don’t have this issue. One thing about my login is that it’s a member of the video group, and I can see the following permissions:
% ls -l /dev/nvidia*
crw-rw----+ 1 root video 195, 0 Apr 3 17:09 **/dev/nvidia0**
crw-rw----+ 1 root video 195, 255 Apr 3 17:09 **/dev/nvidiactl**
crw-rw----+ 1 root video 195, 254 Apr 3 17:09 **/dev/nvidia-modeset**
crw-rw----+ 1 root video 236, 0 Apr 3 17:09 **/dev/nvidia-uvm**
crw-rw----+ 1 root video 236, 1 Apr 3 17:09 **/dev/nvidia-uvm-tools**
Could that be playing a part in the issue others are seeing?
I did fail to mention through YaST user management I did add myself to the video group (and not via sudo usermod -a -G video <MY-USER-NAME>
) but I don’t think because I didn’t do it through command line that should negatively impact it?
My permissions appear to slightly differ for uvm and uvm-tools for some reason:
crw-rw----+ 1 root video 195, 0 Apr 2 22:24 **/dev/nvidia0**
crw-rw----+ 1 root video 195, 255 Apr 2 22:24 **/dev/nvidiactl**
crw-rw----+ 1 root video 195, 254 Apr 2 22:24 **/dev/nvidia-modeset**
crw-rw----+ 1 root video 238, 0 Apr 2 22:24 **/dev/nvidia-uvm**
crw-rw----+ 1 root video 238, 1 Apr 2 22:24 **/dev/nvidia-uvm-tools**
I apologize for the double post but I don’t seem to have access to edit my previous post. I am finding entries of “kernel: [17595.943885] T4752] [drm:drm_new_set_master [drm]] ERROR [nvidia-drm] [GPU ID 0x00000a00] Failed to grab modeset ownership” despite having GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"
set in my /etc/default/grub file. I also updated grub2 with grub2-mkconfig after that.
I’m wondering if I should also set nvidia-drm.modeset=1 in YaST’s bootloader “Optional Command Line Parameter” settings? :\
Small update: Removing GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"
in /etc/default/grub and rerunning grub2-mkconfig then adding nvidia-drm.modeset=1
to the “Optional Command Line Parameter” option in YaST’s bootloader got rid of the “Failed to grab modeset ownership” error, but still requires sudo nvidia-smi
to get to a gui after tty.
I’ve read some places that disabling secure boot in bios can fix this but I really don’t want to do that. :\
Alright I believe the answer lies in MOK management… I do not believe I was prompted for MOK Management after installing the G06 drivers but I could be wrong… I believe the MOK keypair was signed with G05 and now seeing G06 it doesn’t want it to work? I think I will try an uninstall and reinstall of the drivers to see if I get the MOK management prompt…
A workaround, for now…