Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Attempt to switch to Nvidia from integrated intel
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
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 252

PostPosted: Sat Aug 06, 2022 2:12 pm    Post subject: Attempt to switch to Nvidia from integrated intel Reply with quote

Hey!

So, I have ran in to trouble with my lean running machine.

For some reason I wanted to attempt to up the FPS on the only game i play (OpenRCT2) from my integrated graphics to a nvidia gt 730 card.
Just to see if it would make any difference.

So I configured a new kernel and followed the nvidia guide. (First i attempted nouveau but the performance was not that great)

However, Im unable to start X, and it really is not giving me much to go by.

Please see

Xorg log: https://pastebin.com/bSMYvPGV

Kernel conf: https://pastebin.com/ZMTfhj4w

dmesg: https://pastebin.com/EJzbMMHj

Any inputs?

Thanks!
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3950

PostPosted: Sat Aug 06, 2022 4:38 pm    Post subject: Reply with quote

Ok please create
an /etc/X11/xorg.conf similar to
Code:

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

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

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

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

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


replacing
Code:

   BusID "PCI:0:1:0"

with the value you will get from
Code:

lspci | grep -i 3d | awk '{ print $1 }'

and
Code:

BusID "PCI:0:2:0"

by the output of
Code:

lspci | grep -i vga | awk '{ print $1 }'


Then make sure you have
Code:

VIDEO_CARDS="intel nvidia"



in make.conf.
If not add it and rebuild @world
Then according to
https://wiki.gentoo.org/wiki/NVIDIA/Optimus
you need to use
Code:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

according to your DM
or possibly in ~/.xinitrc ?
Also a kernel parameter
Code:

nvidia-drm.modeset=1

should be nice.
_________________
:)
Back to top
View user's profile Send private message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 252

PostPosted: Sun Aug 07, 2022 10:06 am    Post subject: Reply with quote

Hey!

Thank you very much for your assistance, I really appreciate it.
However, I decided to revert back to my old setup with intel integrated graphics.
I decided it is just worth it filling the system with all the nvidia junk just for this specific task.

Furthermore, I think there might be something else causing performance issues with the Intel "card" in the first place.
On my laptop running win10 i get around 100fps in the game, with integrated intel card, about same generation, meanwhile on the desktop under Linux i get around 20fps.

So something is probably up with the Intel driver in the first place.

But that is a discussion for another thread I think.

Again, thanks!
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