FreeBSD-12.1 on laptop

Scott Bennett bennett at
Fri Nov 29 06:59:53 UTC 2019

Tomasz CEDRO <tomek at> wrote:

> Do this as root:
> pkg install Xorg hal dbus

     Bzzzt!  Please do not send innocent victims into the hal nightmare.
That package is *not* needed and *should be avoided whenever possible*.

> portsnap fetch update
> cd /usr/ports/graphics/drm-fbsd12.0-kmod/
> make
> make deinstall
> make install
> kldunload drm
> kldunload i915kms

     Yeah?  Good luck with that.  One it has the graphics device, I
doubt it will allow itself to be unloaded.  A reboot will most likely
be necessary.

> kldload /boot/modules/drm.ko

     It shouldn't be necessary to load drm.ko manually.

> kldload /boot/modules/i915kms.ko

     There can be problems with the above method of loading this, IIRC.


in /etc/rc.conf.local (or /etc/rc.conf if you don't separate your own
added choices from the system's) is the preferred method.

> startx
> You can also generate Xorg configuration with:
> Xorg -configure
> cp /root/ /etc/X11/xorg.conf
> startx

     Note that manual configuration should be used only as a last resort.
Most users should let xorg autoconfigure unless there is a problem in
getting particular devices, fonts, drivers, etc. recognized or for special
screen, keyboard, and/or pointing device setups.
> Note that you have to compile the DRM kernel driver on your machine,

     True, except for users who run -RELEASE GENERIC.

> also you need to load /boot/modules/drm.ko and

     Not true AFAIK.  I don't do that, and it works just fine.

> /boot/modules/i915kms.ko from that location otherwise you will load
> default drm/i915 drivers that does not work with modern GPU.

     Yes, this one most likely does need to be specified for Intel's
integrated graphics.
> If all above works put below line into /etc/rc.conf:
> kld_list="/boot/modules/drm.ko /boot/modules/i915kms.ko"
> You may also take a look at to see if
> people had similar problems and found a working solution.
> Have fun :-)

                                  Scott Bennett, Comm. ASMELG, CFIAG
* Internet:   bennett at   *xor*   bennett at  *
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *

More information about the freebsd-questions mailing list