On Mon, 2015-02-02 at 23:09 +0100, Patrick Ohly wrote: > On Fri, 2015-01-30 at 15:47 +0100, Olivier Delbeke wrote: > > Thanks a lot for your support. > > > > FYI, I finally got a picture ! All I needed to do was to use the magic > > "security=none". But of course, it's not very satisfying ; it should > > work without that. Please let me know if it works better with the new > > kernel patches. > > Unfortunately it doesn't. > > Kevin, Ronan: Olivier is using the current "tizen" branch of > tizen-distro, which is essentially rev_0.9. Do you have any idea why > this worked when you tried it? > > > About the wayland-egl error message ("libEGL warning: wayland-egl: > > could not open /dev/dri/card0 (Permission denied)"), I think I > > understood what happens : > > - libwayland-egl is used by all wayland clients > > - libwayland-egl need to open /dev/dri/card0 > > - the wayland clients are run as user 'app' > > - /dev/dri/card0 is owned by group 'video' > > - user 'app' is not a member of group 'video' => denied access > > As a test, I tried to add the user "app" to group "video" (with > > "usermod -a -G video app"), but got a "PAM authentication failure". I > > don't know how to overcome this without recompiling the file system. > > You can just edit /etc/groups directly. The fix in the recipes is in > config-tizen-ivi.bb: adding the "app" user must include the "video" > group. > > Same question here: how can this have worked when rev_0.9 was released? > > I've fixed the group permissions locally; unfortunately now weston > segfaults in gl-renderer.so, with and without "security=none".
Found it. When I removed the genivi user from the input group also in my Yocto build, weston failed because it could no longer open these devices. That's because weston-launch is not suid root in my Yocto builds. Ronan, Kevin, do you remember how you achieved that in the rev_0.9 build? The Tizen .spec file has %attr(4755,root,root) %{_bindir}/weston-launch I'm not seeing anything related to that in the weston.inc or weston-extraconf.inc. Anyway, having "app" and "genivi" in the "input" and "video" group fixes these issues. There were also additional workarounds in weston-ivi-shell-extraconf.inc but I am not sure whether they are still relevant. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. _______________________________________________ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi