Go to file
Kristian Høgsberg 1b8b66f938 Light up multiple outputs when possible
Multihead is still a little confused, but this is a first step.
2009-09-21 16:00:17 -04:00
.gitignore Add a crazy rambling style TODO file. 2009-02-05 23:01:00 -05:00
70-wayland.rules Only tag the card0 device with seat info for now. 2009-01-26 21:37:29 -05:00
cairo-util.c Tweak theme a bit 2009-09-21 13:43:46 -04:00
cairo-util.h Put Wayland under the MIT license. 2008-12-02 15:15:01 -05:00
configure.ac Add a simple PDF viewer 2009-09-21 13:47:35 -04:00
connection.c Include the currently pressed keys in keyboard focus event. 2009-02-23 22:30:29 -05:00
connection.h Add client side demarshalling for events. 2008-12-24 19:31:58 -05:00
evdev.c Rename egl-compositor to wayland-system-compositor. 2008-12-19 13:47:53 -05:00
event-loop.c Add new event loop api for watching signals 2008-12-19 01:49:22 -05:00
flower.c Update to track the cairo_drm_device_t rename 2009-05-28 20:23:31 -04:00
gears.c Make gears track focus 2009-09-21 13:47:53 -04:00
image.c Add an image viewer client 2009-02-21 15:48:35 -05:00
Makefile.in Add a simple PDF viewer 2009-09-21 13:47:35 -04:00
NOTES Add note about how clients could embed other applications. 2008-12-04 18:40:14 -05:00
README README: Add link to google group. 2008-11-06 10:53:03 -05:00
screenshot.c Read connection events in screenshot.c 2009-02-10 14:15:44 -05:00
terminal.c terminal: trim unused headers. 2009-02-23 21:06:05 -05:00
TODO Add a crazy rambling style TODO file. 2009-02-05 23:01:00 -05:00
view.c Add a simple PDF viewer 2009-09-21 13:47:35 -04:00
wayland-client.c Implement user_data for surface 2009-09-18 17:05:50 -04:00
wayland-client.h Implement user_data for surface 2009-09-18 17:05:50 -04:00
wayland-glib.c Fix namespace convention for glib source. 2008-12-02 18:28:23 -05:00
wayland-glib.h Fix namespace convention for glib source. 2008-12-02 18:28:23 -05:00
wayland-protocol.c Include the currently pressed keys in keyboard focus event. 2009-02-23 22:30:29 -05:00
wayland-protocol.h Add keyboard and pointer focus events. 2009-02-22 21:51:24 -05:00
wayland-server.pc.in Install libraries plus headers and add pkg-config files. 2008-12-10 13:49:28 -05:00
wayland-system-compositor.c Light up multiple outputs when possible 2009-09-21 16:00:17 -04:00
wayland-system-compositor.h Rename egl-compositor to wayland-system-compositor. 2008-12-19 13:47:53 -05:00
wayland-util.c Add a hash remove implementation 2009-09-18 17:05:50 -04:00
wayland-util.h Add a hash remove implementation 2009-09-18 17:05:50 -04:00
wayland.c Add function to remove surfaces from client 2009-09-18 17:05:50 -04:00
wayland.h Add function to remove surfaces from client 2009-09-18 17:05:50 -04:00
wayland.pc.in Install libraries plus headers and add pkg-config files. 2008-12-10 13:49:28 -05:00
window.c Tweak theme a bit 2009-09-21 13:43:46 -04:00
window.h Paint terminal cursor hollow when focus is lost. 2009-02-22 23:01:35 -05:00

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