Summary: | failed to create display when use "weston --backend=wayland-backend.so" | ||
---|---|---|---|
Product: | Wayland | Reporter: | Mark Yao <mark.yao> |
Component: | wayland | Assignee: | Wayland bug list <wayland-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | mark.yao |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Mark Yao
2015-05-21 13:32:38 UTC
Using the wayland backend of Weston means that you want to run Weston under another Wayland compositor (which could also be Weston, if you wish). If you are not running under an existing Wayland compositor, then obviously connecting to the parent compositor will fail. What are you trying to do? (In reply to Pekka Paalanen from comment #1) > Using the wayland backend of Weston means that you want to run Weston under > another Wayland compositor (which could also be Weston, if you wish). > > If you are not running under an existing Wayland compositor, then obviously > connecting to the parent compositor will fail. > > What are you trying to do? wayland is a child for other compositor? I test run weston --backend=x11-backend.so,success then open weston desktop shell: int the desktop shell: run weston --backend=wayland-backend.so, success display but get this Error: libwayland: unable to lock lockfile /run/user/0/wayland-0.lock, maybe another compositor is running Is it right? thanks for the help. BTW, if I didn't use weston, like glmark2-es2-wayland or gtk3-demo with wayland, I should run weston first? or there is another way to run an existing Wayland compositor. My trying is just want to run a destop with wayland backend. Weston's Wayland-backend is meant for running Weston under another Wayland compositor, yes. Just like the DRM backend is for running Weston on DRM/KMS, the fbdev backend is for running Weston on /dev/fb, and the X11 backend is for running Weston under an X server. (In reply to Mark Yao from comment #2) > I test run weston --backend=x11-backend.so,success > then open weston desktop shell: > int the desktop shell: run weston --backend=wayland-backend.so, > success display but get this Error: libwayland: unable to lock lockfile > /run/user/0/wayland-0.lock, maybe another compositor is running > Is it right? This is because Weston 1.6.0 IIRC did not yet automatically search for a free socket name. You can work around that by specifying --socket with an unused name on the command line. Weston 1.7.0 should find a free socket name automatically. > BTW, if I didn't use weston, like glmark2-es2-wayland or gtk3-demo with > wayland, > I should run weston first? or there is another way to run an existing > Wayland compositor. You can run whatever compositor you want. Weston is just one of them and not in any way mandatory. GNOME has one, KDE has one, E has one, and there are more. > My trying is just want to run a destop with wayland backend. I can't see why? If it works, you already have a Wayland environment running, and you don't need Weston with the wayland backend. I think you are confusing some concepts here. The wayland backend is *not* needed to get a Wayland environment running. A Wayland compositor provides a Wayland environment for its clients in any case. (In reply to Pekka Paalanen from comment #3) > Weston's Wayland-backend is meant for running Weston under another Wayland > compositor, yes. Just like the DRM backend is for running Weston on DRM/KMS, > the fbdev backend is for running Weston on /dev/fb, and the X11 backend is > for running Weston under an X server. > > (In reply to Mark Yao from comment #2) > > I test run weston --backend=x11-backend.so,success > > then open weston desktop shell: > > int the desktop shell: run weston --backend=wayland-backend.so, > > success display but get this Error: libwayland: unable to lock lockfile > > /run/user/0/wayland-0.lock, maybe another compositor is running > > Is it right? > > This is because Weston 1.6.0 IIRC did not yet automatically search for a > free socket name. You can work around that by specifying --socket with an > unused name on the command line. Weston 1.7.0 should find a free socket name > automatically. > > > BTW, if I didn't use weston, like glmark2-es2-wayland or gtk3-demo with > > wayland, > > I should run weston first? or there is another way to run an existing > > Wayland compositor. > > You can run whatever compositor you want. Weston is just one of them and not > in any way mandatory. GNOME has one, KDE has one, E has one, and there are > more. > > > My trying is just want to run a destop with wayland backend. > > I can't see why? If it works, you already have a Wayland environment > running, and you don't need Weston with the wayland backend. > > I think you are confusing some concepts here. The wayland backend is *not* > needed to get a Wayland environment running. A Wayland compositor provides a > Wayland environment for its clients in any case. Thanks, I think I get the point. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.