LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-12-2016, 12:10 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Separate X Screens - is this possible with Intel HD Graphics?


I have searched various Linux forums and have even searched the Xorg mailing list archives. I found a post on the latter which stated that it was not possible. The post was several years old and hopefully out of date.

I have a Dell Inspiron 3050 with Intel HD Graphics. the details are:
Code:
Intel Pentium Processor J2900 (2M Cache, up to 2.67 GHz)

00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 0703
        Flags: bus master, fast devsel, latency 0, IRQ 91
        Memory at d0000000 (32-bit, non-prefetchable) [size=4M]
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at f080 [size=8]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915

$ /sbin/lspci -nn | grep -i vga
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display [8086:0f31] (rev 0e)
I currently have CentOS 7 installed. I have setup two monitors attached to Separate X Screens on PCs with discrete video cards from Nvidia and ATI. In these cases I used the supplied utility which created the correct xorg.conf file. I have not been able to find any such utility for Intel graphics so I guess I will have to do the deed by hand.

Can anyone tell me IF this is possible and perhaps point me in the right direction towards some documentation or resources to enable me to configure my system?

TIA,

Ken
 
Old 01-12-2016, 12:47 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You can export X to other systems and display your X windows on them so it is certainly possible to have multiple X displays going. However on the server itself you only start X itself once. You can run individual X windows to other systems or use XDMCP to run a full X desktop on each.

What OS is running on the PCs? If it is MS Windows you have to install an X emulator such as Cywin with X11 installed (Cygwin is Linux that runs on top of MS Windows) or a 3rd party product designed for this such as OpenText Exceed (formerly called Hummingbird Exceed). If the PC has Linux installed you should be able to do your X windows on the console of those PCs (assuming you installed X11). You can use ssh tunneling for sending X. Look at the -x and -X options in the ssh man page.
 
Old 01-12-2016, 02:12 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks MensaWater,

What I am wishing to do is to run two monitors on one PC with dual video outputs. CentOS 7, Ubuntu Mate 15.x or Mint Mate 17.3. I am not that concerned at this point. On my machine with an Nvidia card and Ubuntu Mate I created the following xorg.conf by means of the nvidia-settings tool.
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 352.21  (buildd@lgw01-25)  Thu Jul 23 11:50:58 UTC 2015

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "XHD 15''"
    HorizSync       24.0 - 62.0
    VertRefresh     56.0 - 77.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Acer V193"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 6200"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 6200"
    BusID          "PCI:1:0:0"
    Screen          1

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "VGA-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DVI-I-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
I suspect that I could tweak this xorg.conf if I knew what to put in the Device sections (shown in red). I think I could remove the nvidia related options (shown in green). Any ideas what the appropriate Intel values would be? or where I can find them/

Thanks again,

Ken
 
Old 01-12-2016, 03:00 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I don't do the dual display thing but for my Linux workstation with Intel video my current xorg.conf has:

Code:
Section "Device"
        Identifier  "Videocard0"
        Driver      "intel"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
 
Old 01-12-2016, 03:07 PM   #5
whm1974
Member
 
Registered: Apr 2015
Posts: 142

Rep: Reputation: 28
Quote:
What I am wishing to do is to run two monitors on one PC with dual video outputs.
I don't know if that is possible with an Atom based CPU. But on modern distros you can run a display utility to set dual display mode. It doesn't have to be two separate X screens.
 
Old 01-12-2016, 03:43 PM   #6
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks again MensaWater,

I tweaked the Nvidia xorg.conf and managed to blow up X - but I do have a log file to examine for clues. I will use your input and see what happens. I have installed various distros on machines with Intel graphics. By default I never see an xorg.conf. I do find some default sort of files in /etc/X11/xorg.conf.d/ and /usr/share/X11/xorg.conf.d/.

And thanks whm1974,

Yes, I know I can run two monitors without Separate X Sceens. Both displays can have the same image - useful for a laptop connected to a projector for example - but not much else. Or I can combine the two into a single display. This is in some cases useful - I can open a window on the primary monitor and shove it aside to the secondary monitor. OK for Windoz I guess. However, if I change the workplace on the primary monitor I loose sight of what I placed on the secondary monitor. That is why I use Separate X Screens. So that both monitors act independently.

Ken
 
Old 01-12-2016, 04:06 PM   #7
whm1974
Member
 
Registered: Apr 2015
Posts: 142

Rep: Reputation: 28
I wasn't sure what you really wanted. But it does sound like separate X screens would be more suitable for your use case then one big X screen.
 
Old 01-12-2016, 04:48 PM   #8
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Yes whm1974, two independent monitors is what I have been using since I first got a dual head machine back in 2009. Ubuntu 9.10 worked, 10.04 did not and I moved to CentOS 6 which has worked fine. I have used two different Nvidia cards - most recently a Quadro K420. I also used a cheap ATI card early on as the original Nvidia card was a little flaky under Ubuntu - after a suspend/resume I would often find all of my programs which were running when I suspended were gone when I resumed.

