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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-15-2021, 07:29 AM
|
#1
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,039
Rep:
|
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.
|
|
|
02-15-2021, 07:52 AM
|
#2
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,039
Original Poster
Rep:
|
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?
|
|
|
02-15-2021, 05:40 PM
|
#3
|
Member
Registered: Jun 2020
Posts: 608
Rep:
|
'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.
|
02-15-2021, 06:13 PM
|
#4
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,039
Original Poster
Rep:
|
Quote:
Originally Posted by obobskivich
'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?
|
|
|
02-15-2021, 06:24 PM
|
#5
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep:
|
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
|
|
|
02-15-2021, 08:29 PM
|
#6
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,245
|
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).
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 02:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|