Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[CFT] [X11] graphics/drm-next-kmod now builds, loads and works on

15 views
Skip to first unread message

Hans Petter Selasky

unread,
Feb 18, 2018, 3:39:37 PM2/18/18
to
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
_______________________________________________
freebsd...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stabl...@freebsd.org"

Kevin Oberman

unread,
Feb 18, 2018, 5:31:44 PM2/18/18
to
On Sun, Feb 18, 2018 at 12:35 PM, Hans Petter Selasky <h...@selasky.org>
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
>

Wow! That is awesome. Thanks to all of the contributors.

Any instructions? Am I right that the mod setting driver should generally
be used. None of the links above really covers implementation.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkob...@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

Ian Lepore

unread,
Feb 18, 2018, 5:36:53 PM2/18/18
to
On Sun, 2018-02-18 at 14:27 -0800, 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
> >
> Wow! That is awesome. Thanks to all of the contributors.
>
> Any instructions? Am I right that the mod setting driver should generally
> be used. None of the links above really covers implementation.

+1. I have the vague notion that drm-next has something to do with
supporting newer graphics hardware.  Since I just bought a new x86 box
whose builtin radeon R6 isn't supported by -current that sounds
interesting to me, where do I find out more about drm-next and how to
try it?

-- Ian 

Hans Petter Selasky

unread,
Feb 18, 2018, 5:41:29 PM2/18/18
to
On 02/18/18 23:27, Kevin Oberman wrote:
> On Sun, Feb 18, 2018 at 12:35 PM, Hans Petter Selasky <h...@selasky.org>
> 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

Kevin Oberman

unread,
Feb 19, 2018, 12:18:45 AM2/19/18
to
On Sun, Feb 18, 2018 at 2:36 PM, Hans Petter Selasky <h...@selasky.org>
Thanks, Hans! I should have looked at the message file. It explained most
of it, though I especially appreciate the tearfree config as I am using
Intel graphics.

This is also the first I have seen of modular config files. Guess I have
some man page reading to do.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkob...@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

Torfinn Ingolfsen

unread,
Mar 2, 2018, 11:01:33 AM3/2/18
to
On Sun, 18 Feb 2018 21:35:24 +0100
Hans Petter Selasky <h...@selasky.org> 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!
>

Thanks for the hard work by all involved!

Tested a few days ago, reported in the forum post here: https://forums.freebsd.org/threads/using-drm-next-kmod-on-freebsd-11-stable.64731/#post-378702
TL;DR - it works on a Toshiba Satellite Z30-B-10W (Broadwell-U, Intel HD Graphics 5500). One issue - the text console (before starting Xorg) has serious lag,
you can type a command before anything shows on the screen. Should I open an issue for this on Github?
HTH
--
Torfinn Ingolfsen <torfinn....@getmail.no>

Pete Wright

unread,
Mar 2, 2018, 2:38:35 PM3/2/18
to

On 3/2/18 7:53 AM, Torfinn Ingolfsen wrote:
> On Sun, 18 Feb 2018 21:35:24 +0100
> Hans Petter Selasky <h...@selasky.org> 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!
>>
> Thanks for the hard work by all involved!
>
> Tested a few days ago, reported in the forum post here: https://forums.freebsd.org/threads/using-drm-next-kmod-on-freebsd-11-stable.64731/#post-378702
> TL;DR - it works on a Toshiba Satellite Z30-B-10W (Broadwell-U, Intel HD Graphics 5500). One issue - the text console (before starting Xorg) has serious lag,
> you can type a command before anything shows on the screen. Should I open an issue for this on Github?
> HTH

Hey there - thanks for testing!  I would recommend posting an issue on
the Github repo for this.  If you could be sure to include which
revision you are running (11-stable or 12-current revision) in addition
to the version of the port/pkg you have install that'd be helpful.

Cheers,
-pete

--
Pete Wright
pe...@nomadlogic.org
310.309.9298

Torfinn Ingolfsen

unread,
Mar 6, 2018, 10:58:21 AM3/6/18
to
On Fri, 2 Mar 2018 11:33:57 -0800
Pete Wright <pe...@nomadlogic.org> wrote:

>
> Hey there - thanks for testing!  I would recommend posting an issue on
> the Github repo for this.  If you could be sure to include which
> revision you are running (11-stable or 12-current revision) in addition
> to the version of the port/pkg you have install that'd be helpful.

Done.
Issue 38: https://github.com/FreeBSDDesktop/kms-drm/issues/38

HTH
--
Torfinn Ingolfsen <torfinn....@getmail.no>

Torfinn Ingolfsen

unread,
Jun 6, 2018, 1:19:04 PM6/6/18
to
On Tue, 6 Mar 2018 16:53:46 +0100
Torfinn Ingolfsen <torfinn....@getmail.no> wrote:

> On Fri, 2 Mar 2018 11:33:57 -0800
> Pete Wright <pe...@nomadlogic.org> wrote:
>
> >
> > Hey there - thanks for testing!  I would recommend posting an issue on
> > the Github repo for this.  If you could be sure to include which
> > revision you are running (11-stable or 12-current revision) in addition
> > to the version of the port/pkg you have install that'd be helpful.
>
> Done.
> Issue 38: https://github.com/FreeBSDDesktop/kms-drm/issues/38
>

Update:
I just upgraded to latest versions of the modules from the ports tree:
May 17 13:25:17 kg-z30b pkg-static: gpu-firmware-kmod-g20180319_1 installed
May 17 13:28:42 kg-z30b pkg-static: drm-next-kmod-4.11.g20180505_1 installed

and the lag in the console is now gone. Thanks!
Oh, and I added a comment on Issue 38 in Github.
0 new messages