Problems getting NVidia driver to work

Yes

❯ cat /etc/sddm.conf
[General]
InputMethod=
Numlock=none

[Theme]
CursorTheme=breeze_cursors
DisableAvatarsThreshold=7
EnableAvatars=true
FacesDir=/usr/share/sddm/faces
ThemeDir=/usr/share/sddm/themes

[Users]
DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin
HideShells=
HideUsers=
RememberLastSession=true
RememberLastUser=true
ReuseSession=false

[Wayland]
EnableHiDPI=false
SessionCommand=/usr/share/sddm/scripts/wayland-session
SessionDir=/usr/share/wayland-sessions
SessionLogFile=.local/share/sddm/wayland-session.log

[X11]
# DisplayCommand=/usr/share/sddm/scripts/Xsetup
# DisplayStopCommand=/usr/share/sddm/scripts/Xstop
EnableHiDPI=false
MinimumVT=1
ServerArguments=-nolisten tcp
ServerPath=/usr/bin/X
SessionCommand=/usr/share/sddm/scripts/Xsession
SessionDir=/usr/share/xsessions
SessionLogFile=.local/share/sddm/xorg-session.log
UserAuthFile=.Xauthority
XauthPath=/usr/bin/xauth
XephyrPath=/usr/bin/Xephyr

post again output from:
find /etc/X11/ -name "*.conf"

and use prime-run with firefox:
prime-run firefox
and check with:
nvidia-smi
if its running on nvidia

❯  find /etc/X11/ -name "*.conf"
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/mhwd.d/nvidia.conf

Tried running Firefox, but seems to not be working

❯ nvidia-smi
Tue Mar  7 11:51:20 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02    Driver Version: 525.89.02    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| 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 RTX A100...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   49C    P8     3W /  35W |      4MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Works with glxgears though

❯ nvidia-smi
Tue Mar  7 11:52:24 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02    Driver Version: 525.89.02    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| 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 RTX A100...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   48C    P8     3W /  35W |     12MiB /  4096MiB |      5%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      8100      G   glxgears                            7MiB |
+-----------------------------------------------------------------------------+

should be working also with firefox…
post output from:
cat /etc/X11/mhwd.d/nvidia.conf

Yeah, I already had another Firefox window open. After closing that it also works with Firefox

❯ nvidia-smi
Tue Mar  7 11:55:50 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02    Driver Version: 525.89.02    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| 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 RTX A100...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   50C    P8     6W /  35W |      6MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      8713      G   ...-browser-integration-host        1MiB |
+-----------------------------------------------------------------------------+
❯  cat /etc/X11/mhwd.d/nvidia.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##

so have no idea why you had a black screen after installing optimus, that shouldnt happened; did you installed only optimus manager and optimus plasma as you should? and no other optional dependencies?

Yeah, there were no other dependencies. Reverse Prime also doesn’t work. I guess I will have to stick to offloading heavier applications the the NVidia GPU

you could try with envycontrol:
pamac build envycontrol
switch to nvidia:
sudo envycontrol -s nvidia
it will prompt you for reboot, so do it, and see if it worked… if not, enter into TTY, and remove it:
sudo pacman -Rs envycontrol
reboot

I tried envycontrol, but it also results in a black screen unfortunately.

then there is something wrong with your system/ nvidia drivers… could be because of you being on unstable… or there is still something messed up from the update … check with:
sudo ldconfig
it should return nothing

Yeah it returns nothing

sddm doesn’t seem to find the monitors

● sddm.service - Simple Desktop Display Manager
     Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; preset: disabled)
     Active: active (running) since Tue 2023-03-07 12:55:33 CET; 56s ago
       Docs: man:sddm(1)
             man:sddm.conf(5)
   Main PID: 1225 (sddm)
      Tasks: 2 (limit: 37956)
     Memory: 4.1M
        CPU: 123ms
     CGroup: /system.slice/sddm.service
             └─1225 /usr/bin/sddm

Mär 07 12:55:35 precision5570 sddm[1225]: Failed to read display number from pipe
Mär 07 12:55:35 precision5570 sddm[1225]: Display server stopping...
Mär 07 12:55:35 precision5570 sddm[1225]: Attempt 2 starting the Display server on vt 1 failed
Mär 07 12:55:37 precision5570 sddm[1225]: Display server starting...
Mär 07 12:55:37 precision5570 sddm[1225]: Adding cookie to "/var/run/sddm/{d15b490f-97c4-4901-a8e2-3e74c4889514}"
Mär 07 12:55:37 precision5570 sddm[1225]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt1 -auth /var/run/sddm/{d15b490f-97c4-4901-a8e2-3e74c4889514} -noreset -displayfd 17
Mär 07 12:55:37 precision5570 sddm[1225]: Failed to read display number from pipe
Mär 07 12:55:37 precision5570 sddm[1225]: Display server stopping...
Mär 07 12:55:37 precision5570 sddm[1225]: Attempt 3 starting the Display server on vt 1 failed
Mär 07 12:55:37 precision5570 sddm[1225]: Could not start Display server on vt 1

there is something messed up in your system… but have no idea what…
try reinstalling the video drivers, so remove them:
sudo mhwd -r pci video-hybrid-intel-nvidia-prime
now install them again:
sudo mhwd -a pci nonfree 0300
reboot;
install again optimus as instructed above and see if it helped

Nope, same thing unfortunately

the only thing i can think of, is to switching back to the stable branch:

sudo pacman-mirrors --api --set-branch stable

then install stable branch packages:

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyuu

reboot, install again optimus, reboot and see

It is not possible due to various pipewire dependencies. I am giving up. I will just live without Nvidia.

I also think that this should be possible on the unstable branch, which is just the Arch stable branch. I never had any issues with it so far. This is something about the Nvidia driver configuration. The system is fairly new actually. I just set this up two months ago and haven’t modified much other than switchting branches.

i agree it should work on unstable, but for whatever reason it doesnt, thats why i suggested to switch back to stable… at least prime-run works

Yeah thank you for the help there. Hopefully all of these NVidia issues will be history soon, now that the driver source code has been published

Similar issue here it seems btw
https://forum.manjaro.org/t/boot-sequence-does-not-reach-sddm-after-install-nvidia-drivers

not really the same, he needs to add the ibt parameter for nvidia to work, you already did it + your nvidia is working with prime-run

onedrive 1.1.4-1

Whilst not related to your nvidia issue - you are using a onedrive client version that has known issues and bugs. Those issues and bugs and can lead to data loss.

For a client that is maintained and fully supported, on Manjaro you need to install ‘onedrive-abraunegg’ from AUR.

Thank you. Will do