#!/bin/sh # cp $0 /etc/X11/xinit/xinitrc.d/10-nvidia-randr # to get rid of the black screen these commands need to be run. # However, lightdm does not run these scripts and thus is greeter-setup-script= # needs to be set to this script, otherwise it might be hard to login ;-) /usr/bin/xrandr --setprovideroutputsource modesetting NVIDIA-0 /usr/bin/xrandr --auto