sudo apt-get install xutils-dev xorg-dev autoconf automake make libtool libdrm-dev
git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-modesetting
git checkout -b 0.5.0 xf86-video-modesetting-0.5.0 # use git tag to find out
./autogen --prefix=/usr
make
sudo make install