The Dell Inspiron 3050s are sort of like the Intel NUC DVD box sized micro-micro computers. But they do have two video outputs and I have a surplus of monitors and cables. Monkey see port, monkey will plug something in

Ken
 
Old 01-14-2016, 01:21 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You can use xrandr to configure it if it is possible (or arandr, a gui layer for xrandr). I have an hp stream 11 and the HDMI out can have an independent image of what shows on the laptops LCD. I can't really do dual external as it only has one external port. You can Xdmx a few screens with additional computers and networking. Where there's a will there's a way.
 
Old 01-14-2016, 08:37 AM   #10
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Here is the latest in this continuing fiasco...

Yesterday I managed to hammer out an xorg.conf which did not cause my Mint Mate 17.3 test OS to barf at boot time. It was a combination of the Nvidia sample from my old Pentium 4 machine combined with MensaWater's example. [Sort of like MVS JCL. I only knew 4 people who could code JCL from scratch and only one who would. Everyone else just borrowed an example from some other programmer's library and modified it for their needs.]

Then it was off to the Toyota dealer to have the hand grenade (air bag inflator) replaced in the wife's car. While waiting I read the man page for xorg.conf. It seems rather straight forward except that there is little advice given as far as determining where to get the values to put in the file. Thanks again to MensaWater for his example. I used "intel" as the name of the driver instead of "nvidia".

My file looked good and contained all of the bits and pieces to invoke two separate X screens and assign one to each monitor. EXCEPT THAT IT DID NOT WORK I have one monitor with the panels, menus and desktop icons and the second is just an extension to the right to which I can drag windows.

Applying my normal Piņata approach to IT problem solving - where I put the problem in a bag, hang it from the ceiling and beat it with a stick to see what falls out... I changed the positions of the two screens in xorg.conf so that screen 0 was not to the right of screen 1. I rebooted and found no change. I changed the driver to "roger". The PC booted fine. Seems like it is ignoring xorg.conf(?) Then I added some rude remarks about xorg in the file. This time the PC barfed on bootup and brought up an error message about a syntax error when parsing xorg.conf.

It looks like xorg.conf is being read, parsed, syntax checked and ignored

Thanks Shadow_7,

I had read some about xrandr. I may have to look further into it.

As a final note... On my second one of these little PCs I have Ubuntu Mate 15.10 installed and I run it headless as a low wattage downloading machine. I access it with vncserver or x11vnc if I need access to the login screen/console.

I created accounts for the Three Stooges Moe, Larry and Curly. I setup each one with their own assigned vncserver session number and then launched each one. I am now connected to 4 screens/Deskops on the machine from the Vinagre remote desktop viewer on my CentOS machine.

Perhaps I should just fill one of the video connectors with epoxy and forget about running multi-headed

Ken
 
Old 01-14-2016, 08:43 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by MensaWater View Post
You can export X to other systems and display your X windows on them so it is certainly possible to have multiple X displays going. However on the server itself you only start X itself once. You can run individual X windows to other systems or use XDMCP to run a full X desktop on each.
For sake of truth, you can run more than on instance of X on the same machine.
 
Old 01-14-2016, 08:49 AM   #12
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by Emerson View Post
For sake of truth, you can run more than on instance of X on the same machine.
If you have a method "for the sake of truth" you might want to share it with the OP as it might help him.

What I was saying is you usually can't run things like startx multiple times as it is more related to the run level starting X for everything. I did say you can have multiple XDMCP sessions or individual X windows to multiple devices but that isn't what the OP is asking about.
 
Old 01-14-2016, 08:55 AM   #13
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
OP is better off using xrandr. Running a separate xorg instance is interesting - you can have a different WM/DE for instance, but windows cannot be dragged and dropped into another display. BTW, startx is just a script to run xinit. You can run xinit by hand more than one time.
 
Old 01-14-2016, 09:06 AM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
does the computer with the intel have duel/hybrid graphics cards. If not I don't think you can do it. The nvidia/ati computer has 2 graphic cards with different busid as indicator in your xorg.conf. For the intel computer to work will need the busid of both graphic cards and still may not work depending how the cards are tied together.
 
Old 01-14-2016, 09:08 AM   #15
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
What you're asking seems kind of vague. Ultimately, what do you want? Do you want to work with two different displays? That's a piece of cake (see attached), and I use that all the time.

Do you want to have two different workstations (or "seats") from the same PC, using the full multiuser capabilities of Linux? That's a bit trickier, but definitely possible.
https://help.ubuntu.com/community/MultiseatX
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2016-01-14 10-02-20.png
Views:	159
Size:	54.5 KB
ID:	20526  
 
  


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 monitors - separate X screens taylorkh Linux - Hardware 4 12-14-2015 11:42 PM
Want separate screens for my desktop resetreset Linux - Desktop 1 07-04-2012 04:06 PM
[SOLVED] separate x screens with nvidia SeRi@lDiE Slackware 11 04-21-2011 09:36 PM
Single graphics card, dual monitors with separate screens mattca Linux - Desktop 3 09-02-2009 06:00 PM
nVidia Separate X Screens with VMWare 07mackenzie Linux - General 3 12-06-2006 06:00 PM

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

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