LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-15-2021, 07:29 AM   #1
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,039
Blog Entries: 3

Rep: Reputation: 134Reputation: 134
Configure two monitors


I had this setup just how I wanted

https://www.linuxquestions.org/quest...re-4175690386/

But I accidentally dragged something somewhere (I think) and I've set up the displays to pan and mirror and I cannot see how to undo this.

Under Settings -> Display I've unticked the Mirror Settings but it makes no difference.

This is how it was:
Code:
jonke@charlie:~$ xrandr | grep -w connected
DP-0 connected primary 1920x1080+1024+0 (normal left inverted right x axis y axis) 598mm x 336mm
DP-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
jonke@charlie:~$
This is how it is now:
Code:
jonke@charlie:~$ xrandr | grep -w connected
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm panning 2944x1080+0+0
DP-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 340mm x 270mm panning 2048x768+0+0 tracking 2944x1080+0+0 border 0/0/0/0
jonke@charlie:~$
I'm thinking I might need to just edit some config files, but I'm not entirely sure where and what to edit.

Any tips would be good, Mint 20 Xfce

Last edited by GPGAgent; 02-15-2021 at 07:46 AM.
 
Old 02-15-2021, 07:52 AM   #2
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,039

Original Poster
Blog Entries: 3

Rep: Reputation: 134Reputation: 134
Well I've resolved the problem, but I don't understand why - look at the attached image

All I did was to un-tick the Primary Display and un-tick Mirror Displays

And I'm back to my original config
Code:
jonke@charlie:~$ xrandr | grep -w connected
DP-0 connected 1920x1080+1024+0 (normal left inverted right x axis y axis) 598mm x 336mm
DP-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
jonke@charlie:~$
Can someone explain what setting a Primary Display does?
Attached Thumbnails
Click image for larger version

Name:	TwoScreens-1.png
Views:	14
Size:	53.4 KB
ID:	35639  
 
Old 02-15-2021, 05:40 PM   #3
obobskivich
Member
 
Registered: Jun 2020
Posts: 608

Rep: Reputation: Disabled
'Primary Display' is considered as the 'main' display - where 0,0 originates - and where applications will want to start (especially fullscreen). Everything else is relative to it - e.g. 'left of' or +1920px of, or what-have-you.

Not sure what you did/undid but yes I've seen XFCE need settings to be 'set' and then 'set again' for it to update from the GUI control panel, not sure if this is a bug or user error.
 
1 members found this post helpful.
Old 02-15-2021, 06:13 PM   #4
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,039

Original Poster
Blog Entries: 3

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by obobskivich View Post
'Primary Display' is considered as the 'main' display - where 0,0 originates - and where applications will want to start (especially fullscreen). Everything else is relative to it - e.g. 'left of' or +1920px of, or what-have-you.

Not sure what you did/undid but yes I've seen XFCE need settings to be 'set' and then 'set again' for it to update from the GUI control panel, not sure if this is a bug or user error.
That's a nice clear explanation, thanks, now do you know how I could ajust these settings without resorting to the GUI's? I'm guessing I need to know mor about X windows/Xorg/xrandr?
 
Old 02-15-2021, 06:24 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
You can put your settings into Xorg conf files, sure. I use my ~/.xinitrc instead, have added three lines into it over time, these set up my displays the way I want them.
Code:
xrandr --output HDMI1 --mode 2560x1440
xrandr --output HDMI1 --primary --below DP1 
xrandr --output HDMI2 --same-as DP1
 
Old 02-15-2021, 08:29 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,245
Blog Entries: 1

Rep: Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173
Any X startup script with xrandr will do the job. Here the "Screen Layout Editor" is arandr. In Debian I put the (one line) script in /etc/X11/Xsession.d/. The "primary" display by default hosts the panel (toolbar) at its bottom. For copy & paste purposes, the "script" used for the screenshot's configuration was:
Code:
xrandr --dpi 120 --output DP-1 --mode 2560x1440 --primary --output HDMI-2 --mode 2560x1080 --above DP-1
The -dpi option I use to make desktop text and icons both big enough to be comfortable, and visibly improved (higher effective pixel density).
Attached Thumbnails
Click image for larger version

Name:	overUnderScreen2560x1080+1440.png
Views:	11
Size:	145.4 KB
ID:	35646  
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two aplication in two different monitors casol Linux - General 1 02-04-2006 03:14 PM
two video cards two monitors? sicone Linux - Hardware 2 08-26-2004 01:06 PM
two monitors / two cfx-cards Espique Fedora 1 05-20-2004 02:20 AM
Two Video Cards...Two Monitors ==> :S VIP3R Linux - Hardware 5 03-16-2003 04:47 PM
Two monitors, two terminals? Dave Skywatcher Linux - General 3 03-07-2003 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration