<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 25, 2016 at 5:42 AM, Mike Bibbings <span dir="ltr"><<a href="mailto:mike.bibbings@gmail.com" target="_blank">mike.bibbings@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 25/03/16 04:40, Andrew Potter wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi,<br>
<br>
Have followed the tutorial to get the myth-tv frontend onto a RPI3.<br>
<br>
All seems to go well until I run<br>
<br>
QT_QPA_PLATFORM=xcb\<br>
  LD_LIBRARY_PATH=$HOME/mythtv-rpi/lib\<br>
  QT_PLUGIN_PATH=$HOME/mythtv-rpi/plugins\<br>
  ~/mythtv-rpi/bin/mythfrontend -w -geometry 1920x1080 -p<br>
<br>
In response I get<br>
QXcbConnection: Could not connect to display<br>
Aborted<br>
<br>
I am using mythtv-v0.27.6-69-g41a2a8d-RPI2-jessie.tar.bz2<br>
<br>
And 2016-02-26-raspbian-jessie.zip<br>
<br>
I can see the command line on the screen. I get the same results whether<br>
issued via ssh or directly with a keyboard on the pi itself.<br>
<br>
<br>
Thanks for any help given and thanks for creating the tutorial.<br>
<br>
Andrew Potter<br>
<br>
_______________________________________________<br>
</blockquote></span>
You need to have X running i.e. boot to GUI when using xcb (XCB ("X C Binding") is an low-level API for the X window server).<br>
<br>
>From the console prompt you can type startx (this will start the X GUI) and then run the mythfrontend command from a terminal within the GUI.</blockquote><div><br></div><div>Even better... boot to terminal, then run "startx /path/to/mythfrontend"</div><div><br></div><div>This will start a X session without any window manager or other overhead... it will just run the frontend.</div><div><br></div><div>I created a script that sets the envrionment variables and runs the above command, then set that script to run automatically in my .bashrc like so (the if statements prevent it from running when you SSH in):</div><div><br></div><div><div>if [ $(tty) == /dev/tty1 ]; then</div><div>   ./xStartMyth.sh</div><div>fi</div><div><br></div><div><br></div></div></div></div></div>