Nvidia-dkms: blank screen no login

Hi, since yesterday that problem ocurred after reboot. Should I just wait a couple of days for the fix. Alt-F2 to command line works. The fallback kernel does not help which has always surprised me.

problem description: after re-boot a blank screen appears in graphical mode of gdm and no login is possible. I suspect it to be realted to nvidia-dkms as it has been in the past about once every year.

There hasn’t been an update to nvidia-dkms since around June 5’th, so unless you don’t update very often, I’m not so sure that package is the main culprit to your problem. I use the nvidia-dkms package myself and haven’t come across any issues in the year I’ve been using it. What other recent packages have been updated? At the very least though I’d test both the linux kernel and linux-lts kernels to see if that helps at all.

It does help a lot more when you are able to provide as much information as possible, so other users can help diagnose the issue.

but … a kernel update happens what triggers nvidia-dkms to rebuild modules.

Last Updated: 2022-06-23 11:51 UTC

https://archlinux.org/packages/core/x86_64/linux/

First thing to do is to rebuild nvidia modules and kernel images:
yay
sudo pacman -S nvidia-dkms
sudo mkinitcpio -P
reboot …

Sorry, that did not help. Two suspicious messages:

  1. yay reports a missing gnome-text-editor-debug
  2. pacamsn reports An GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown…

Logs are found under here and here

gnome-terminal-debug …
this is from gnome-terminal-transparency AUR install…


Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE) NVIDIA:     system's kernel log for additional error messages and
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE) NVIDIA:     consult the NVIDIA README for details.
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE) No devices detected.
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE)
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: Fatal server error:
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE) no screens found(EE)
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE)
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: Please consult the The X.Org Foundation support
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]:          at http://wiki.x.org
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]:  for help.
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE)
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[692]: (EE) Server terminated with error (1). Closing log file.
Jun 25 11:31:12 Z590 /usr/lib/gdm-x-session[690]: Unable to run X server

nvidia drivers are not in a working install state…

more interesting would be to see the output from the running of the commands I gave you…

**yay**
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
 multilib downloading...
 endeavouros downloading...
:: Starting full system upgrade...
 there is nothing to do
