Wayland works outside of X on ATI/AMD and Nvidia

Darxus at chaosreigns.com Darxus at chaosreigns.com
Wed Feb 16 21:57:46 PST 2011


Ben Franzke worked out the final pieces.  

Both require the use of open source drivers.  For ATI, it looks like you
need a 2.6.38 kernel to get page flip support.  Nvidia needs a kernel
built from the Nouveau git repo, and an additional patch:
http://lists.freedesktop.org/archives/nouveau/2011-February/007647.html
The web archive seems to have mangled it, so I copied it here:
http://www.chaosreigns.com/wayland/nouveau.bnf.patch

I rebuilt my kernel using the nouveau repo based on my existing kernel
config like this:

  git clone --depth 1 git://anongit.freedesktop.org/nouveau/linux-2.6
  wget http://www.chaosreigns.com/wayland/nouveau.bnf.patch
  cd linux-2.6
  patch -p1 < ../nouveau.bnf.patch
  cp /boot/config-`uname -r` .config # use .config of currently running kernel
  yes "" | make oldconfig # use defaults for new options
  make clean && make && make modules && sudo make modules_install && sudo make install
  mkinitramfs -o initrd.img `make kernelversion`+
  sudo mv initrd.img /boot/initrd.img-`make kernelversion`+
  sudo update-grub

The only files this adds to your system are /boot/*-`make kernelversion`+
and /lib/modules/`make kernelversion`+/ so you can just delete them and
re-run "sudo update-grub" to undo it.

This worked on Ubuntu Maverick, with a -generic kernel (64 bit).
I'm curious where other distros keep their kernel .config files, and
how common /boot/config-`uname -r` is.


I'm still getting a little corruption of graphical output with nouveau.
The first time I ran it, with lots of clients, it was terrible.
The second time it was just maybe the bottom third of one of the two
buffers it was clearly flipping between (every time I moved my mouse a
pixel).  The times after that there was no corruption.


More information about the wayland-devel mailing list