LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06:29 AM   #1
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
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 06:46 AM.
 
Old 02-15-2021, 06:52 AM   #2
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
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, 04:40 PM   #3
obobskivich
Member
 
Registered: Jun 2020
Posts: 601

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, 05:13 PM   #4
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
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, 05:24 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,671

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, 07:29 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,905
Blog Entries: 1

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
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



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 02:14 PM
two video cards two monitors? sicone Linux - Hardware 2 08-26-2004 12:06 PM
two monitors / two cfx-cards Espique Fedora 1 05-20-2004 01:20 AM
Two Video Cards...Two Monitors ==> :S VIP3R Linux - Hardware 5 03-16-2003 03:47 PM
Two monitors, two terminals? Dave Skywatcher Linux - General 3 03-07-2003 02:17 PM

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

All times are GMT -5. The time now is 03:27 AM.

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