Nvidia/Intel Graphics, boots to black screen with text

Hello,
I know this has been a topic that has been asked a lot, and I’ve read my fair share of topic here on the forum on the subject.
My problem right now:
I tried a few things that were suggested, and now I’m booting to a black screen with only /dev/sda2: clean and the rest of that line.
(I’ve managed to recover from this state before, but I’ve made another change, and now I’m stuck here)

My original problem, and how I got to this stage:
I tried to get the Nvidia driver to always use the 960 and not the Intel graphics.

What I tried to get back to desktop:

  1. removed all drivers
  2. reinstalled both nonfree and when that did not work also the free ones.
  3. read all the logs that are required when posting a new topic to search for the cause (could not capture them easily from this state)
  4. deleted/edited some conf files that were recommended on similar topics. (can look at history to find out the exact ones)

I have 2 questions

  1. what’s the best way to get back to the desktop?
  2. once I’m back there, what the best way to make sure a certain program always uses the Nvidia GPU?

Thanks

the best way now is to boot into manjaro usb, connect to internet, and chroot:
sudo manjaro-chroot -a
then provide output from:
inxi -G
mhwd -l && mhwd -li
pacman -Qs nvidia
pacman -Qs optimus
find /etc/X11/ -name "*.conf"

Thanks, will do that the first chance I get.
The weird thing is, I somehow managed to get sound working (unintentionally) so when I reboot from the terminal it plays the sound for power off.

1 Like
12Graphics:
  12Device-1 Intel HD Graphics 530 12driver i915 12v kernel
  12Device-2 NVIDIA GM107M [GeForce GTX 960M] 12driver nouveau 12v kernel
  12Display 12server X.org 12v 1.21.1.4 12driver 12X 12loaded nvidia 12gpu i915 12resolution 1920x1080
  12Message GL data unavailable for root.


0000:02:00.0 (0302:10de:139b) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.12.18               false            PCI
          video-nvidia            2021.12.18               false            PCI
    video-nvidia-470xx            2021.12.18               false            PCI
    video-nvidia-390xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:04:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


> 0000:00:02.0 (0300:8086:191b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!




pacman -Qs nvidia
local/egl-wayland 2:1.1.10-1
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 515.57-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 515.57-1
    NVIDIA NV-CONTROL X extension
local/linux510-nvidia 515.57-6 (linux510-extramodules)
    NVIDIA drivers for linux
local/linux515-nvidia 515.57-6 (linux515-extramodules)
    NVIDIA drivers for linux
local/linux517-nvidia 515.57-1 (linux517-extramodules)
    NVIDIA drivers for linux
local/mhwd-nvidia 515.57-1
    MHWD module-ids for nvidia 515.57
local/mhwd-nvidia-390xx 390.151-2
    MHWD module-ids for nvidia 390.151
local/mhwd-nvidia-470xx 470.129.06-1
    MHWD module-ids for nvidia 470.129.06
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-utils 515.57-1
    NVIDIA drivers utilities



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

ok so first try removing this:
sudo rm /etc/X11/mhwd.d/nvidia.conf
sudo rm /etc/X11/xorg.conf.d/20-nvidia.conf
systemctl reboot
you can do this from tty - ctrl+alt+f2 no need to enter chroot again

Thanks, that got me back to the desktop, now what’s the safest way to force an application to run on the Nvidia GPU and not the Intel one?

with prime-run command for example:
prime-run minecraft
you can add this prime-run command into the application you want to use the nvidia so that you dont have to run it every time …
give me an example of an application you want to run with nvidia

1 Like

Thanks! That did the trick, I edited the program command to include prime-run.
Will update this topic in the next couple of days if this did not stick for some reason.

Thanks again!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.