You are not logged in.

#1 2024-11-04 14:49:42

xerne
Member
Registered: 2024-10-29
Posts: 12

Black screen after installing Nvidia proprietary drivers

I installed nvidia with

pacman -S nvidia nvidia-utils nvidia-settings

Rebooted and got a black screen. I can log in blindly and type in commands what logs I should look for?

Offline

#2 2024-11-04 14:55:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,115

Re: Black screen after installing Nvidia proprietary drivers

Did you follow the instructions on the NVIDIA wiki page?

Online

#3 2024-11-04 19:12:21

archlynovice
Member
Registered: 2023-10-22
Posts: 28

Re: Black screen after installing Nvidia proprietary drivers

Here's the wiki page Scimmia mentioned: https://wiki.archlinux.org/title/NVIDIA

Are you using Wayland by any chance? I've only skimmed through some parts of the article and this is what caught my eye:

Note: If you are using Wayland you should not restart until after following #DRM kernel mode setting or you may end up with a black screen.

May I ask you (from newbie to newbie) why you chose the nvidia over the nouveau driver?

Last edited by archlynovice (2024-11-04 19:13:21)

Offline

#4 2024-11-05 06:23:25

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

Yes I followed wiki page. I dont use wayland but even if I set drm kernel mode setting I end up with a black screen.I want to install proprietary driver because of awful performance in games with nouveau, some of them crash with errors like "Can't find any gpu supporting vulkan".

Also I should try modprobe nvidia or rmmod I think I will get access to tty

Offline

#5 2024-11-05 08:22:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,289

Re: Black screen after installing Nvidia proprietary drivers

What's your actual GPU? On some constellations it might be necessary to pass the

nvidia-drm.modeset=1 nvidia-drm.fbdev=0

parameter on the kernel cmdline.

If you can get to a tty, can you post the link you get from:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Last edited by V1del (2024-11-05 08:24:41)

Offline

#6 2024-11-05 08:45:08

seth
Member
Registered: 2012-09-03
Posts: 58,981

Re: Black screen after installing Nvidia proprietary drivers

When following the wiki page, did you follow *all* steps?
Notably the part that talks kms and hooks and stuff?

Online

#7 2024-11-05 09:03:33

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

My gpu is gtx 1060
Yes I followed everything up to automatic xorg configuration generation.
I will post journalctl result in couple hours. Cant access my pc right now

Offline

#8 2024-11-05 12:47:00

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

V1del wrote:

What's your actual GPU? On some constellations it might be necessary to pass the

nvidia-drm.modeset=1 nvidia-drm.fbdev=0

parameter on the kernel cmdline.

Yea I did added this to grub config but nothing changed

V1del wrote:

If you can get to a tty, can you post the link you get from:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Here is pastebin link: https://pastebin.com/qHxu8Ryb (I couldn't write commands like this because if I write it wrong I won't know about this)

Also I did tried to unload nvidia drivers (nvidia_uvm nvidia_drm nvidia_modeset nvidia) but I had no signal

Offline

#9 2024-11-05 12:52:30

seth
Member
Registered: 2012-09-03
Posts: 58,981

Re: Black screen after installing Nvidia proprietary drivers

Yea I did added this to grub config but nothing changed

That's not reflected by the posted journal.

Editing /etc/default/grub doesn't do anything, you'll still have to run grub-mkconfig to write the config to /boot/grub/grub.cfg, resp. edit that file directly.

Also please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Online

#10 2024-11-05 13:05:00

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

seth wrote:

Yea I did added this to grub config but nothing changed

That's not reflected by the posted journal.

Editing /etc/default/grub doesn't do anything, you'll still have to run grub-mkconfig to write the config to /boot/grub/grub.cfg, resp. edit that file directly.

Also please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Tried to add it last time I tried to figure out how to fix it (ofc generated config). But it didn't make any difference.
I will post xorg log in couple minutes. I'd like to try edit grub but my screen have no signal so I dont know how. Maybe I can do it if I connect via ssh

Offline

#11 2024-11-05 13:15:55

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

Here is Xorg log: https://pastebin.com/arQX5M4C

Offline

#12 2024-11-05 13:35:34

seth
Member
Registered: 2012-09-03
Posts: 58,981

Re: Black screen after installing Nvidia proprietary drivers

[    11.140] (==) Using config file: "/etc/X11/xorg.conf"

Remove that file, re-add the kernel parameters and post an updated Xorg log.

Online

#13 2024-11-09 09:42:48

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

seth wrote:
[    11.140] (==) Using config file: "/etc/X11/xorg.conf"

Remove that file, re-add the kernel parameters and post an updated Xorg log.

Here it is: https://pastebin.com/6gD0N1E8

Offline

#14 2024-11-09 13:17:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,115

Re: Black screen after installing Nvidia proprietary drivers

You missed the 're-add the kernel parameters' part.

Online

#15 2024-11-09 13:46:15

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

Scimmia wrote:

You missed the 're-add the kernel parameters' part.

I added them and generated grub config

Offline

#16 2024-11-09 16:26:16

seth
Member
Registered: 2012-09-03
Posts: 58,981

Re: Black screen after installing Nvidia proprietary drivers

That's not reflected by the posted X11 log

[    11.305] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=37c174e0-df7f-4ab1-9e20-bb897c7e119f rw rootflags=subvol=@ zswap.enabled=0 rootfstype=btrfs loglevel=3 quiet
…
[    13.018] (EE) open /dev/dri/card0: No such file or directory

Also

[    11.483] (II) LoadModule: "nouveau"

remove every xf86-video-* package.

Online

#17 2024-11-09 16:38:58

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

seth wrote:

That's not reflected by the posted X11 log

[    11.305] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=37c174e0-df7f-4ab1-9e20-bb897c7e119f rw rootflags=subvol=@ zswap.enabled=0 rootfstype=btrfs loglevel=3 quiet
…
[    13.018] (EE) open /dev/dri/card0: No such file or directory

Strange, I got into my system with chroot, edited grub and generated it.I'll try to repeat it.

Offline

#18 2024-11-09 16:54:50

seth
Member
Registered: 2012-09-03
Posts: 58,981

Re: Black screen after installing Nvidia proprietary drivers

You likely forgot the mount the boot partition?
Also you probably don't have to chroot, see the 2nd link below and you can also edit the commandline at the bootloader (press "e")

Online

#19 2024-11-13 14:40:40

xerne
Member
Registered: 2024-10-29
Posts: 12

Re: Black screen after installing Nvidia proprietary drivers

Got the same error. Had to reinstall arch apologize for long wait

Offline

Board footer

Powered by FluxBB