Nvidia GPU not working after fresh install

I’m a long time Xubuntu user and I’ve decided to give EndeavourOS a try as I’m setting up a new machine (Dell Precision 5570). I’ve installed EOS multiple times already without any luck. The issue is that I would like to make my dedicated GPU work. Out of a fresh install the only thing that works is the integrated GPU (as far as I understand it).

So far after a fresh install (chose the NVIDIA support iso boot option) I’ve followed all the tutorials I could find on the EndeavourOS website about using optimus-manager or optimus-switch. After installing EOS, rebooting, install optimus-manager, reboot, the system ends up to not being able to start LightDM (black screen blinking cursor). With optimus-switch same procedure the outcome is even worse. I get the black screen, but the cursor isn’t blinking, just sits there, can’t change to TTY so I guess the system got stuck.

The following inxi output is same after a fresh install or even after using one or the other nvidia-installer-dkms or nvidia-inst. I can see that the driver on the NVIDIA card shows N/A, but I don’t know why, because I’ve installed everything.

I’ve already tried to install Xubuntu on the same machine and it works perfectly. I can use prime-select nvidia to active the graphic card after installing the proprietary drivers, but I don’t want to use snaps anymore. This is why I’m looking forward to use arch with XFCE. What information do you guys need to better understand the situation I’m in?

[hag@hag-precision5570 ~]$ uname -r
5.18.7-arch1-1
inxi -Ga
[hag@hag-precision5570 ~]$ inxi -Ga
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Dell driver: i915
    v: kernel arch: Gen12.2 process: Intel 10nm built: 2021-22+ ports:
    active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1
    bus-ID: 0000:00:02.0 chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA107GLM [RTX A2000 8GB Laptop GPU] vendor: Dell
    driver: N/A alternate: nouveau, nvidia_drm, nvidia non-free: 515.xx+
    status: current (as of 2022-06) arch: Ampere process: TSMC n7 (7nm)
    built: 2020-22 bus-ID: 0000:01:00.0 chip-ID: 10de:25ba class-ID: 0302
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 3-6:3 chip-ID: 0c45:6a15 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 compositor: xfwm v: 4.16.1 driver:
    X: loaded: intel unloaded: modesetting alternate: fbdev,vesa gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.00x12.48")
    s-diag: 599mm (23.57")
  Monitor-1: eDP-1 mapped: eDP1 model: Sharp 0x1515 built: 2021
    res: 1920x1200 hz: 60 dpi: 143 gamma: 1.2 size: 340x210mm (13.39x8.27")
    diag: 396mm (15.6") ratio: 16:10 modes: 1920x1200
  OpenGL: renderer: Mesa Intel Graphics (ADL GT2) v: 4.6 Mesa 22.1.2
    direct render: Yes

Check out my answer on this post and see if that fixes the problem for you.

1 Like

Thanks for the reply. I tried that already without success. I’ve set it in GRUB, is that correct? I’ll do another fresh install and set ibt=off.

You have to add it to the default grub command line in /etc/default/grub and then update grub with

sudo grub-mkconfig -o /boot/grub/grub.cfg
3 Likes

After setting the kernel parameter ibt=off inxi -Ga actually showed driver: nvidia, but I can’t use it?! I tried things like DRI_PRIME=1 glxinfo which still showed the Intel Graphics Card being used.
So I went ahead and installed optimus-manager again with the same result, a black screen blinking cursor due to LightDM not being started.
Do I get the right without a tool to switch GPUs I can’t use the dGPU?

What does it show now?

inxi -Ga

Edit: Also can you provide a link to this command.

inxi -Faz | eos-sendlog

Here are the requested log outputs.

inxi -Faz

inxi -Ga
[hag@hag-precision5570 ~]$ inxi -Ga
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Dell driver: i915
    v: kernel arch: Gen12.2 process: Intel 10nm built: 2021-22+ ports:
    active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1
    bus-ID: 0000:00:02.0 chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA107GLM [RTX A2000 8GB Laptop GPU] vendor: Dell
    driver: nvidia v: 515.48.07 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-06) arch: Ampere process: TSMC n7 (7nm)
    built: 2020-22 bus-ID: 0000:01:00.0 chip-ID: 10de:25ba class-ID: 0302
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 3-6:3 chip-ID: 0c45:6a15 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 compositor: xfwm v: 4.16.1 driver:
    X: loaded: intel,nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.00x12.48")
    s-diag: 599mm (23.57")
  Monitor-1: eDP-1 mapped: eDP1 model: Sharp 0x1515 built: 2021
    res: 1920x1200 hz: 60 dpi: 143 gamma: 1.2 size: 340x210mm (13.39x8.27")
    diag: 396mm (15.6") ratio: 16:10 modes: 1920x1200
  OpenGL: renderer: Mesa Intel Graphics (ADL GT2) v: 4.6 Mesa 22.1.2
    direct render: Yes

hi @hag, welcome to the purple universe :enos: :enos_flag: :penguin_face: :rocketa_purple:

Ok after running nvidia-inst -p I can actually start nvidia-settings and use prime-run glxinfo for the first time and it seems to work. But how do I make the dGPU the main/primary GPU to be used by the WM without optimus-manager not working?

Not sure how it works on Xfce compared to KDE. KDE has the tray icon to facilitate switching. But anyway did you look at this?

On Xfce there is also a tray icon provided by optimus-manager-qt, but the issue is that I never get to see it. When following this tutorial https://discovery.endeavouros.com/nvidia/optimus-manager-for-nvidia/2021/03/ after rebooting I’ll end up with the black screen blinking cursor issue again. This means it couldn’t start LightDM and this only due to installing optimus-manager

All i can do is point you in the direction. I don’t have any hybrid equipment and it seems that a not all laptops work the same that have dual graphics.

  • Custom Xorg config : optimus-manager works by auto-generating a Xorg configuration file and putting it into /etc/X11/xorg.conf.d/. If you already have custom Xorg configuration files at that location or at /etc/X11/xorg.conf , it is strongly advised that you remove anything GPU-related from them to make sure that they do not interfere with the GPU switching process.
  • Nvidia-generated Xorg config : Similarly, if you have ever used the nvidia-xconfig utility or the Save to X Configuration File button in the Nvidia control panel, a Xorg config file may have been generated at /etc/X11/xorg.conf . It is highly recommended to delete it before trying to switch GPUs.
1 Like

It might be possible, although it would need Xorg (and maybe other) files with appropriate content.
Normally, on laptops, the firmware decides which will be the main GPU and is usually the non-nvidia one.

Thanks for your help. The ibt=off was a valuable hint, but I can’t make it work. Neither optimus-manager nor dGPU only, so with a heavy heart I need to go back to using Xubuntu. Hopefully, I’ll be able to use EOS in the future.