Go to file
Kristian Høgsberg b049626117 Use sendmsg/recvmsg for socket I/O 2010-08-25 17:11:29 -04:00
clients Set pointer image only in response to 'target' event 2010-08-25 16:34:05 -04:00
data Add clean target for data/ so make clean works again 2010-08-18 20:45:43 -04:00
spec Add DMZ cursor theme 2010-08-16 16:43:50 -04:00
.gitignore Add DMZ cursor theme 2010-08-16 16:43:50 -04:00
70-wayland.rules Update udev rules to work with new udev 2010-06-04 22:23:53 -04:00
Makefile A few makefile/autoconf fixes 2010-08-25 13:38:40 -04:00
NOTES Drop stuff from notes that are in the spec now 2010-06-10 13:53:19 -04:00
README README: Add link to google group. 2008-11-06 10:53:03 -05:00
TODO Set pointer image only in response to 'target' event 2010-08-25 16:34:05 -04:00
compositor-drm.c Update to EGL_MESA_drm_image from mesa master 2010-08-25 10:02:20 -04:00
compositor-x11.c Update to EGL_MESA_drm_image from mesa master 2010-08-25 10:02:20 -04:00
compositor.c Set pointer image only in response to 'target' event 2010-08-25 16:34:05 -04:00
compositor.h First step towards drag and drop protocol 2010-08-18 15:27:27 -04:00
config.mk.in A few makefile/autoconf fixes 2010-08-25 13:38:40 -04:00
configure.ac Use different cursor images in the compositor 2010-08-16 16:08:12 -04:00
connection.c Use sendmsg/recvmsg for socket I/O 2010-08-25 17:11:29 -04:00
connection.h Demarshal robustness fixes 2010-08-09 14:34:11 -04:00
drm.c Update to EGL_MESA_drm_image from mesa master 2010-08-25 10:02:20 -04:00
event-loop.c Remove duplicate #define ARRAY_LENGTH 2010-08-16 16:45:36 -04:00
protocol.xml Set pointer image only in response to 'target' event 2010-08-25 16:34:05 -04:00
scanner.c First step towards drag and drop protocol 2010-08-18 15:27:27 -04:00
screenshooter.c Split native drm part of compositor out 2010-06-11 12:56:45 -04:00
wayland-client.c First step towards drag and drop protocol 2010-08-18 15:27:27 -04:00
wayland-client.h First step towards drag and drop protocol 2010-08-18 15:27:27 -04:00
wayland-client.pc.in Name libraries -client and -server for consistency 2010-08-11 08:56:13 -04:00
wayland-hash.c Import Eric Anholts hash table implementation 2010-02-26 11:42:59 -05:00
wayland-server.c First step towards drag and drop protocol 2010-08-18 15:27:27 -04:00
wayland-server.h Set pointer image only in response to 'target' event 2010-08-25 16:34:05 -04:00
wayland-server.pc.in Install libraries plus headers and add pkg-config files. 2008-12-10 13:49:28 -05:00
wayland-util.c Import Eric Anholts hash table implementation 2010-02-26 11:42:59 -05:00
wayland-util.h Introduce 'buffer' object for attaching, image cahce and cursor images 2010-08-09 14:43:33 -04:00

README

This file describes how to build and run wayland.  See NOTES for what
wayland is or maybe will be some day.  There's a google group for
wayland/eagle discussion here:

  http://groups.google.com/group/wayland-display-server

Wayland requires the eagle EGL stack available from

  git://people.freedesktop.org/~krh/eagle

and currently assumes that eagle is checked out in a sibling
directory, for example:

  ~krh/src/wayland and
  ~krh/src/eagle

Eagle should work with a recent DRI driver from mesa, but I have mesa
repo with an eagle branch here:

  git://people.freedesktop.org/~krh/mesa

which provides and experimental DRI CopyBuffer extension, that lets
wayland use the DRI driver and the hardware for implementing buffer
swaps.  Eagle needs to be compiled against the dri_interface.h from
this branch to be able to use the CopyBuffer extension.

To run wayland you currently need intel hardware, a kernel with gem
and kernel modesetting, and it is necessary to set a couple of
environment variables.  First, set LD_LIBRARY_PATH:

  export LD_LIBRARY_PATH=$PWD:$PWD/../eagle

Yes, this sucks, but libtool sucks more.  Then to let eagle pick up
the custom dri driver, set

  export EAGLE_DRIVER_PATH=$PWD/../mesa/lib

and finally set up the path to the evdev device to use as a pointer
device:

  export WAYLAND_POINTER=/dev/by-id/whatever-it's-called-event-mouse

If you haven't already, load the i915 driver with modesetting:

  modprobe i915 modeset=1

You may need to unload it first, if it's loaded already.  Also, on
Fedora, there may be a bogus /etc/modprobe.d/i915modeset preventing
the modeset paramater from reaching the module.  Nuke it.

At this point you should be able to launch wayland and a couple of
clients.  Try something like:

  ./wayland &
  ./background <some png/jpg image smaller than 1024x768> &
  ./flower &
  ./flower &
  ./flower &
  ./window &
  ./pointer &

Maybe some day there'll be a script that does all this.  Some day...

And after all this work it may still not work or even oops your
kernel.  It's very much work in progress, so be prepared.

cheers,
Kristian