From owner-freebsd-stable@freebsd.org Sun Feb 18 22:36:26 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE0A0F0BBBF for ; Sun, 18 Feb 2018 22:36:25 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8ED8D701A3 for ; Sun, 18 Feb 2018 22:36:25 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id BC0A426027E; Sun, 18 Feb 2018 23:36:23 +0100 (CET) Subject: Re: [CFT] [X11] graphics/drm-next-kmod now builds, loads and works on FreeBSD-11-stable To: Kevin Oberman Cc: FreeBSD Stable References: <3ad595ce-e15b-d475-e057-4dde88e2630c@selasky.org> From: Hans Petter Selasky Message-ID: Date: Sun, 18 Feb 2018 23:36:23 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Feb 2018 22:36:26 -0000 On 02/18/18 23:27, Kevin Oberman wrote: > On Sun, Feb 18, 2018 at 12:35 PM, Hans Petter Selasky > wrote: > >> Hi FreeBSD desktop users! >> >> During the past week and over the weekend all parts needed for building, >> loading and using graphics/drm-next-kmod on FreeBSD-11-stable have been >> completed! >> >> A big thanks to all the people contributing to graphics support under >> FreeBSD in both kernel and user-space! You'll find their names in the >> commit logs including myself :-) >> >> Links: >> https://www.freshports.org/graphics/drm-next-kmod >> https://svnweb.freebsd.org/changeset/base/329527 >> >> Issues are reported here: >> https://github.com/FreeBSDDesktop/kms-drm/issues >> >> --HPS >> Hi Kevin, > > Wow! That is awesome. Thanks to all of the contributors. Thank you! > > Any instructions? Am I right that the mod setting driver should generally > be used. None of the links above really covers implementation. I believe the package when you install it will give you some instructions in the pkg-message. Basically: portsnap fetch update Make sure your kernel sources in /usr/src . cd /usr/src make buildkernel -jX make installkernel -jX cd /usr/ports/graphics/drm-next-kmod make all install clean Edit /etc/rc.conf and add for example: kld_list="i915kms" Then reboot and twin your thumbs. If it fails goto single user mode. mount -a Edit /etc/rc.conf and remove the kld_list=... Save and type exit. Before starting X.org you should have the correct xf86-video-xxx drivers installed, because then 2D and 3D acceleration will activate. A quick tip for tear-free video with intel drivers: cat /usr/local/etc/X11/xorg.conf.d/20-intel.conf Section "Device" Identifier "Device0" Driver "intel" Option "AccelMethod" "sna" Option "TearFree" "true" EndSection --HPS