Problem with nvidia-installer-dkms on hybrid graphics booting to black screen

Correct, but only if Nvidia driver is installed of course.

For dedicated graphics only, one has the option to switch Intel off in the bios, but need to black list nouveau. This works for me:

Then the alternative is to install optimus-manager and switch back and forth between Intel or Nvidia card on laptop. When it works it is ok, but graphics can be glitchy.

Thanks for clarifying. Then the install bug is related to the timeout. Because I have no problem installing these packages post install.

Ok, do you mean I should remove my Nvidia driver, reinstall via nvidia-installer-dkms and post output before reboot?

For testing mode would I first need to remove Nvidia I assume then test the installer script.

For the firmware I am not sure what you mean. In bios it is set to hybrid per default.

no need to remove anything before run nvidia-installer-dkms -t as it is a test only not installing anythingā€¦ And checking /etc/default/grub.cfg is also not related to any real change you need to doā€¦ as it will be changed if nvidia-installer-dkms was running with success before.

yes I seeā€¦ i do not like to use Bios for UEFI and feel more comfortable using firmware instead ā€¦ because Bios is the name that is used for legacy MBR systems :wink:

1 Like

My bet. I am pretty sure I use UEFI, itā€™s a recent system. No MBR for me!

I just call bios everything that happens before grub. Old bad habits.

nvidia-installer-dkms -t
$ nvidia-installer-dkms -t
2021-11-13 07:50:58 [INFO]: EndeavourOS Nvidia Installer v3.3.11
2021-11-13 07:50:58 [INFO]: All logs will be stored in /tmp/nvidia-installer.log
2021-11-13 07:50:58 [INFO]: Running the installer in testing mode...
2021-11-13 07:50:58 [INFO]: Updating Nvidia graphics cards database...
2021-11-13 07:50:58 [INFO]: nvidia-installer-update-db --tmpdb
2021-11-13 07:51:06 [INFO]: Installing nvidia-dkms driver...
2021-11-13 07:51:06 [INFO]: Removing conflicting packages...
2021-11-13 07:51:06 [INFO]: pacman -Rs --noconfirm --noprogressbar --nodeps xf86-video-nouveau
2021-11-13 07:51:06 [INFO]: Downloading and installing driver packages, please wait as this may take a few minutes...
2021-11-13 07:51:06 [INFO]: pacman -Sqy --noconfirm --noprogressbar nvidia-dkms libvdpau nvidia-settings lib32-nvidia-utils lib32-libvdpau
2021-11-13 07:51:06 [INFO]: Unpatching /usr/share/applications/nvidia-settings.desktop...
2021-11-13 07:51:06 [INFO]: /usr/bin/sed -i s|Exec=optirun -b none /usr/bin/nvidia-settings -c :8|Exec=/usr/bin/nvidia-settings| /usr/share/applications/nvidia-settings.desktop
2021-11-13 07:51:06 [INFO]: Patching kernel line with nvidia-drm.modeset=1
2021-11-13 07:51:06 [INFO]: nvidia-installer-kernel-para
2021-11-13 07:51:06 [INFO]: Creating /etc/X11/xorg.conf.d/20-nvidia.conf file...
2021-11-13 07:51:06 [INFO]: Installation finished. Nothing has been modified as testing mode was ON.

  GNU nano 5.9                          grub                                    
# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="EndeavourOS"
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog nvidia-drm.modeset=1"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
                  

@joekamprad just posted these things above.

1 Like
nvidia-drm.modeset=1

i still at kernel line ā€¦ or do you edit it to be there?

pacman -Sqy --noconfirm --noprogressbar nvidia-dkms libvdpau nvidia-settings lib32-nvidia-utils lib32-libvdpau

this list could be the only issue i can seeā€¦
as installing nvidia-dkms and nvidia-settings will install dependencies only like so:

2021-11-13_16-18

i do have this (using 470xx):

pacman -Qs nvidia
[16:15:53] joekamprad :: UNGEHEUER64  āžœ  ~ Ā» pacman -Qs nvidia                                                                                                 1 ā†µ
local/egl-wayland 1:1.1.9+2+gdaab854-1
    EGLStream-based Wayland external platform
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxnvctrl-470xx 470.86-1
    NVIDIA NV-CONTROL X extension
local/nouveau-fw 325.15-1
    This package provides video & pgraph firmwares for all NVIDIA chipsets that need them
local/nvidia-470xx-dkms 470.86-2
    NVIDIA drivers - module sources
local/nvidia-470xx-settings 470.86-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-470xx-utils 470.86-2
    NVIDIA drivers utilities
local/nvidia-hook 1.0-1
    pacman hook for nvidia
local/nvidia-installer-db 2.5.1-2
    Database for the script to setup nvidia drivers in EndeavourOS
local/nvidia-installer-dkms 3.3.11-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS

we should check if nvidia-installer-dkms needs to be changed on lƶatest nvidia driversā€¦ as it could be dependencies changed or differ now to be working with optimus implementation of the driverā€¦
@manuel ?

@Zircon34 could you check output of: pacman -Qs nvidia too?

1 Like

It looks like nvidia-installer-dkms-t works fine in test mode.

Which changes would be needed?

It looks like there is nothing more needed aside from:
nvidia-dkms
nvidia-settings

.
May add

nvidia-hook
$ pacman -Qs nvidia
local/egl-wayland 1:1.1.9+2+gdaab854-1
    EGLStream-based Wayland external platform
local/lib32-libvdpau 1.4-1
    Nvidia VDPAU library
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxnvctrl 495.44-1
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 495.44-3
    NVIDIA drivers - module sources
local/nvidia-installer-db 2.5.1-2
    Database for the script to setup nvidia drivers in EndeavourOS
local/nvidia-installer-dkms 3.3.11-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-settings 495.44-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 495.44-3
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

that is what I was thinking, the only thing that changed is the updated driver to 495, previous 470 install worked with nvidia-installer script.

Note I do not use optimus-manager on this laptop, I just installed the two nvidia packages nvidia-dkms and nvidia-settings. It works and also recompiles when I have a kernel update. I am not sure what nvidia-hooks is used for, but if it is not a dependency of these two packages, I donā€™t seem to need this package to make my hybrid card system work.

Note that I did not make any changes to the grub file, but as mentioned in my first post I did pacman nvidia-installer dkms right after eos installation, then removed it since I was booting onto black screen. Then just installed the two packages I mention in previous paragraph and everything works as expected. Just making sure we are on the same page.