LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-27-2018, 01:04 AM   #46
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434

Quote:
Originally Posted by narke View Post
You mean the nouveau.modset=0 parameter? It's not relevant because I had removed the nouveau*.ko when doing the test, so I did not need bother to remove the parameter as well.
I can't be certain of what the behaviour should be in this specific instance but it seems to me that when one specifies a specific choice and it cannot be found an error should be generated and I didn't see one. As I also said, I'm grasping at straws so I notice any anomalies and try to systematically remove any room for doubt so that I'm left with certainty. That's just how I troubleshoot the less than obvious.
 
Old 06-27-2018, 01:51 AM   #47
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by narke View Post
No. Do I need it?
Yes, you need it with a Intel/nvidia setup if you want to use the nvidia card for rendering. You also should specify the BusID for both cards and the drivers to use, i.e. "nvidia" and "modesetting" respectively. I have Slackware64-14.2, intelHD and GTX1060. I had to get the latest kernel (4.16.10 at the time), because the older one woudn't recognize the intel card, but otherwise it runs OK. For the record, my xorg.conf:
Code:
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia" 0 0
    Inactive "intel"
EndSection

Section "Module"
        load "modesetting"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
    Option "AccelMethod" "None"
EndSection

Section "Monitor"
        Identifier "Monitor0"
        Option "DPMS"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
    Monitor "Monitor0"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Monitor "Monitor0"
    Option "UseDisplayDevice" "None"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection
 
Old 06-27-2018, 02:35 AM   #48
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Hi Millgates,

You cards have exact same PCI ID's as mine I want to ask, in the below command:

Code:
xrandr --setprovideroutputsource modesetting NVIDIA-0
Where you get the string NVIDIA-0? Will it be same as in my case?

And, thank you for you xorg.conf, I will use it to do another try.
 
Old 06-27-2018, 03:17 AM   #49
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by narke View Post
Where you get the string NVIDIA-0? Will it be same as in my case?
It should come out of xrandr:

Code:
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1f8 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x49 cap: 0x3, Source Output, Sink Output crtcs: 3 outputs: 7 associated providers: 1 name:modesetting
That is assuming you have the nvidia driver enabled. I've had 3 or 4 laptops with this setting and the id was always NVIDIA-0 so there's a good chance it will be the same in your case.
 
Old 06-27-2018, 04:54 AM   #50
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
@millgates, Another question is, I saw you have two Screen section in your config, one use intel the other use nvidia, what does it mean?
 
Old 06-27-2018, 05:30 AM   #51
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by narke View Post
@millgates, Another question is, I saw you have two Screen section in your config, one use intel the other use nvidia, what does it mean?
To be honest, I don't really know. I think both cards need to have a screen associated with them. Some xorg.conf examples for optimus such as this one have those so I put it there. Usually, the nvidia card has no physical output and can only be connected to the screen through the intel card, so the Option "UseDisplayDevice" "None" is there to tell the X server to not expect a monitor connected to it. As for the intel device section, I'm not sure whether or not it needs to be explicitly specified, but it doesn't seem to hurt.

Last edited by millgates; 06-27-2018 at 09:07 AM. Reason: fixing the link
 
Old 06-27-2018, 07:52 AM   #52
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by millgates View Post
To be honest, I don't really know. I think both cards need to have a screen associated with them. Some xorg.conf examples for optimus such as this one have those so I put it there. Usually, the nvidia card has no physical output and can only be connected to the screen through the intel card, so the Option "UseDisplayDevice" "None" is there to tell the X server to not expect a monitor connected to it. As for the intel device section, I'm not sure whether or not it needs to be explicitly specified, but it doesn't seem to hurt.
Good to know this!
 
Old 06-27-2018, 08:23 AM   #53
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
@millgates,

I basically copied your xorg.conf and the xrandr command lines, still cannot start X with the nvidia driver, the screen simply halt with a white cursor stay in the upper left corner forever. Attached is the log.
Attached Files
File Type: log Xorg.0.log (35.9 KB, 10 views)
 
