<div dir="rtl"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">I have a couple of annoying problems with a dual monitor setup in Ubuntu 14.04.1:</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">
My Setup:</div><div dir="ltr"><br></div><div dir="ltr">nVidia 210 Video Adapter </div><div dir="ltr"><br></div><div dir="ltr">1 X Samsung 932BF 17" 4:3 Ratio Monitor</div><div dir="ltr"><br></div><div dir="ltr">1 X No brand 26" flat panel TV.</div>
<div dir="ltr"><br></div><div dir="ltr">The monitor is connected to the nVidia card via DVI and the TV via HDMI.</div><div dir="ltr"><br></div><div dir="ltr">I use 'disper' from the CLI to switch between displays.</div>
<div dir="ltr"><br></div><div dir="ltr">I use the Unity Desktop.</div><div dir="ltr"><br></div><div dir="ltr">The Problems:</div><div dir="ltr"><ol><li>Every time I switch, I get a black border around the windows. I have to run 'unity --replace' from the run dialog (ALT-F2) to fix this, and some times it freezes and I have to Zap Xorg.<br>
</li><li>I have to manually navigate to the sound settings to switch the Audio Output to the HDMI Sound Output.</li><li>When I reboot the computer, the display defaults to the TV (HDMI) and i have to blindly switch it back from CLI to the monitor.</li>
<li>After switching over to the TV, the resolution is always off - either too high or some of the edges get cut off the screen. The native resolution for the TV is 1366x768, but it is not on the list...</li></ol><div>What I want:</div>
<div><ul><li>I'd like to fix the monitor as the primary display at all times,<br></li><li>I'd like to be able to configure the correct native resolution.</li><li>I'd like to have a bash script to just switch both video output and sound output to HDMI. I guess it will have to envoke bothe disper and some kind of pulseaudio commands. The problem is, that the HDMI sound output does not exist until I enable the HDMI video output with disper...</li>
</ul>Googling got me in an endless out of date loop. Can anyone here provide me withe the answer?</div><div><br></div><div>I realize I'll have to run some pulseaudio command, after switching to the HDMI to identify the correct name for the HDMI (HDCP?) output name. I just don't know how.</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Amichai. <br></div><div><br></div></div></div>