From owner-freebsd-questions@freebsd.org Wed Mar 25 11:16:34 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 129EA27E2C3 for ; Wed, 25 Mar 2020 11:16:34 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48nQYF0mC3z4WkD; Wed, 25 Mar 2020 11:16:32 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id A961410193; Wed, 25 Mar 2020 11:10:21 +0000 (GMT) Subject: Re: drm-kmod on a ThinkPad T550 To: Mateusz Piotrowski <0mp@FreeBSD.org>, Ruben Schade , "freebsd-questions@freebsd.org" References: <85325692-f237-ee8e-168c-e3dea3a52dd0@rubenschade.com> From: Arthur Chance Message-ID: <8dd3546c-3975-0ab7-b13f-0fe9c775bd63@qeng-ho.org> Date: Wed, 25 Mar 2020 11:10:21 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48nQYF0mC3z4WkD X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 11:16:34 -0000 On 25/03/2020 10:54, Mateusz Piotrowski wrote: > On 3/25/20 11:26 AM, Arthur Chance wrote: >> On 25/03/2020 07:50, Ruben Schade wrote: >>> I bought myself a second-hand Broadwell ThinkPad T550 for my birthday! >>> Everything else works well out of the box with amd64 12.1-RELEASE, but I >>> can't get drm-kmod working. > ... >>>> # sysrc kld_load="/boot/modules/i915kms.ko" >> sysrc sets variables in /etc/rc.conf. IIRC the module needs to be loaded >> at boot time so you need to edit /boot/loader.conf. > It is not be necessary to load this driver via loader.conf(5) as far as > I know. I always load it via rc.conf(5) and it works just fine. You're right. From https://wiki.freebsd.org/Graphics Example Configuration For Post Broadwell System A common configuration is a user who has an Intel laptop with a Kabylake Intel i915 HD Graphics chip. To enable the chipset one would follow these instructions: Install the drm-kmod package $ sudo pkg install drm-kmod Take note of the post-install package message as it contains important information - specifically add this to your /etc/rc.conf or /etc/rc.conf.d/intel file: kld_list="/boot/modules/i915kms.ko" Ensure your UID is a member of the "video" group. Restart your system; you should see the i915kms.ko get loaded and a flash on your console as we switch over to the new display driver. Start Xorg via your usual method (i.e. startx, GDM, etc.) -- Violets are red And roses are blue When metamaterials Alter their hue.