LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Nvidia driver issues. Nividia diver looks to work but I only get black screen. (https://www.linuxquestions.org/questions/slackware-14/nvidia-driver-issues-nividia-diver-looks-to-work-but-i-only-get-black-screen-4175679724/)

jmsvl 07-31-2020 04:08 PM

Nvidia driver issues. Nividia diver looks to work but I only get black screen.
 
Hi everybody.
I recently got an new laptop (Asus X555UB).. Slackware works smoothly... but Im having issues with the Nvidia driver.

When I do startx, without any xorg.conf, xorg is working with no 3d acceleration.

When I startx, with a xorg.conf file "I did" (nvidia-xconfig, xorgsetup you know...) to use the nvidia drivers... the screen just got black/blank. I can change between virtual consoles (Ctrl + alt + Fx..etc).. but there is not graphics...


This is what I did:

1. I installed the driver from slackbuilds.org via sbopkg. -sbopkg -i nvidia-driver-
2. I uninstalled and blacklisted the nouveau driver. -done by xf86-video-nouveau-blacklist-
3. I checked the modules.. and everything looks fine.
4. I "wrote" an xorg.conf, even when I know is not need, to start xorg with the nvidia driver.
5. startx.. I dont use a login manager.
6. Looks like its working but only see a black screen.


There goes the files:

lspci: https://pastebin.com/4pWSgciR

#lsmod |grep nvidia: https://pastebin.com/2icXfgza

xorg.conf: https://pastebin.com/rYPdpxi9

dmesg: https://pastebin.com/FjQGDPii

Xorg's log: https://pastebin.com/GB6eN6mF



I need to fix this because I want to run blender and ..I dont want to change Slackware for something else..it just works. I cant figure out, I dont know what Im missing.

Thank you for the help.

pd: sorry for my bad english.

J_W 07-31-2020 05:49 PM

Hi,
I have a msi lapop which have intel VAG and also on borad nvidia (940MX).
I installed NVIDIA proprietary driver (NVIDIA-Linux-x86_64-450.57.run) and
created following xorg.conf.
And its works fine now.

Quote:

Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 940MX"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
EndSection

biker_rat 07-31-2020 05:56 PM

Your screen section points at the intel card "Device1". Maybe it should point at the nvidia "Device0"?

jmsvl 07-31-2020 07:19 PM

Quote:

Originally Posted by J_W (Post 6151490)
Hi,
I have a msi lapop which have intel VAG and also on borad nvidia (940MX).
I installed NVIDIA proprietary driver (NVIDIA-Linux-x86_64-450.57.run) and
created following xorg.conf.
And its works fine now.

I tryed your configuration...and it goes the same like mine...



Quote:

Originally Posted by biker_rat (Post 6151493)
Your screen section points at the intel card "Device1". Maybe it should point at the nvidia "Device0"?

yes, I have it that way because is the only way I got xorg to work (with the intel videocard). If I pointed to nvidia I got the black screen. (Where xorg looks like working..but..in black. xD)

Richard Cranium 07-31-2020 07:30 PM

Maybe you should look at your /var/log/Xorg.0.log file to see if there is anything entertaining within.

It might be nice to tell us which version of Slackware you're using as well.

jmsvl 07-31-2020 09:02 PM

Quote:

Originally Posted by Richard Cranium (Post 6151510)
Maybe you should look at your /var/log/Xorg.0.log file to see if there is anything entertaining within.

It might be nice to tell us which version of Slackware you're using as well.


Yeah, yeah I forgot. Im running Slackware 14.2 64bits (not the current, Im not a bleding edge guy)

I dropped the log here... but anyway I paste it again:

Xorg's log
https://pastebin.com/GB6eN6mF


I didn't see anything particular... Everything looks fine.. or maybe Im missing something.? o_O

willysr 07-31-2020 09:09 PM

Can you try my xorg.conf i posted here?

enorbet 07-31-2020 09:17 PM

I suggest uninstalling your current nVidia Driver and going to the nvidia website and use their search engine to find the driver appropriate for your GPU and Architecture (32 bit or 64 bit). Download it in a place you can easily find from root cli and get out of X and into Runlevel 3. There, run the "NVIDIA-foo.run" installer.

The reason for this is twofold - 1) Be certain you have the correct driver version, and 2) The run file includes checks for any conflicts and will write the grapohics entry for xorg.conf if you allow it. I'm currently running an i5 box and have the Intel GPU disabled in BIOS/UEFI. That works just great in Slackware and I have no idea how this even can happen but a test distro of Pop_OS loads i915 module despite being turned off and I had to blacklist i915. There are apparently LOTS of problems with i915 lately with various Linux kernels.

