<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, May 10, 2014 at 3:44 AM, Pier Luigi <span dir="ltr"><<a href="mailto:pierluigi.fiorini@gmail.com" target="_blank">pierluigi.fiorini@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2014-05-09 2:34 GMT+02:00 nerdopolis <<a href="mailto:bluescreen_avenger@verizon.net">bluescreen_avenger@verizon.net</a>>:<br>
<div><div class="h5">> On Wednesday, May 07, 2014 10:18:00 PM Pier Luigi wrote:<br>
>> Hi,<br>
>><br>
>> I'm porting sddm (QtQuick based display manager) to Wayland, it's<br>
>> still work in progress but close to be in a usable state and you can<br>
>> find it here:<br>
>><br>
>> <a href="https://github.com/plfiorini/sddm/tree/wayland" target="_blank">https://github.com/plfiorini/sddm/tree/wayland</a><br>
>><br>
>> There are some multiple screen issues specific to how sddm work<br>
>> compared to wl_fullscreen_shell but at least i've got it to display a<br>
>> window on the primary screen and that's good enough for now.<br>
>><br>
>> All is going well so far however it's still not capable of running a<br>
>> weston session.<br>
>><br>
>> I managed to acquire a new tty every time a wayland session is<br>
>> started, then I set the owner and read/write permission only to the<br>
>> user that just logged in and open an fd for the tty but weston fails<br>
>> with the following errors:<br>
>><br>
>> logind: cannot set K_OFF KB-mode on /dev/tty2: Operation not permitted<br>
>> logind: cannot setup systemd-logind helper (-1), using legacy fallback<br>
>> fatal: drm backend should be run using weston-launch binary or as root<br>
>> fatal: failed to create compositor<br>
>><br>
>> Is there something I'm missing in setting up the tty?<br>
>><br>
> Hi.<br>
><br>
> Going by what I know, weston currently has the ability to talk to systemd and not have to use weston-launch if you have systemd v209 or greater, and it gets compiled in.<br>
><br>
><br>
> It looks like Weston is attempting to do use the logind integration, and is failing.<br>
><br>
> I think with the systemd integration in Weston you don't have to change the tty owner yourself, and I don't know if it that could be the problem<br>
><br>
> And then it looks like weston is failing back to using the standard method of requiring weston-launch, and because it can't talk to weston-launch, it's exiting.<br>
><br>
> I hope this helps<br>
<br>
</div></div>Without setting owner and permission weston fails before that check<br>
with permission denied.<br>
Also without doing an OPENQRY myself from the display manager I don't<br>
see how I can know which vt XDG_VTNR and PAM_TTY need to be set to.<br>
<br>
logind is used for drm and input devices at least it seems to me at a<br>
first look at it.<br><div class="im HOEnZb"></div></blockquote><div><br></div><div>logind will acquire a XDG_VTNR=auto setting eventually.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb">
--<br>
Out of the box experience<br>
<a href="http://www.maui-project.org/" target="_blank">http://www.maui-project.org/</a><br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div></div>