<div dir="ltr">Hi Rian - yes, we will eventually address the running as root issue. In fact in the touch configuration we'll soon have a nested mir setup (or mir-on-mir), where one is associated with the user session for unity8 and the other as root which the greeter will be using (as the system compositor).<div>
br,kg</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 23, 2014 at 6:48 AM, Rian Quinn <span dir="ltr"><<a href="mailto:rianquinn@gmail.com" target="_blank">rianquinn@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>I would prefer to run the server as non-root, but if I attempt to do that, it complains about not being able to open the DRM device. If I run the fingerprint demo as non-root, and the server as root, the client complains about not being able to make a connection to the server. And some of the clients I cannot get to connect at all regardless of root or not (like all of the EGL examples). 
</div><div><br></div><div>I am a little confused though. If Mir is to replace X someday, clients will have to be able to be run as non-root. The ideal solution is where both the server/compositor, and clients are running as non-root which is one of the things that X doesn’t do today. Are there plans to fixing the privilege issue (everything needing root), or am I not understanding something. 
</div><div><br></div><div>Thanks
</div><span class="HOEnZb"><font color="#888888"><div>- Rian
</div></font></span><div><div class="h5"><div><br></div><blockquote type="cite"><div>On Jan 22, 2014, at 9:35 PM, Daniel van Vugt <<a href="mailto:daniel.van.vugt@canonical.com" target="_blank">daniel.van.vugt@canonical.com</a>> wrote:
</div><div><br></div><div>Q: Does Mir support multiple monitors? If so, do you have any examples<br>or at least a starting point on how to set that up.<br>A: Yes... The API for affecting the multi-monitor config is<br>mir_connection_create_display_config<br>
mir_connection_apply_display_config<br>etc.. <a href="http://unity.ubuntu.com/mir/group__mir__toolkit.html" target="_blank">http://unity.ubuntu.com/mir/group__mir__toolkit.html</a><br>To enable basic multi-monitor testing you can:<br>
mir_demo_server_shell --display-config sidebyside<br>Mir's multi-monitor configuration is already used in detail by XMir.<br>That's how you can configure displays from X under XMir.
</div><div><br></div><div>Q: How does Mir handle surfaces with shapes cut out of them. For<br>example, a smiley face where the background is shown through the eyes<br>and mouth.<br>A: Create your surface with an alpha channel (e.g.<br>
mir_pixel_format_abgr_8888) and then any pixels with alpha==0 will be<br>transparent. As an example of a free-form shape, you can run:<br>mir_demo_client_egltriangle -b 0.0
</div><div><br></div><div>Q: Do clients need to have root access. For the fingerprint test, I<br>could not get it to run without a sudo.<br>A: Yes and no. A client can run as the same user as the server,<br>including non-root. This works perfectly for touch (Android) devices<br>
however desktop has the problem of requiring root to access input<br>devices. You can run mir server and client on desktop as non-root but<br>you won't be able to interact with it.
</div><div><br></div><div><br></div><div>On 23/01/14 01:21, Rian Quinn wrote:
</div><div><br></div><blockquote><div>Daniel,
</div><div><br></div><div>I was able to update my system, and my sources and was able to get Mir<br>up and running.
</div><div><br></div><div>I am actually really impressed with the Mir source code. We were<br>considering writing a lot of this ourselves, but I think that Mir has<br>everything that we need already.
</div><div><br></div><div>I do have a couple of questions.<br>- Does Mir support multiple monitors? If so, do you have any examples or<br>at least a starting point on how to set that up.<br>- How does Mir handle surfaces with shapes cut out of them. For example,<br>
a smiley face where the background is shown through the eyes and mouth.<br>- Do clients need to have root access. For the fingerprint test, I could<br>not get it to run without a sudo.
</div><div><br></div><div>Thanks,<br>- Rian
</div><div><br></div><div>For others interested in how I got Mir up and running, here were my steps:
</div><div><br></div><div>1:<br>Install the 3.13 linux kernel. Here is what I used for that:<br><a href="http://linuxg.net/how-to-install-kernel-3-13-rc-7-on-ubuntu-linux-mint-pear-os-and-elementary-os/" target="_blank">http://linuxg.net/how-to-install-kernel-3-13-rc-7-on-ubuntu-linux-mint-pear-os-and-elementary-os/</a>
</div><div><br></div><div>2:<br>Install libDRM from the following PPA:<br><a href="https://launchpad.net/~oibaf/+archive/graphics-drivers/" target="_blank">https://launchpad.net/~oibaf/+archive/graphics-drivers/</a>
</div><div><br></div><div>3:<br>run sudo apt-get build-dep mir
</div><div><br></div><div>4:<br>Download and compile Mir form the following:<br><a href="http://unity.ubuntu.com/mir/building_source_for_pc.html" target="_blank">http://unity.ubuntu.com/mir/building_source_for_pc.html</a>
</div><div><br></div><div>5:<br>Download and compile Mir's version of Mesa and here are the compilation<br>steps:<br><a href="http://www.mesa3d.org/install.html" target="_blank">http://www.mesa3d.org/install.html</a>
</div><div><br></div><div>I had to add --disable-dri3 to get it to compile, plus the<br>--with-egl-platform=mir,drm
</div><div><br></div><div>Once I was done with that, I could get the examples to execute.
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>On Tue, Jan 21, 2014 at 8:44 PM, Daniel van Vugt<br><<a href="mailto:daniel.van.vugt@canonical.com" target="_blank">daniel.van.vugt@canonical.com</a> <mailto:<a href="mailto:daniel.van.vugt@canonical.com" target="_blank">daniel.van.vugt@canonical.com</a>>><br>
wrote:
</div><div><br></div><div>Rian,
</div><div><br></div><div>VMware (Thomas Hellstrom) has implemented Mir support. Apparently<br>you need kernel 3.13 for the requisite graphics driver DRM changes.<br>And you need a newish Mesa.
</div><div><br></div><div>I don't think anyone has documented the particulars yet. But we<br>certainly should at least by the time regular Ubuntu (trusty?) has<br>all the prerequisites in place.
</div><div><br></div><div>- Daniel
</div><div><br></div><div><br></div><div><br></div><div>On 22/01/14 05:08, Rian Quinn wrote:
</div><div><br></div><div>Is it possible to get Mir up and running in a Virtual Machine. I<br>have<br>both VMWare and VirtualBox. Currently, under VMWare, you get an<br>error<br>about open_drm_device. Basically, I am working with Mir for some<br>
client<br>/ server development, and would like to do testing in a virtual<br>machine<br>to start.
</div><div><br></div><div>Thanks,<br>- Rian
</div><div><br></div><div><br></div><div><br></div></blockquote></blockquote></div></div></div><br>--<br>
Mir-devel mailing list<br>
<a href="mailto:Mir-devel@lists.ubuntu.com">Mir-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/mir-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/mir-devel</a><br>
<br></blockquote></div><br></div>