:: e[1mSearching databases for updates...e[0m
:: e[1mSearching AUR for updates...e[0m
 -> Missing AUR Debug Packages:  gnome-text-editor-debug
 -> Flagged Out Of Date AUR Packages:  flatseal
 there is nothing to do

**sudo pacman -S nvidia-dkms**
warning: nvidia-dkms-515.48.07-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)        Old Version  New Version  Net Change

extra/nvidia-dkms  515.48.07-2  515.48.07-2    0.00 MiB

Total Installed Size:  52.45 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove nvidia/515.48.07
:: Processing package changes...
reinstalling nvidia-dkms...
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Install DKMS modules
==> dkms install --no-depmod nvidia/515.48.07 -k 5.18.6-arch1-1
Error! This module/version has already been built on: 5.18.6-arch1-1
Directory /var/lib/dkms/nvidia/515.48.07/5.18.6-arch1-1/x86_64 already exists. Use the dkms remove function before trying to build again.
==> WARNING: `dkms install --no-depmod nvidia/515.48.07 -k 5.18.6-arch1-1' exited 3
(3/5) eos-nvidia-fix.hook
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.6-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.6-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(4/5) Check if user should be informed about rebooting after certain system package upgrades.
==> INFO: Reboot is recommended due to the upgrade of core system package(s).
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files
(5/5) Checking which packages need to be rebuilt

**sudo mkinitcpio -P**
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.6-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.6-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files

you run this from TTY I think? so if GNOME is not running there is no notification daemon running …

==> dkms install --no-depmod nvidia/515.48.07 -k 5.18.6-arch1-1
Error! This module/version has already been built on: 5.18.6-arch1-1
Directory /var/lib/dkms/nvidia/515.48.07/5.18.6-arch1-1/x86_64 already exists. Use the dkms remove function before trying to build again.
==> WARNING: `dkms install --no-depmod nvidia/515.48.07 -k 5.18.6-arch1-1' exited 3

says it already has the Nvidia modules built…

Could be rebuilding kernel images brings back working login already.
if not …

yay -R nvidia-dkms
yay -S nvidia-dkms

( I know dkms remove is there but this needs to add versions and stuff manually… to run commands…

are the linux-headers installed?
yay -Qs linux-headers

1 Like

Though problem, no success so far.

Yes, I have no other choice than using Alt-F2.

yay -R nvidia-dkms*

checking dependencies…

Package (1) Old Version Net Change

nvidia-dkms 515.48.07-2 -52.45 MiB

Total Removed Size: 52.45 MiB

:: Do you want to remove these packages? [Y/n] y
:: Running pre-transaction hooks…
(1/1) Remove DKMS modules
==> dkms remove nvidia/515.48.07
:: Processing package changes…
removing nvidia-dkms…
:: Running post-transaction hooks…
(1/2) Arming ConditionNeedsUpdate…
(2/2) eos-nvidia-fix.hook
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: ‘default’
→ -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.6-arch1-1
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [autodetect]
→ Running build hook: [modconf]
→ Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: ‘fallback’
→ -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.6-arch1-1
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [modconf]
→ Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

yay -S nvidia-dkms*

resolving dependencies…
looking for conflicting packages…

Package (1) New Version Net Change

extra/nvidia-dkms 515.48.07-2 52.45 MiB

Total Installed Size: 52.45 MiB

:: Proceed with installation? [Y/n] y
checking keyring…
checking package integrity…
loading package files…
checking for file conflicts…
:: Processing package changes…
installing nvidia-dkms…
:: Running post-transaction hooks…
(1/3) Arming ConditionNeedsUpdate…
(2/3) Install DKMS modules
==> dkms install --no-depmod nvidia/515.48.07 -k 5.18.6-arch1-1
Error! This module/version has already been built on: 5.18.6-arch1-1
Directory /var/lib/dkms/nvidia/515.48.07/5.18.6-arch1-1/x86_64 already exists. Use the dkms remove function before trying to build again.
==> WARNING: `dkms install --no-depmod nvidia/515.48.07 -k 5.18.6-arch1-1’ exited 3
(3/3) eos-nvidia-fix.hook
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: ‘default’
→ -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.6-arch1-1
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [autodetect]
→ Running build hook: [modconf]
→ Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: ‘fallback’
→ -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.6-arch1-1
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [modconf]
→ Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

sudo mkinitcpio -P

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: ‘default’
→ -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.6-arch1-1
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [autodetect]
→ Running build hook: [modconf]
→ Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: ‘fallback’
→ -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.6-arch1-1
→ Running build hook: [base]
→ Running build hook: [udev]
→ Running build hook: [modconf]
→ Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
→ Running build hook: [keyboard]
→ Running build hook: [keymap]
→ Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
→ Running build hook: [filesystems]
→ Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

==> dkms remove nvidia/515.48.07

Directory /var/lib/dkms/nvidia/515.48.07/5.18.6-arch1-1/x86_64 already exists. Use the dkms remove function before trying to build again.

looks somehow strange to me… why? it runs dkms remove when uninstalling…

It does work fine here with the legacy one:

sudo pacman -R nvidia-470xx-dkms
checking dependencies...

Package (1)        Old Version   Net Change

nvidia-470xx-dkms  470.129.06-1  -47,04 MiB

Total Removed Size:  47,04 MiB

:: Do you want to remove these packages? [Y/n] Y
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove --no-depmod nvidia/470.129.06 -k 5.18.6-arch1-1
==> dkms remove --no-depmod nvidia/470.129.06 -k 5.18.6-zen1-1-zen
==> depmod 5.18.6-zen1-1-zen
==> depmod 5.18.6-arch1-1
:: Processing package changes...
(1/1) removing nvidia-470xx-dkms
sudo pacman -S nvidia-470xx-dkms
resolving dependencies...
looking for conflicting packages...

Package (1)                   New Version   Net Change

kernel-lts/nvidia-470xx-dkms  470.129.06-1   47,04 MiB

Total Installed Size:  47,04 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                                   [--------------------------------------------------------] 100%
(1/1) checking package integrity                                                                 [--------------------------------------------------------] 100%
(1/1) loading package files                                                                      [--------------------------------------------------------] 100%
(1/1) checking for file conflicts                                                                [--------------------------------------------------------] 100%
:: Processing package changes...
(1/1) installing nvidia-470xx-dkms                                                               [--------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod nvidia/470.129.06 -k 5.18.6-zen1-1-zen
==> dkms install --no-depmod nvidia/470.129.06 -k 5.18.6-arch1-1
==> depmod 5.18.6-zen1-1-zen
==> depmod 5.18.6-arch1-1
1 Like

Did you try the kernel parameter ibt=0 in the default grub command line and update grub.

Yep, no change. Should I leave it in or take it back out again?

Did you try doing the stuff you did before to rebuild the kernel modules with this added?

Edit: I’m actually surprised you are having an issue as i also have a GTX1060 card. I haven’t had any issues with updates or the drivers all along. I also don’t think i have ibt=0 added either but just had another user where drivers weren’t loading and it worked? :man_shrugging:

  1. add ibt=0 and grub-mkconfig
  2. sudo mkinitcpio -P

did not help either :upside_down_face:

Make sure there is no xorg. It’s supposed to set up 20-nvidia.conf file.

https://wiki.archlinux.org/title/NVIDIA#Xorg_configuration

xorg should not be a problem since I have had no problem with that card for years either. I only happened yesterday out of a sudden and that file only contains vendor names and such stuff.

I tried to run xinit (not sure though, if this is possible from command line) and it reported

Fatal server error> no screens found

If all fails, I will have to re-install EOS :slightly_smiling_face:

To me it looks like nvidia-dkms is screwed up in a way… next I would try is to use default nvidia package:

yay -R nvidia-dkms
yay -S nvidia

I’m not saying it’s a problem. I’m just asking you to make sure you check these things. If everything is correct then you move on to the next thing it might be related to. There was an update to mesa recently also.

That worked and leaves me with Version 515.48.07 forever? EDIT: How to proceed?

:enos_flag:

2 Likes