So I'm running Solus on my laptop that has a Ryzen 5 4600h and an Nvidia GTX1650.
I know that my GPU is muxless because I need to do prime offloading (I edited xorg.conf as per https://us.download.nvidia.com/XFree86/Linux-x86_64/450.57/README/randr14.html) and that makes my HDMI port work, buy my laptop screen go blank. I run:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
And that make my laptop screen work.
I have made a small .sh script that runs when I log in and it works great, but I can't get it to run BEFORE login thus giving me a black login screen.
Since I'm using KDE I assumed I could just edit the Xsetup script in /usr/share/sddm/scripts/Xsetup
and add both xrandr
lines to the script but it just won't work... Here's what my Xsetup
looks like:
#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
#exec /usr/bin/ldm-session-init
(I did comment out the ldm-session-init
exec, but it changes nothing).
Anybody know what I need to do to make this work? Right now I set up autologin, but I really don't want to leave it like that.
I have successfully fixed this in Budgie (editing lightdm files) and Gnome (adding a .desktop file to gdm/greeter/autostart
), but I don't know how to fix this in sddm in KDE.