I am trying to figure out how to properly do this on solus. I have an amd/nvidia hybrid laptop, so all the traditional intel/nvidia switching options do not work. Unless someone has gone a head and added support for the forked version for solus. I havent seen or read anything about that. So I am stuck configuring it manually.
What I have done so far is add the line Option "PrimaryGPU" "yes"
to the output class sections in the 10-nvidia.conf
. I then created a display setup script for lightdm at the following location /usr/share/lightdm/display_setup.sh
The contents are
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
I then edited /usr/share/lightdm/lightdm.conf,d/10_solus_default.conf
under seat I uncommented the display-setup-script and edited it this way
display-setup-script=/usr/share/lightdm/display_setup.sh
This gets me a black screen on boot. These are the things I have been able to search and find on various forums and the arch wiki. I feel that there may be a clash with the display-setup-script part. I feel that is due to the 99-ldm.conf that contains the following.
[Seat:*]
display-setup-script=/usr/bin/ldm-session-init
Is there any way I can set this up to work with just the nvidia gpu with out having to use prime render offload. Can you edit the the ldm-session-init to allow for using just the nvidia gpu?