You are not logged in.

#1 2022-01-29 15:29:51

_112
Member
Registered: 2021-02-11
Posts: 10

Lightdm display-setup-script flicker

All this is coming from me wanting to get lightdm to display on my center monitor. Switched from lightdm-webkit2-greeter to web-greeter (JezerM fork). And now I cant use the active monitor option that comes lightdm-webkit2-greeter.

I have tried differen't scripts for display-setup-script.

Such as

xrandr --output DP-4 --auto --primary --output DP-0 --auto --right-of DP-4 --output DP-2 --auto --left-of DP-4

Even

xrandr --output DP-4 --auto --primary 

But all this just ends in all monitors flickering on and off. I have tried the /etc/X11/xorg.conf.d/52-resolution-fix.conf fix shown on the wiki to set monitors but still no avail

The only working script so far is

PRIMARY_DISPLAY='DP-4'

# Get list of connected monitors
x_out=$(xrandr -q | grep -e '\( \)connected' | awk -F' ' '{ print $1 }')

# Safety - Check if PRIMARY_DISPLAY is connected; if not, bail out of script
[[ $(grep ${PRIMARY_DISPLAY} <<< ${x_out}) ]] || exit 0

# Iterate over x_out and disable all monitors except for PRIMARY_DISPLAY
for monitor in ${x_out[@]} ; do
    if [[ ${monitor} = ${PRIMARY_DISPLAY} ]] ; then
        xrandr --output ${monitor} --primary
    else
        xrandr --output ${monitor} --off
    fi
done

But I dont want to use this as I need to enable my other 2 screens after I login
I am currently running

 nvidia-dkms 495.46-2

too. Hopefully there is a fix for this

Offline

Board footer

Powered by FluxBB