Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia Optimus problems with setup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MatthewRock
n00b
n00b


Joined: 27 Jun 2015
Posts: 14
Location: Poland

PostPosted: Thu Aug 06, 2015 8:50 pm    Post subject: Nvidia Optimus problems with setup Reply with quote

Hello!

It's my first post in here, so hello everybody! :)
I'm newbie, so please forgive me if I am doing something very stupid or asking obvious questions, but I'm still learning things.
Anyway; I installed Gentoo on my laptop(with help from nice people on IRC), and now I stand before problem:
I can't run some programs(like the one I created myself) because of lack of Nvidia GLX. I've heard that it's because I have
Optimus laptop, and I can use modesetting to handle both cards.

However, it's not that easy, and I'm stuck. I've read Nvidia readme(not all of it; roughly three chapters), but I don't understand
much of it; it's not much of help for me.

Here's my lspci:
https://bpaste.net/show/378cd9df2805

Xorg.log when running with /etc/X11/xorg.conf:
https://bpaste.net/show/8669a460350f

Xorg.log when not running /etc/X11/xorg.conf:
https://bpaste.net/show/e449c2c79511

eselect opengl list:
https://bpaste.net/show/441d61fd64f0

My kernel .config:
https://bpaste.net/show/1260befaa129

make.conf:
https://bpaste.net/show/5c30e3ccbdb9

My opinions:

1. I would like to note that Xorg.log says that modesetting module could not be found. It worries me a little, so that's why I'm asking if everything's ok.
2. I installed many different drivers previously - because I didn't know I should set VIDEO_CARDS. I changed it, yet it looks like noveau and nv are still there...
3. I have much to learn...

When I'm running without /etc/X11/xorg.conf, I can use X11. However if I don't, it fires up, but nothing's shown(it's not working properly).
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Aug 06, 2015 10:03 pm    Post subject: Reply with quote

did you read the gentoo wiki regarding xorg-server / nvidia and optimus?
did you checked out the web for linux regarding your hardware? any config file can be reused or adapted, because the hardware is the same ...
Back to top
View user's profile Send private message
MatthewRock
n00b
n00b


Joined: 27 Jun 2015
Posts: 14
Location: Poland

PostPosted: Thu Aug 06, 2015 10:40 pm    Post subject: Reply with quote

Yes. Gentoo wiki was not as helpful as this thread, but still these didn't help me.
It looks like a lot of people struggle with these drivers. All I get is a blank screen after loading.
I tried three different tutorials modified with some configs/changes found in forum posts, and none worked so far.

Fixed the link, url tags do not require quoting of the URL. Also, removed a spurious closing tag. -- desultory
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1655
Location: United Kingdom

PostPosted: Fri Aug 07, 2015 6:55 am    Post subject: Reply with quote

MatthewRock, my laptop also has Optimus hardware and I also had trouble getting it to work, but succeeded in the end. My graphics hardware, as reported by lspci, is not so dissimilar to yours:

Code:
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)

Code:
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)

My xorg.conf file for using the NVIDIA GPU is as follows, in case it is of any help:

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "nvidia" 0 0
    Inactive       "intel"
EndSection

#Section "Files"
#EndSection

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

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

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

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "UseDisplayDevice" "none"
    SubSection     "Display"
        Depth       24
#        Modes      "nvidia-auto-select"
        Virtual     1920 1080
    EndSubSection
EndSection

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

With the advice of Gentoo user arthanis I was able to set up my installation to be able to switch between the NVIDIA GPU and the Intel IGP. In case it is of any help in your case, I have explained in detail how I did that in the following blog post: Switching between Intel and NVIDIA graphics processors on a laptop with NVIDIA Optimus hardware running Gentoo Linux.
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum