Two screens are connected to the GTX1060: Monitor@DP-2 and TV@HDMI-0.
Problem
The screen configuration seems to default to HDMI as primary screen during reboot. Even after configuring the setup in Settings > Displays it resets with every reboot.
Login screen and desktop are all displayed on the TV while the monitor does not receive a signal at all.
What I want
The Monitor should be considered primary screen and the TV should be ignored regardless of the last sessions configuration.
Basically the following: xrandr --output HDMI-0 --off
and xrandr --output DP-2 --mode 2560x1080 --rate 144.00
.
Using shell scripts I can change the output automatically, but only after logging in (eg startup apps). How can I achieve this config before/during the login screen?
Additional Info
I use a python script that changes audio and video outputs to HDMI, so I can play games on the TV. Reverting the outputs to DP-2 and USBAudio works fine as well.
systemctl
service fails as randr
/X-Server are not ready yet(?). Adding After=display-manager.service
did not work either.