LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2020, 04:08 PM   #1
jmsvl
LQ Newbie
 
Registered: Jul 2020
Distribution: Slackware64 14.2
Posts: 17

Rep: Reputation: Disabled
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.
 
Old 07-31-2020, 05:49 PM   #2
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 73

Rep: Reputation: 21
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
 
Old 07-31-2020, 05:56 PM   #3
biker_rat
Member
 
Registered: Feb 2010
Posts: 74

Rep: Reputation: 32
Your screen section points at the intel card "Device1". Maybe it should point at the nvidia "Device0"?
 
Old 07-31-2020, 07:19 PM   #4
jmsvl
LQ Newbie
 
Registered: Jul 2020
Distribution: Slackware64 14.2
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by J_W View Post
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 View Post
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)
 
Old 07-31-2020, 07:30 PM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,714

Rep: Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061
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.
 
Old 07-31-2020, 09:02 PM   #6
jmsvl
LQ Newbie
 
Registered: Jul 2020
Distribution: Slackware64 14.2
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
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

Last edited by jmsvl; 07-31-2020 at 10:15 PM.
 
Old 07-31-2020, 09:09 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,173

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
Can you try my xorg.conf i posted here?
 
Old 07-31-2020, 09:17 PM   #8
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 2,952

Rep: Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004
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.
 
Old 08-01-2020, 02:22 AM   #9
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,162

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
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.

Last edited by RadicalDreamer; 08-01-2020 at 02:23 AM.
 
Old 08-01-2020, 02:43 AM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 2,952

Rep: Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004
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?
 
Old 08-01-2020, 07:14 PM   #11
jmsvl
LQ Newbie
 
Registered: Jul 2020
Distribution: Slackware64 14.2
Posts: 17

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-03-2020, 04:14 AM   #12
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 2,952

Rep: Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004Reputation: 3004
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.
 
1 members found this post helpful.
Old 08-04-2020, 03:08 AM   #13
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,162

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
Quote:
Originally Posted by enorbet View Post
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.
 
Old 08-04-2020, 01:05 PM   #14
jmsvl
LQ Newbie
 
Registered: Jul 2020
Distribution: Slackware64 14.2
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RadicalDreamer View Post
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

Last edited by jmsvl; 08-04-2020 at 01:20 PM.
 
Old 08-04-2020, 03:18 PM   #15
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,162

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
What does
Code:
ls -l /usr/lib*/libGLX* | grep indirect
show?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Issues on Nividia updates Tony_photoplus Linux - Hardware 2 01-22-2011 05:09 PM
Toshiba Qosimo tv tuner / nvidia gefore go 6600 support - Nividia Tools trinnyg Linux - Newbie 1 04-25-2008 10:37 AM
Nividia Fx5500, Black Screen, xorg.conf lizard_king825 Linux - Hardware 1 08-29-2006 08:10 PM
Help with Modem Diver reallife Linux - Hardware 6 10-11-2003 12:27 PM
video diver The Person Linux - Software 3 06-10-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration