nvidia drivers and xorg problems

Everything about X, Gnome, KDE, ... and everything running on it

Re: nvidia drivers and xorg problems

Postby djk44883 » 2019-08-12 11:46

There seem to be issues specifically with lightdm and nvidia driver.

Some answers insist /etc/X11/xorg.conf with a minimum https://bugs.debian.org/cgi-bin/bugrepo ... =922679#17 from this bug report. From other post, may not be limited to include light-locker.

Searching lightdm nvidia might lend some fresh clues
djk44883
 
Posts: 80
Joined: 2010-12-11 13:14

Re: nvidia drivers and xorg problems

Postby albsanrom » 2019-08-12 11:48

OK, that's it. I've solved it. You can see from lspci -nn | egrep -i "3d|display|vga" before that I actually have two graphics cards, one integrated Intel, and one dedicated NVIDIA. So I have installed this and that's it, now I'm able to use my GUI.

Actually, a quick look at (optirun) nvidia-smi:
Code: Select all
Mon Aug 12 14:28:27 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.116                Driver Version: 390.116                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 840M        Off  | 00000000:03:00.0 Off |                  N/A |
| N/A   45C    P0    N/A /  N/A |      5MiB /  2004MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      5143      G   /usr/lib/xorg/Xorg                             4MiB |
+-----------------------------------------------------------------------------+

And you can see Xorg is using nvidia for the display manager, isn't it?

The only trouble is that it isn't as automatic as in Windows, I need to use optirun to run applications with nvidia. And now I don't understand how Kali and Debian 10 do it. I'll keep investigating.
albsanrom
 
Posts: 13
Joined: 2019-02-07 18:31

Re: nvidia drivers and xorg problems

Postby djk44883 » 2019-08-12 11:59

VICTORY! I had skimmed over something, concerning OPTIUM drivers for nvidia - didn't think it relevant.

NVIDIA support has a line to add to lightdm.conf ,shell script for "switching" displays

Yes, why, "it" doesn't load intel drivers and take off from there instead? who knows.
djk44883
 
Posts: 80
Joined: 2010-12-11 13:14

Re: nvidia drivers and xorg problems

Postby albsanrom » 2019-08-12 17:16

albsanrom wrote:OK, that's it. I've solved it.

Not really.

I can get cuda with hashcat going (for instance), but everything else remains the same (I think, I hope). Runnning nvidia-settings warns me in a window:
Code: Select all
You do not appear to be using the NVIDIA X driver. Please edit your
X configuration file (just run `nvidia-xconfig` as root), and restart the
X server.

Which, of course, sends me to another host of problems I described earlier when running nvidia-xconfig.

With respect to gaming, I don't think steam is running on my nvidia. I don't know why. Also, when I go in and out of sleep mode I can't get nvidia running anymore... It's a mess!

I didn't think I wasn't using my nvidia card at all on Linux until now. Do the nouveau drivers even work? They always return errors on boot with every new installation, but I always shut them down somehow.

I don't think I'm ever going to buy NVIDIA cards in the near future. I'll have to stick this out, and game on Windows :/
albsanrom
 
Posts: 13
Joined: 2019-02-07 18:31

Re: nvidia drivers and xorg problems

Postby stevepusser » 2019-08-13 17:23

It may be too messed up by now to fix. I wish you had let us know from the very start that you had a laptop, then we would have suspected an Optimus system.

If you want to try MX Linux, which is built on top of a Stretch base, we have an Nvidia installer that detects an Optimus system and automatically sets up Bumblebee, the correct Nvidia driver, and the 32-bit libraries on 64-bit for you. Just don't choose the option to install the driver from the test repo right now, we have to fix something in that. Just stick with the driver from Stretch for now.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.48.0, QMPlay2 19.09.03, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11098
Joined: 2009-10-06 05:53

Previous

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 15 guests

fashionable