the current situation and hardware setup
I work with 6 monitors. This is becuase i like to work sitting and standing with in both positions having a read, program and result screen.
It is wonderfull with the i3 desktop.
To run these monitors i have an amd and nvidia gpu.
It all works fine using the xorg server.
But becuase i dont use all the monitors at the same time i use an xrandr script to configure the setup.
Ubuntu 20.04.2 LTS
Display manager: gdm3
Window system: X11
Config xrandr
Main question 1
How can i configure the the display settings before logging in as a user?
I only want to use one specific monitor while booting. Please look below for what i've been trying.
Main question 2
After logging in as a user the screen layout is a mess. It should be running ~/.xprofile while booting?
Then after manually executing ./home/*user*/.xprofile or ~/.xprofile in commandline the screen layout is exactly how it should!
To make sure the whole setup works i had all monitors enabled in this script.
But having a monitor turned off (powerwise) xrandr cuases an error.
This error disables the whole system's functionality. So i can't even use the mouse or keyboard only after a minute waiting.
Code: Select all
Error found when loading /home/*user*/.xprofile
xrandr: cannot find mode 1920 x 1080
xrandr: cannot find mode 1920 x 1080
As a result the session will not be configured correctly.
You should fix the problem as soon as feasible
There must be a .xprofile setting available?
Main question 3
While having all screens turned on and enabled having the right configuration some of them are teared. It is as if the signal doesnt work. Just snowy like a 1980's tv.
It is as if my pc doesnt have enough performance, which is not the case. My gpus should easily run these resolutions.
Could this be an x server or xrandr problem?
Sub question 1
How does the xrandr commands work? For example:
If i hava a bash script as such:
Code: Select all
#! /bin/sh
xrandr -- output DisplayPort - 1 -- primary -- mode 1920x1080 -- pos 1920 x 1080 -- rotate normal
xrandr -- output DisplayPort - 2 -- mode 1920x1080 -- pos 1920 x 1080 -- rotate normal
xrandr -- output DisplayPort - 3 -- mode 1920x1080 -- pos 1920 x 1080 -- rotate normal
xrandr -- output DisplayPort - 4 -- mode 1920x1080 -- pos 1920 x 1080 -- rotate normal
Are Monitors with the same name overwritten? I tried to experiment to change position but no difference:
Code: Select all
xrandr -- output DisplayPort - 1 -- primary -- mode 1920x1080 -- rotate normal
the stuff i've tried
** The files ive tried to modify to know when changes are implemented:
Code: Select all
/etc/X11/xorg.conf
/etc/X11/xinit/xinitrc
/etc/X11/Xsession.d
/etc/X11/Xsession.d/99x11-common_start
/etc/X11/Xsession.d/45custom_xrandr_setting
/etc/X11/Xsession.options
tried
to print and save the settings in a file: DId not work
Code: Select all
sudo service gdm3 stop && sudo X -configure > ~/Desktop/xorg.conf && sudo service gdm3 start
tried
to print and save the settings in a file: DId not work
Code: Select all
sudo service gdm3 stop && sudo X -configure > ~/Desktop/xorg.conf && sudo service gdm3 start
When starting arandr and opening arandrs "files" in its gui it shows this file.
Which could mean the default startup file.
But unable to modify this file, even with root permissions. The file wasnt even visable with ls command!?
Code: Select all
/root/.screenlayout
GDM3
Code: Select all
vim ~/.config/autostart/
Code: Select all
sudo vim /etc/gdm3
/etc/X11/Xsession.d/45custom_xrandr_setting
/etc/X11/Xsession.options
unable to:
When starting arandr and opening files it shows this file. Which could mean the default startup file
Code: Select all
sudo vim /root/.screenlayout
GDM3
Code: Select all
vim ~/.config/autostart/
Code: Select all
sudo vim /etc/gdm3/custom.conf
sudo vim /etc/gdm3/Xsession
sudo vim /etc/gdm3/Init/Default
sudo vim /etc/gdm3/custom.conf
xrandr
Code: Select all
~/.xprofile
~/.config/monitors.xml
~/.screenlayout/view1.sh
Code: Select all
xrander -v
xrander -Q
Arandr
current state read when executing arandr command
only uses *.sh files