Old 06-27-2018, 09:06 AM   #54
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Can you give the output of xrandr --listproviders while the X server is running?
(you can either swith to a tty with ctrl+alt+F1 and run
Code:
DISPLAY=:0.0 xrandr --listproviders
or put the command in the .xinitrc startup script. You are using runlevel 3 and startx, right? Did you put the commands I mentioned earlier to your .xinitrc? They should go right before the window manager is started. Which WM/DE are you using?
 
Old 06-27-2018, 10:39 AM   #55
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273
Quote:
Originally Posted by enorbet View Post
.....makes me suspect 4.17.1 or even Xorg's reaction to the kernel........
The OP's setup may introduce different problems, but, FWIW, I have not had any problems with the DUSK-4.17.1, 4.17.2 and 4.17.3 kernels, xorg-1.20.0, and the Nvidia-390.67 driver.

Last edited by cwizardone; 06-27-2018 at 10:48 AM.
 
Old 06-27-2018, 10:48 AM   #56
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Looking at your Xorg.0.log, it seems that your xserver loads module intel for your intel card while it should be loading modesetting instead. Are you sure your kernel is built with KMS suppport?
 
1 members found this post helpful.
Old 06-27-2018, 11:07 AM   #57
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by millgates View Post
Looking at your Xorg.0.log, it seems that your xserver loads module intel for your intel card while it should be loading modesetting instead. Are you sure your kernel is built with KMS suppport?
My X server can only use intel driver for the i915 intel card. Days before I tested and found if I use modesetting driver, the X cannot started. How can I know whether my kernel already with KMS enabled? (I guess it is, because when the system boot up, the font at some stage getting very small and the console resolution switched to a higher one)
 
Old 06-27-2018, 11:57 AM   #58
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by millgates View Post
Can you give the output of xrandr --listproviders while the X server is running?
(you can either swith to a tty with ctrl+alt+F1 and run
Code:
DISPLAY=:0.0 xrandr --listproviders
or put the command in the .xinitrc startup script. You are using runlevel 3 and startx, right? Did you put the commands I mentioned earlier to your .xinitrc? They should go right before the window manager is started. Which WM/DE are you using?
Code:
Providers: number : 2
Provider 0: id: 0x1f1 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-0
Provider 1: id: 0x46 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel
BTW: xrandr commands were put in .xinitrc just before 'startkde'
 
Old 06-27-2018, 12:06 PM   #59
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by narke View Post
My X server can only use intel driver for the i915 intel card.
If you want to use the nvidia card, ithink you need to use modesetting driver for intel.

Quote:
Originally Posted by narke View Post
Days before I tested and found if I use modesetting driver, the X cannot started.
Yes, but back then you probably didn't have the required commands in your .xinitrc. I suggest you try again now, and if it fails, post the xorg.0.log again.

Quote:
Originally Posted by narke View Post
Code:
Providers: number : 2
Provider 0: id: 0x1f1 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-0
Provider 1: id: 0x46 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel
BTW: xrandr commands were put in .xinitrc just before 'startkde'
This looks good. Both cards are recognized.
 
Old 06-27-2018, 10:31 PM   #60
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by millgates View Post
This looks good. Both cards are recognized.
Except no X
 
  


Reply



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
Some games work with Nvidia proprietary driver some with nouveau driver. Why? kairen Slackware 14 10-14-2015 03:19 PM
Does the new nVidia driver actually work for anyone? YodaCows Linux - Hardware 2 04-14-2006 05:43 PM
X doesnt work with NVIDIA driver??? justinchristensen Slackware 4 12-18-2005 08:27 PM
NVIDIA driver via Suse?? Does this work?? little_penguin SUSE / openSUSE 9 08-28-2005 08:15 PM
Still not getting nvidia driver to work.. GardarS Linux - Hardware 14 06-27-2005 04:41 AM

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

All times are GMT -5. The time now is 07:44 AM.

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