If you boot to Runlevel 3 and have Ctrl-Alt-Backspace enabled to auto logoff X, you can play around without issue until you get it right. However if you install the proprietary driver I'm betting 1st try will do the job.

FWIW I don't wish to cast any doubts on the SBO package, I've just never used it since the manufacturer's .run Installer works perfectly for me and has for almost 20 years. The only caveat is installing new kernel requires reinstalling the driver. I consider that a very small price to pay for a self-checking, runlevel 3 installer.

RadicalDreamer 08-01-2020 02:22 AM

It picks up the integrated intel graphics chipset. There is something called Optimus and Bumblebee which is used for laptops with Intel and Nvidia graphics.

https://github.com/whitewolf1776/Bumblebee-SlackBuilds
https://docs.slackware.com/howtos:ha...nvidia_optimus

I have no idea about Optimus or Bumblebee. I have an old laptop running nouveau and I'm not looking for a new one for another several years.

The SBO package is great if you follow the directions carefully. If not you'll make a mess and have to manually delete and reinstall the affected libraries. I uninstall the NVIDIA driver before updating Mesa to avoid a mess. The .run file works fine.

enorbet 08-01-2020 02:43 AM

I didn't think this model was an Optimus or Bumblebee. It just happens to have on-CPU GPU because Intel doesn't build any other kind anymore. The "F" series are those that the GPU side didn't pass the muster so Intel disables it. Then again I really don't grasp why anyone would buy a Bumblebee/Optimus. How many people need to use their notebook for many hours at a time away from a power outlet?

jmsvl 08-01-2020 07:14 PM

I usually install Slackware without any desktop environment... I regularly use openbox. ( which I install later)
However, this afternoon I decided to set up xfce4... and I don't know why... the drivers just worked.. without xorg.conf.. they just worked.

Right now Im running Xorg with the nouveau drivers... and glxgear works well..Blender. Opentoonz.. everything is working great.

I dont know what I was missing.. anyway..thank you for the help... this is the first time Im asking for help (and im working with Slackware from 2016)...I'm very impressed. the answers came very quick!

thank you so much slackers ;)

enorbet 08-03-2020 04:14 AM

Ya gotta take your hat off to the Nouveau boys. That is a very difficult job and they keep improving. That said, the job is especially difficult for any manner of 3D work. For that one really needs the proprietary nvidia driver from nvidia.

RadicalDreamer 08-04-2020 03:08 AM

Quote:

Originally Posted by enorbet (Post 6152193)
Ya gotta take your hat off to the Nouveau boys. That is a very difficult job and they keep improving. That said, the job is especially difficult for any manner of 3D work. For that one really needs the proprietary nvidia driver from nvidia.

Agreed. I suspect he is using the CPU in Blender.

jmsvl 08-04-2020 01:05 PM

Quote:

Originally Posted by RadicalDreamer (Post 6152495)
Agreed. I suspect he is using the CPU in Blender.

ok.. thinking about this.... I installed the official Nvidia driver...then...
guess what happend...

somehow Im in the starting point.. no glxgear, no blender.. black screenn etc..

looks like the glx module is missing...

Code:


# modprobe glx
#modprobe: FATAL: Module glx not found in directory /lib/modules/4.4.227

