<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018 at 9:53 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 30 Oct 2018 09:16:18 -0700, you wrote:<br>
<br>
>On Tue, Oct 30, 2018 at 8:49 AM Stephen Worthington <<br>
><a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>> wrote:<br>
><br>
>> On Tue, 30 Oct 2018 07:09:46 -0700, you wrote:<br>
>><br>
>><br>
>> > Not sure why I have two instances of lightdm running<br>
>> >dad@NewMyth:~$ ps -e | grep dm<br>
>> >  825 ?        00:00:00 lightdm<br>
>> > 1096 ?        00:00:00 lightdm<br>
>><br>
>> That is normal - I am not sure either just why there are two<br>
>> instances, but if you look more closely (ps -ef | grep dm), you find<br>
>> that the second one is a child of the first one.<br>
>><br>
>> >My 750ti has three outputs, VGA-0, HDMI-0, DVI-D-0.<br>
>> >With just the two monitors hooked up my xorg.conf has this line in the<br>
>> >Screen section<br>
>> > Option         "metamodes" "VGA-0: nvidia-auto-select +0+0, HDMI-0:<br>
>> >1920x1080 +1280+0"<br>
>> ><br>
>> >I assume I could add the DVI monitor to this definition.  What I don't<br>
>> know<br>
>> >is how I can get Myth to show up on both the HDMI and DVI monitors but not<br>
>> >on the VGA monitor.<br>
>> >Googling is good at finding examples with two monitors but not so much on<br>
>> >three.<br>
>> ><br>
>> >The projector is a Panasonic PT-AX100U and it 720p native although it will<br>
>> >take other inputs.<br>
>> ><br>
>> >Allen<br>
>><br>
>> I think you will need to reconfigure things so that each of the<br>
>> outputs is a separate X display.  I have never use the "metamodes"<br>
>> option they way you have to configure two outputs, but I was surprised<br>
>> to see that it was valid to have both of them as "-0".  I would have<br>
>> thought that what that would do is to make the monitor and TV both<br>
>> have the same output, rather than have the desktop on the monitor and<br>
>> MythTV on the TV.  But it depends on how your other X config is done -<br>
>> you can set up X so that the two screens are side by side and you can<br>
>> then drag mythfrontend to the right from the monitor to the TV.  Is<br>
>> that what you are doing?  Anyway, please post the full<br>
>> /etc/X11/xorg.conf file and more detail about how your current setup<br>
>> works.<br>
>><br>
>> I think the way you should be setting it up is so that each output is<br>
>> a separate X display, say VGA on 0, TV on 1 and projector on 2.  Then<br>
>> you would be able to set up each of them in their native best<br>
>> resolution, and send the desktop to the monitor, and use the -display<br>
>> option on mythfrontend to choose which of the TV or projector it ran<br>
>> on.  The problem with doing it that way is that you can run out of GPU<br>
>> RAM running three displays at once, but I think trying for that first<br>
>> would be the best idea because it the most simple way to do what you<br>
>> want.  And I think it might help with your problem with the progress<br>
>> bar, as having each display running in native resolution is the best<br>
>> way to avoid strange problems like that.<br>
>><br>
>> To help work out the best config, it would be useful to also have the<br>
>> /var/log/Xorg.*.log file(s) after booting with all three display<br>
>> attached and switched on.  Of particular interest is the section at<br>
>> the start of the log file where it tells you what are the valid<br>
>> devices and their characteristics, starting with a section like this:<br>
>><br>
>> [    36.700] (--) NVIDIA(0): Valid display device(s) on GeForce GT 220<br>
>> at PCI:1:0:0<br>
>> [    36.700] (--) NVIDIA(0):     CRT-0<br>
>> [    36.700] (--) NVIDIA(0):     CRT-1<br>
>> [    36.700] (--) NVIDIA(0):     SONY TV (DFP-0) (boot, connected)<br>
>> [    36.700] (--) NVIDIA(0):     DFP-1<br>
>> _______________________________________________<br>
>><br>
><br>
>xorg.conf was created by nvidia-settings.  What it is essentially doing is<br>
>creating a single desktop that extends across both monitors. I can drag<br>
>things across but there is an option to declare the TV as the primary<br>
>monitor and when I do that Myth starts on that monitor.  I have been unable<br>
>to figure out how it does that.  I looked at the code for starting myth on<br>
>startup and it isn't clear.  I think I could modify the metamode line to<br>
>add the projector and place if off to the right of the TV with its native<br>
>resolution. I could then shutdown mythfrontend and launch it again targeted<br>
>to that part of the three monitor desktop that is the projector.  If myth<br>
>responds to the<br>
>--geometry=WidthxHeight+Xoffset+Yoffset command I could use that.  I don't<br>
>know if that works.  It did not work for Chrome.  Then I could create a<br>
>desktop icon that launched myth with the appropriate options. Right now<br>
>mythfrontend launches with a "--service" option<br>
><br>
>Here is what I am thinking:<br>
><br>
>Modify xorg.conf<br>
>Option         "metamodes" "VGA-0: nvidia-auto-select +0+0, HDMI-0:<br>
>1920x1080 +1280+0,DVI-D-0: 1280x720 + 3200+0"<br>
><br>
>create desktop option<br>
>mythfrontend --service --geometry=1920x1080+3200+0<br>
><br>
>The only thing is I am not at all sure this will work.  I guess I will have<br>
>to try it.<br>
><br>
>Allen<br>
<br>
Doing it that way certainly minimises the GPU RAM used.  If it runs<br>
all three displays in their native modes, then it may be all right in<br>
preventing the progress bar problem, but I have a feeling that what is<br>
actually happening is that you will be getting one huge pseudo display<br>
with portions of it mapped to each real display, and in that mapping,<br>
the output for the display is having to be re-rendered from the pseudo<br>
screen's resolution to the actual resolution.  And that will likely<br>
cause the rendering defect that is happening in the progress bar.<br>
<br>
So if you still have the progress bar problem when you try adding the<br>
third output, I think you will have to give up on that sort of setup<br>
and go for a manually constructed xorg.conf that sets up three<br>
separate displays each with native resolution.  So you would have<br>
three Section "Monitor" parts, one for each physical display, and<br>
three Section "Screen" parts, each associating one Section "Monitor"<br>
with an output and adding all the options needed for it.  Each Section<br>
"Screen" might have something like this:<br>
<br>
Option "metamodes" "VGA-0: nvidia-auto-select +0+0"<br>
<br>
Option "metamodes" "HDMI-1: nvidia-auto-select +0+0"<br>
<br>
Option "metamodes" "DVI-D-2: nvidia-auto-select +0+0"<br>
<br>
You might also need to add:<br>
<br>
Option "FlatPanelProperties" "Scaling = Native"<br>
<br>
for each of the digital outputs to help prevent rendering problems.<br>
<br>
And in Section "Device", I would recommend adding something like this:<br>
<br>
Option "DPI" "100x100"<br>
<br>
Without that, I sometimes get programs that produce windows with very<br>
small text in them, unreadable unless you are within 60 cm of the<br>
screen.  One example I had recently is the x11vnc options window.<br>
<br>
Unfortunately, manually creating an xorg.conf file can take a while -<br>
there are heaps of different options and a steep learning curve.<br>
_______________________________________________<br></blockquote><div><br></div><div>Here is xorg.conf from my Mythbuntu 8 setup.  This is probably about what you were talking about. I could probably modify it if I had to. </div><div><br></div><div>dad@myth_desktop:~$ more xorg.conf</div><div># First Screen is LCD monitor where mythweb and other applications go</div><div># Second screen is where Myth will go</div><div><br></div><div>Section "Screen"</div><div>        Identifier      "Screen0"</div><div>        Device          "Videocard0"</div><div>        Monitor         "LCDMonitor"</div><div>        Option          "TwinView"      "0"</div><div>        Option          "metamodes"     "CRT-0: 1280x1024_60 +0+0"</div><div>        Option          "AddARGBGLXVisuals"     "True"</div><div>        SubSection "Display"</div><div>                Depth   24</div><div>        EndSubSection</div><div>        Defaultdepth    24</div><div>EndSection</div><div><br></div><div>Section "Screen"</div><div>        Identifier      "Screen1"</div><div>        Device          "Videocard1"</div><div>        Monitor         "MythMonitor"</div><div>        Option          "TwinView"      "0"</div><div>        Option          "metamodes"     "DFP: 1280x720_60 +0+0"</div><div>        Option          "AddARGBGLXVisuals"     "True"</div><div>        # this next line will be ignored with the TV and the default, auto will be used</div><div>        SubSection "Display"</div><div>                Depth   24</div><div>        EndSubSection</div><div>        Defaultdepth    24</div><div>EndSection</div><div><br></div><div>Section "Device"</div><div>        Identifier      "Videocard0"</div><div>        Driver          "nvidia"</div><div>        Vendorname      "NVIDIA Corporation"</div><div>        Boardname       "GeForce 6200 LE"</div><div>        Busid           "PCI:1:0:0"</div><div>        Option          "UseEvents"     "True"</div><div>        Screen  0</div><div>EndSection</div><div><br></div><div>Section "Device"</div><div>        Identifier      "Videocard1"</div><div>        Driver          "nvidia"</div><div>        Vendorname      "NVIDIA Corporation"</div><div>        Boardname       "GeForce 6200 LE"</div><div>        Busid           "PCI:1:0:0"</div><div>        Option          "UseEvents"     "True"</div><div>        Screen  1</div><div>EndSection</div><div><br></div><div>Section "InputDevice"</div><div>        # generated from default</div><div>        Identifier      "Mouse0"</div><div>        Driver          "mouse"</div><div>        Option          "CorePointer"</div><div>        Option          "Device"        "/dev/input/mice"</div><div>        Option          "Protocol"      "auto"</div><div>        Option          "Emulate3Buttons"       "yes"</div><div>        Option          "ZAxisMapping"  "4 5"</div><div>EndSection</div><div><br></div><div>Section "InputDevice"</div><div>        Identifier      "Keyboard0"</div><div>        Driver          "kbd"</div><div>        Option          "CoreKeyboard"</div><div>        Option          "XkbRules"      "xorg"</div><div>        Option          "XkbModel"      "pc105"</div><div>        Option          "XkbLayout"     "us"</div><div>EndSection</div><div><br></div><div>Section "ServerLayout"</div><div>        Identifier      "Layout0"</div><div>  screen 0 "Screen0" 0 0</div><div>  screen 1 "Screen1" rightof "Screen0"</div><div>        Inputdevice     "Keyboard0"     "CoreKeyboard"</div><div>        Inputdevice     "Mouse0"        "CorePointer"</div><div>EndSection</div><div><br></div><div>Section "Module"</div><div>        Load            "dbe"</div><div>        Load            "extmod"</div><div>        Load            "type1"</div><div>        Load            "freetype"</div><div>        Load            "glx"</div><div>EndSection</div><div><br></div><div>Section "Monitor"</div><div>        Identifier      "MythMonitor"</div><div>        Option          "DPMS"</div><div>EndSection</div><div><br></div><div>Section "Monitor"</div><div>        Identifier      "LCDMonitor"</div><div>        Modelname       "Samsung SyncMaster"</div><div>        Horizsync       30.0    -       63.0</div><div>        Vertrefresh     56.0    -       75.0</div><div>        Option          "DPMS"</div><div>EndSection</div><div><br></div><div>Section "ServerFlags"</div><div>        Option          "Xinerama"      "0"</div><div>EndSection</div><div><br></div><div>Section "Extensions"</div><div>        Option          "Composite"     "Enable"</div><div>EndSection</div><div><br></div><div>Section "Files"</div><div>        Rgbpath         "/usr/X11R6/lib/X11/rgb"</div><div>EndSection</div><div> </div></div></div></div>