Nvidia drivers not working

@kamazeuci
Did you install lightdm? Did you enable it? sudo systemctl enable lightdm

lightdm came installed with my i3wm version of Endeavour OS
I tried again, this time, I did

sudo systemctl enable lightdm
sudo systemctl start lightdm
sudo lightdm

and got no visual response
Here is my xorg log

Xorg.0.log
[    48.527] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[    48.527] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[    48.527] Build Operating System: Linux Arch Linux
[    48.527] Current Operating System: Linux jose-w550s 5.10.24-1-lts #1 SMP Wed, 17 Mar 2021 16:53:52 +0000 x86_64
[    48.527] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=eab0a641-ee80-4ab9-9118-a8caf447c42c rw nvidia-drm.modeset=1 loglevel=3 nowatchdog
[    48.527] Build Date: 14 December 2020  12:10:29PM
[    48.527]  
[    48.527] Current version of pixman: 0.40.0
[    48.527] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    48.527] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    48.527] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 21 21:23:33 2021
[    48.527] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    48.527] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    48.527] Parse error on line 5 of section OutputClass in file /etc/X11/xorg.conf.d/20-nvidia.conf
	"VendorName" is not a valid keyword in this section.
[    48.527] (EE) Problem parsing the config file
[    48.527] (EE) Error parsing the config file
[    48.527] (EE) 
Fatal server error:
[    48.527] (EE) no screens found(EE) 
[    48.527] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    48.527] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    48.527] (EE) 
[    48.527] (EE) Server terminated with error (1). Closing log file.

and my lightdm.log

lightdm.log
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=972
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 977: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.01s] DEBUG: Process 977 exited with return value 1
[+0.01s] DEBUG: XServer 0: X server stopped
[+0.01s] DEBUG: Releasing VT 7
[+0.01s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.01s] DEBUG: Seat seat0: Display server stopped
[+0.01s] DEBUG: Seat seat0: Stopping session
[+0.01s] DEBUG: Seat seat0: Session stopped
[+0.01s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.01s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.01s] DEBUG: Seat seat0: Stopping
[+0.01s] DEBUG: Seat seat0: Stopped
[+0.01s] DEBUG: Required seat has stopped
[+0.01s] DEBUG: Stopping display manager
[+0.01s] DEBUG: Display manager stopped
[+0.01s] DEBUG: Stopping daemon
[+0.01s] DEBUG: Exiting with return value 1

Do you have any files in

/etc/X11/xorg.conf

Have you tried adding the following to the default grub command line?

i915.modeset=1

Nope. I don’t have that folder. This is my /etc/X11/ tree:

├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   ├── 50-systemd-user.sh
│   │   └── 80xapp-gtk3-module.sh
│   └── xserverrc
└── xorg.conf.d
    ├── 00-keyboard.conf
    └── 20-nvidia.conf

I haven’t, but each time I am trying to boot with the nvidia driver I am also blacklisting the i915 driver, so I supposed this setting would be redundant?

Are you blacklisting the i915 and you still get a black screen?

Sometimes simply changing the DM helps. Have you tried changing to sddm?

yep. to be precise, this is my configuration:

/etc/modprobe.d/blacklist.conf
install i915 /usr/bin/false
install intel_agp /usr/bin/false
blacklist nouveau
blacklist nvidiafb
blacklist rivafb
/etc/modprobe.d/nvidia-drm.conf
options nvidia_drm modeset=1

Haven’t. I think that is my next step unless somebody suggests something else.
For example, is it ok not to use Optimus? I haven’t installed Optimus because I am thinking first I want to have the nvidia GPU running alone, but maybe optimus is needed in order to run the nvidia GPU?

I’m not understanding how you are using it? If nvidia doesn’t work is it working on Intel?

I think optimus is not required.
I have a desktop machine with both nvidia card and Intel integrated gpu, and I have only blacklisted i915 and installed nvidia related drivers and utils.
Monitor is connected to the HDMI port of the nvidia card.
I have no bumblebee nor bbswitch.

yep. I am alternating between trying to boot with nvidia and booting with intel (commenting out the 20-nvidia.conf file so it doesn’t look for the nvidia GPU and commenting out the blacklisting of the i915 driver)

edit: added the fact that I also blacklist and de-blacklist the i915 driver when trying to boot nvidia and when booting with intel

then I think my next step will be trying sddm

I also have 20-nvidia.conf made by nvidia-installer-dkms. But not sure if it is required or not.

@manuel is this on a laptop or desktop?

@ricklinux

mine is a laptop. Lenovo W550s hybrid Intel HD 5500 and nVidia Quadro K620M

With both Nvidia and Intel running? On my desktop i turned the Intel off in UEFI and just run the dedicated graphics. But, anyway it’s my understanding that the 20-nvidia.conf file is created when you install nvidia drivers?

To my knowledge, only the nvidia-installer-dkms (and the old nvidia-installer) programs generate that file.

Also, I’ve had the intel gpu enabled for a long time in BIOS. Just recently I disabled it. In both cases I am using only the nvidia card (where the only monitor is attached).