Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2019 12:31:41 +0100
From:      Per Hedeland <per@hedeland.org>
To:        vm finance <vm.finance2@gmail.com>
Cc:        Polytropon <freebsd@edvax.de>, FreeBSD Mailing List <freebsd-questions@freebsd.org>, freebsd-x11@freebsd.org
Subject:   Re: FreeBSD-12.1 on laptop
Message-ID:  <770ebb05-9d76-1b54-5bf5-af548368e19e@hedeland.org>
In-Reply-To: <CAKy-8=h05oQfa6rBhOH74vPt3e6m6u3-UXx6v3DWLgXp8No6Hw@mail.gmail.com>
References:  <CAKy-8=hUCNiAufHHgpLJTnbS_==aHT7UyspgjLyro-yEcxJ2_w@mail.gmail.com> <30022fe5-800e-0a9a-fff6-8edb0171e153@denninger.net> <CAKy-8=h9jacsx0ZUSucF9qN7AZ6xdtzGoacwxccoWHm9OF-Baw@mail.gmail.com> <CAC=ypSUq8gc8LsWB=Lyz01ktfcBnBaYSuyP3KBo%2BSL9StAv7rw@mail.gmail.com> <CAKy-8=iVsLqNkwdxn_E-1R5t8mmp14JULN%2BKHRf-asWTzWcWfA@mail.gmail.com> <5c2c0fe0-93fa-246e-a3ae-05e813e246df@panix.com> <CAKy-8=i07xSnz3yW3H1XCOJ8_7x_m1__e0r68HxUx-R7-A0x8w@mail.gmail.com> <CAKy-8=gte8_xZGTt17kRgPtyj9mi6wx-ahehNSGrbcedVn4ZNQ@mail.gmail.com> <CACNAnaECR4bQ=FAM%2BwTfU0HaR63uAUQkp41mS9pPSM=4K_EGqQ@mail.gmail.com> <CAKy-8=gh7nGqzf9G5A7zJDoa2EQgA432k49djHi3%2Bzhg36Tv_A@mail.gmail.com> <CAKy-8=ivtDo0it9fzyUp8mUDAQuGWVfdQqfz2hmhXcA6CXJn%2Bg@mail.gmail.com> <CAKy-8=gHp67aqpXXNM=rfsWwNc4Ay__bsC-09NZ03Afm9W4ekg@mail.gmail.com> <CAKy-8=ho=mD5WLJA5iHbDt9prnrMDhjrwmWOO5NXumQDB9hXhw@mail.gmail.com> <20191128103810.9599da0b.freebsd@edvax.de> <CAKy-8=h05oQfa6rBhOH74vPt3e6m6u3-UXx6v3DWLgXp8No6Hw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-11-28 11:03, vm finance wrote:
> Hi,
> 
> Its Intel's "UHD Graphics 620". I don't see it installed/loaded under
> "kldstat".
> 
> Do you think steps mentioned in
> http://www.srobb.net/freebsdintel.html
> 
> would suffice to get around the issue I have?
> If not, could u please suggest next steps.
> 
> Pls let me know. Thanks so much!

Sigh, after all the discussion and problem / fix reports (mostly on
the freebsd-x11@ list, which I'm adding to Cc) about the "new DRM"
stuff, one would think that there should be some simple-to-follow
*FreeBSD* web page that explained it all and could be pointed to if
not immediately found.

There is https://wiki.freebsd.org/Graphics, which IMHO is neither
simple to find nor to follow, and which still has the broken-with-12.1
"pkg install drm-kmod" advice. I think it is sad, since there's a lot
of great work that has gone into this - personally I have a laptop
that wouldn't have had *any* graphics (on FreeBSD) without it, and I
know I'm not alone in that.

Anyway, enough ranting - if you look at the "Intel Integrated Graphics
(aka HD Graphics)" section on the above page, and specifically the
"Example Configuration For Post Broadwell System", and *skip* the bad
pkg advice, you'll find that the next step is to add

     kld_list="/boot/modules/i915kms.ko"

to rc.conf - and actually the "post-install package message" will have
told you so, but yeah, who reads those things...

The problem (not explained anywhere that I can find right now) is that
after building and installing the drm-kmod port (or package), you have
*two* drivers called i915kms installed. One is part of the base
system, /boot/kernel/i915kms.ko - this is the one that doesn't work
for you (or me), and gets loaded if you do "kldload i915kms". The
other is from the port that you installed, and it's the above
/boot/modules/i915kms.ko - you must ensure that this is the one that
is loaded.

The above line makes sure that this happens at reboot (loading via
boot/loader.conf has been reported to *not* work in at least *some*
cases, and there's no advantage over loading via /etc/rc.conf), but
you can also do it manually for testing, by using the full path with
"kldload":

   kldload /boot/modules/i915kms.ko

Read and follow also the subsequent steps in the example, as well as
the "Note:" at the end of the section. If your card is actually
supported (and frankly I'm not sure how to figure that out in any
other way than trying it), you should be fine at that point.

--Per Hedeland



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?770ebb05-9d76-1b54-5bf5-af548368e19e>