jaja..so funny...

------
EDIT:

Code:

# locate  libglxserver_nvidia
/usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so
/usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so.440.100

# modprobe libglxserver_nvidia
modprobe: FATAL: Module libglxserver_nvidia not found in directory /lib/modules/4.4.227


RadicalDreamer 08-04-2020 03:18 PM

What does
Code:

ls -l /usr/lib*/libGLX* | grep indirect
show?

enorbet 08-05-2020 02:55 AM

If you use the Official NVIDIA-foo.run installer it installs all the GL stuff it needs and checks for conflicts in the process.

RadicalDreamer 08-05-2020 03:03 AM

Quote:

Originally Posted by enorbet (Post 6152797)
If you use the Official NVIDIA-foo.run installer it installs all the GL stuff it needs and checks for conflicts in the process.

I'm wondering if he scrambled his GL* links between the open source driver/mesa and NVIDIA.

enorbet 08-05-2020 03:15 AM

Quote:

Originally Posted by RadicalDreamer (Post 6152802)
I'm wondering if he scrambled his GL* links between the open source driver/mesa and NVIDIA.

I doubt it. Upon initial boot up from a Slackware fresh install, it defaults to Nouveau and "stock" Mesa and GL, at least for me. At the first Runlevel 3 CLI, I use a prepared copy of the Nvidia .run file which ckhecks for GL and Mesa conflicts and usually asks 1) If I want it to attempt to blacklist Nouveau, and 2) If I want 32 bit compatibility installed. I don't have an estimate for how often the auto blacklist is successful, but more often than not. Besides that's not the point here. The point here is whether or not the Open Source Nouveau scrambles GL to where nVidia can't "unscramble" it. That has never been my experience in hundreds of installs.

In fact once about a year ago I saw a fairly major update to GL and Mesa so I downloaded those relevant packages, did an "upgradepkg --install-new" and then followed up by reinstalling nVidia with the .run installer. It worked perfectly.

jmsvl 08-06-2020 06:08 PM

Quote:

Originally Posted by RadicalDreamer (Post 6152672)
What does
Code:

ls -l /usr/lib*/libGLX* | grep indirect
show?

This is what I got:

Code:

ls: cannot access '/usr/lib*/libGLX*': No such file or directory
Anyway I did (again).. a fresh install... and the nouveau are working smoothly.. :)

RadicalDreamer 08-06-2020 08:03 PM

I get
Code:

bash-5.0$ ls -l /usr/lib*/libGLX* | grep indirect
lrwxrwxrwx 1 root root      23 Aug  1 02:57 /usr/lib/libGLX_indirect.so.0 -> libGLX_nvidia.so.450.57
lrwxrwxrwx 1 root root      23 Aug  1 02:57 /usr/lib64/libGLX_indirect.so.0 -> libGLX_nvidia.so.450.57

Did you try to use the .run file by itself (not using a slackbuild)?
Code:

bash-5.0# sh NVIDIA-Linux-x86_64-450.57.run
I'm confused. Sorry I couldn't help.

jmsvl 08-07-2020 02:45 PM

Quote:

Originally Posted by RadicalDreamer (Post 6153359)
I get
Code:

bash-5.0$ ls -l /usr/lib*/libGLX* | grep indirect
lrwxrwxrwx 1 root root      23 Aug  1 02:57 /usr/lib/libGLX_indirect.so.0 -> libGLX_nvidia.so.450.57
lrwxrwxrwx 1 root root      23 Aug  1 02:57 /usr/lib64/libGLX_indirect.so.0 -> libGLX_nvidia.so.450.57

Did you try to use the .run file by itself (not using a slackbuild)?
Code:

bash-5.0# sh NVIDIA-Linux-x86_64-450.57.run
I'm confused. Sorry I couldn't help.

yes I did.. but I got the same. Anyway Nouveau are working really well by now. ;)

Thank you for the help. xxoo


All times are GMT -5. The time now is 12:46 AM.