Announcement

Collapse
No announcement yet.

XWayland being under active development again

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • XWayland being under active development again

    I've just noticed that XWayland has got some recent development (last change is less than two days ago) in the "xwayland" branch. Apparently it is no longer based on Xorg 1.12 but the current Xorg 1.14.

    I've been playing with it for some time in weston running on intel GPU (with driver from xwayland branch) and it seems to work quite nicely. I applaud the wayland developers for doing a great job. It still does have some rough edges and it doesn't seem to be ready for general use though. For example, the windows using XWayland are missing minimize/maximize/close buttons and the cursor changes to the "black x" cursor when the mouse is over such windows.

    BTW: does anyone know how to change the mouse/touchpad sensitivity in weston?

  • #2
    Originally posted by stativ View Post
    I've just noticed that XWayland has got some recent development (last change is less than two days ago) in the "xwayland" branch. Apparently it is no longer based on Xorg 1.12 but the current Xorg 1.14.

    I've been playing with it for some time in weston running on intel GPU (with driver from xwayland branch) and it seems to work quite nicely. I applaud the wayland developers for doing a great job. It still does have some rough edges and it doesn't seem to be ready for general use though. For example, the windows using XWayland are missing minimize/maximize/close buttons and the cursor changes to the "black x" cursor when the mouse is over such windows.

    BTW: does anyone know how to change the mouse/touchpad sensitivity in weston?
    theres a patch for that far as i know
    will the new Xwayland run games?

    Comment


    • #3
      Originally posted by stativ View Post
      I've just noticed that XWayland has got some recent development (last change is less than two days ago) in the "xwayland" branch. Apparently it is no longer based on Xorg 1.12 but the current Xorg 1.14.

      I've been playing with it for some time in weston running on intel GPU (with driver from xwayland branch) and it seems to work quite nicely. I applaud the wayland developers for doing a great job. It still does have some rough edges and it doesn't seem to be ready for general use though. For example, the windows using XWayland are missing minimize/maximize/close buttons and the cursor changes to the "black x" cursor when the mouse is over such windows.

      BTW: does anyone know how to change the mouse/touchpad sensitivity in weston?
      you have a link to the Xwayland updates?

      Comment


      • #4
        Originally posted by LinuxGamer View Post
        theres a patch for that far as i know
        So far I had no luck finding it.

        Originally posted by LinuxGamer View Post
        will the new Xwayland run games?
        I haven't tried any, but it run glxgears. And it had higher FPS than on Xorg with compositing enabled (with compositing disabled Xorg was faster by a few FPS).

        Originally posted by LinuxGamer View Post
        you have a link to the Xwayland updates?
        Yes, it is in the original post. Here it is again: http://cgit.freedesktop.org/xorg/xse...og/?h=xwayland

        BTW: today I noticed that the x cursor is shown only when the cursor is over the window decorations, it is correct when inside the window.

        Comment


        • #5
          Originally posted by stativ View Post
          So far I had no luck finding it.



          I haven't tried any, but it run glxgears. And it had higher FPS than on Xorg with compositing enabled (with compositing disabled Xorg was faster by a few FPS).


          Yes, it is in the original post. Here it is again: http://cgit.freedesktop.org/xorg/xse...og/?h=xwayland

          BTW: today I noticed that the x cursor is shown only when the cursor is over the window decorations, it is correct when inside the window.
          Nice compositing on and its around the same speed as Xorg no compositing this looks really good what Linux you running it on Btw? i use Arch most of the time as a testbed

          Comment


          • #6
            Originally posted by LinuxGamer View Post
            Nice compositing on and its around the same speed as Xorg no compositing this looks really good what Linux you running it on Btw? i use Arch most of the time as a testbed
            Arch, too.

            Comment


            • #7
              Originally posted by stativ View Post
              Arch, too.
              Let me know if any games run well on it will you?

              Comment


              • #8
                Originally posted by LinuxGamer View Post
                Let me know if any games run well on it will you?
                Sorry, I don't play games much. Why not try it for yourself?

                Comment


                • #9
                  Originally posted by stativ View Post
                  Sorry, I don't play games much. Why not try it for yourself?
                  will do just have to wait for the week end ill post some videos if all works well

                  Comment


                  • #10
                    Originally posted by stativ View Post
                    I've been playing with it for some time in weston running on intel GPU (with driver from xwayland branch)
                    Seriously, how do you guys do this? It hasn't compiled for me in weeks.

                    xserver with the xwayland branch compiles normally.
                    xf86-video-intel with the xwayland branch:

                    Code:
                    sna_driver.c:434:2: error: implicit declaration of function ‘hosted’ [-Werror=implicit-function-declaration]
                      if (hosted() && (sna->flags & SNA_IS_HOSTED) == 0) {
                      ^
                    sna_driver.c:434:2: warning: nested extern declaration of ‘hosted’ [-Wnested-externs]
                    cc1: some warnings being treated as errors
                    With --disable-sna:
                    Code:
                    intel_dri.c:1641:7: error: ‘xorgWayland’ undeclared (first use in this function)
                      if (!xorgWayland) {
                           ^
                    (note: In ./src/intel_driver.h: there is #define hosted() (xorgWayland))

                    Comment


                    • #11
                      Originally posted by ChrisXY View Post
                      Seriously, how do you guys do this? It hasn't compiled for me in weeks.
                      If you are on Arch, you can use these PKGBUILDS:
                      http://pastebin.com/qMWuF2Sx
                      http://pastebin.com/GNrp14ZA
                      They should work fine.

                      Comment


                      • #12
                        Originally posted by LinuxGamer View Post
                        Let me know if any games run well on it will you?
                        It's not a game, but I tested glmark2.

                        Since most glmark2 benchmarks are very high fps, I only compare the terrain test at fullscreen to have a <60 fps benchmark, that can be used to deduce game's performance.

                        Weston: 51 fps
                        Bare X: 47 fps
                        Xwayland: 44 fps

                        On Weston (with a recent bug fix), compositing is bypassed since the application is fullscreen and opaque: The buffer sent by the application is directly used for the framebuffer.

                        I expected the performance to be the same on X, because I thought it would bypass compositing too.

                        On Xwayland, the surface is fullscreen and then the buffer sent by Xwayland is directly used for the framebuffer. I do not understand really why the performance is lower. Since I saw there is problem with vsync or vblank (glxgears runs at 60fps on bare X, but 18000 fps or more on Xwayland), that may cause the performance hit. I expect this to be solved when people will use Xwayland.

                        My tests were done with the last xwayland and xf86-video-intel on an intel hd4000.

                        Comment


                        • #13
                          Originally posted by stativ View Post
                          If you are on Arch, you can use these PKGBUILDS:
                          http://pastebin.com/qMWuF2Sx
                          http://pastebin.com/GNrp14ZA
                          They should work fine.
                          Thanks, I added a few flags to the xserver and it compiled. The previous xwayland-1.12 didn't require that I think.

                          I'm trying to install it to /opt/xwayland and got it almost working by creating a xorg.conf that sets the ModulePath "/opt/xwayland/lib/xorg/modules" and adding a few configure flags like --prefix=/opt/xwayland --with-serverconfig-path=/opt/xwayland/etc --with-module-dir=/opt/xwayland/lib/xorg/modules but I haven't been able to get those two correct:
                          Using config directory: "/etc/X11/xorg.conf.d"
                          Using system config directory "/usr/share/X11/xorg.conf.d"

                          There's always this when running weston in X:
                          (II) xfree86: Adding drm device (/dev/dri/card0)
                          [334133.684] setversion 1.4 failed: Permission denied
                          But I don't think it's a problem...

                          Then it loads /opt/xwayland/lib/xorg/modules/extensions/libxwayland.so /opt/xwayland/lib/xorg/modules/extensions/libglx.so and /opt/xwayland/lib/xorg/modules/drivers/intel_drv.so nicely.

                          And then it's over with:
                          (EE) Screen 0 deleted because of no matching config section.
                          (II) UnloadModule: "intel"
                          (EE) Device(s) detected, but none match those in the config file.


                          They really ought to make setting up xwayland easier.

                          Comment


                          • #14
                            Originally posted by mannerov View Post
                            I expected the performance to be the same on X, because I thought it would bypass compositing too.

                            On Xwayland, the surface is fullscreen and then the buffer sent by Xwayland is directly used for the framebuffer.
                            I have an update about this,
                            Since there isn't sync support right now, XWayland doesn't bypass X compositing (whereas the applications could because they are fullscreen).
                            There is a copy and that explains the lower performance than on bare X.

                            The way to avoid the copy would be reenabled, when sync to the frame Wayland display is implemented. (and then performance would be the same than on X).

                            Comment


                            • #15
                              Originally posted by mannerov View Post
                              I have an update about this,
                              Since there isn't sync support right now, XWayland doesn't bypass X compositing (whereas the applications could because they are fullscreen).
                              There is a copy and that explains the lower performance than on bare X.

                              The way to avoid the copy would be reenabled, when sync to the frame Wayland display is implemented. (and then performance would be the same than on X).
                              we may end up getting better performance then Xorg using Xwayland once its all said and done

                              Comment

                              Working...
                              X