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-18-2016, 10:33 AM   #1
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 83

Rep: Reputation: 15
Dual monitor problem - setting primary monitor


I am running Ubuntu 15.10 on a 2012 iMac with an external Dell monitor attached and attempting to control the monitor setup with the Nvidia driver version 352.63 settings. I don't think this is relevant, but just in case, the internal monitor has 1920x1080 resolution; the external has 1680 x 1050 resolution. The X Server Nvidia settings app gives me the opportunity to select which monitor is the primary display for the x-screen, and for this I select the internal monitor. But this doesn't seem to matter; when I start up the computer it always defaults to the external monitor for initial login and the window location for any app I start up (until I move it over to the other monitor). I looked at both the xorg.conf settings and the output of xrandr -q (both attached), and the external monitor is referred to as "DP-1" and the internal as "DP-2". The xrandr output also refers to DP2 as the primary, but it isn't, at least not until I reopen the X Server Nvidia settings app after startup. The xorg.conf file, section Monitor, seems to refer to the internal monitor as "Monitor0" if I am interpreting the output correctly, and "Device0" as the nvidia graphics card in my Mac. I am not an advanced user and I don't know how to manipulate the monitor settings other than through the GUI X Server Nvidia settings, and this doesn't seem to do any good as far as making the internal monitor the primary monitor. I would really appreciate any advice as to how I can reverse this.

Incidentally, if I log out and log back in, both monitors go blank and the only way to recover is to reboot. Reboot always turns on both monitors, but with the wrong one (the external) as the primary.
Attached Files
File Type: txt xorg monitor settings.txt (2.7 KB, 17 views)
File Type: txt xrandr.txt (685 Bytes, 17 views)
 
Old 02-19-2016, 07:01 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Ubuntu I do not know, in Gentoo I simply added
Code:
xrandr --auto --output DVI-I-3 --left-of DVI-I-2
to my ~/.xinitrc.
 
1 members found this post helpful.
Old 02-20-2016, 06:00 AM   #3
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 83

Original Poster
Rep: Reputation: 15
Thanks Emerson. I want to make sure I am interpreting your xrandr command so that I can do the equivalent on my system. I think that what it means is to put whatever monitor is identified as DVI-I-3 to the left of DVI-I-2. Does the --auto part specify which monitor is the primary one? Or is it the first one listed in the command?
 
Old 02-20-2016, 06:33 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
From man xrandr, you may not need it:
Code:
       --auto For  connected  but  disabled outputs, this will enable them using their first preferred mode
              (or, something close to 96dpi if they have no preferred mode). For disconnected  but  enabled
              outputs, this will disable them.
 
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
Dual Monitor Setup with Primary On Right Zaileion Linux - Hardware 2 07-31-2015 05:23 PM
Ubuntu/GNOME dual monitor setup: Preferring the primary monitor Doc CPU Linux - Desktop 2 09-05-2011 04:58 AM
kubuntu: Setting the primary monitor when I have 2 monitors attached johnnymta Linux - Laptop and Netbook 6 08-31-2010 02:11 AM
Problem setting up Dual Monitor on FC10 sanjay.krk Linux - Desktop 1 06-17-2009 11:50 AM
Setting Primary Monitor Law1213 Linux - Hardware 1 10-10-2004 10:01 AM

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

All times are GMT -5. The time now is 12:55 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