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?


All times are GMT -5. The time now is 01:57 AM.