Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem setting up NVIDIA Optimus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Bazsalanszky
n00b
n00b


Joined: 23 Jan 2020
Posts: 1

PostPosted: Thu Jan 23, 2020 8:16 pm    Post subject: Problem setting up NVIDIA Optimus Reply with quote

Hello there!
New Gentoo user here. I've successfully installed gentoo on my laptop a couple of weeks ago,and I'm in the process of setting it up the way I like. I've installed most of the stuff I wanted,but I have some problems configuring Xorg to work with my NVIDIA graphic card(It works fine with intel).I'm using sddm (for KDE),but when I try to run it with Xorg using the configuration file generated by the nvidia-xconfig command. When I start it with that configuration file only a black screen and a cursor appears.If I delete the xorg.conf, it works fine,but I can't use my nvidia card.

The driver seems to be loaded:
Code:

lspci -nnk | grep -i nvidia
01:00.0 3D controller [0302]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)
        Kernel driver in use: nvidia
        Kernel modules: nvidia_drm, nvidia

My Xorg log says it has some problems with sddm:
Code:

grep EE /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   212.287] (II) Initializing extension MIT-SCREEN-SAVER
[   212.806] (EE) Failed to open authorization file "/var/run/sddm/{12aa5679-58f7-4a49-97fc-591bcd367fe3}": No such file or directory


I've added these lines to my Xsetup file as
Code:

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

If I look at sddm.log it does not seem to give me any useful information about what's the problem exactly
Code:

[00:23:50.170] (II) DAEMON: Initializing...
[00:23:50.176] (II) DAEMON: Starting...
[00:23:50.176] (II) DAEMON: Logind interface found
[00:23:50.177] (II) DAEMON: Adding new display on vt 1 ...
[00:23:50.177] (II) DAEMON: Loading theme configuration from ""
[00:23:50.177] (II) DAEMON: Display server starting...
[00:23:50.178] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{ebc16495-ff12-41ab-a827-de4e5b4a55af} -background none -noreset -displayfd 17 -seat seat0 vt1
[00:23:50.879] (II) DAEMON: Setting default cursor
[00:23:50.882] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[00:23:51.959] (II) DAEMON: Display server started.
[00:23:51.959] (II) DAEMON: Socket server starting...
[00:23:51.959] (II) DAEMON: Socket server started.
[00:23:51.959] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
[00:23:51.959] (II) DAEMON: Greeter starting...
[00:23:51.960] (II) DAEMON: Adding cookie to "/var/run/sddm/{ebc16495-ff12-41ab-a827-de4e5b4a55af}"
[00:23:51.968] (II) DAEMON: Greeter session started successfully
[00:23:51.995] (II) DAEMON: Message received from greeter: Connect
[00:23:53.370] (WW) DAEMON: Auth: sddm-helper exited with 6
[00:23:53.370] (II) DAEMON: Greeter stopped.
[00:24:00.753] (WW) DAEMON: Signal received: SIGINT
[00:24:00.754] (II) DAEMON: Socket server stopping...
[00:24:00.754] (II) DAEMON: Socket server stopped.
[00:24:00.754] (II) DAEMON: Display server stopping...
[00:24:00.781] (II) DAEMON: Display server stopped.
[00:24:00.782] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"


I've added these two lines to my Xsetup file as suggested by the wiki
Code:

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

What should I do to fix this issue?

Thanks in advance.
Back to top
View user's profile Send private message
coderanger
n00b
n00b


Joined: 19 Sep 2018
Posts: 68

PostPosted: Thu Jan 23, 2020 11:08 pm    Post subject: Reply with quote

The driver must be switched accordingly prior to sddm run
Code:
eselect opengl list
eselect opengl set nvidia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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