From owner-freebsd-questions@freebsd.org Tue May 12 07:27:15 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 6ECC92E5073 for ; Tue, 12 May 2020 07:27:15 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49LqBV0PqLz3LS8 for ; Tue, 12 May 2020 07:27:13 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id 04C7R1jB080456 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 12 May 2020 09:27:01 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1589268421; bh=5fsj81hXAUgxxEAimLKMXAbPLdFB9jsGjPrX0n9WCws=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=KKuukTbzBeoRxRDE2BXZ+LI7Pl04sE8Itu9bMmgRNktzVOVccj7Kg/8YlZBMVMcBM teO25F2Aum9cx1CbWVKyOjv4Szif0ThWCPlSNHwBRoElXUoOF8b1syvZv7OmXgGft2 +klOcaiqom15ZLiO5qkhz8tSbNOiEIeJDzDUeVk0VELoO4qNnrKkHozg1yuLyibKlO jqpeinVAsvWs7h3p82S6NRe3l2Mx+KLjidjUDfHgdCpqTLwvQxJAbBJkELJz4R/Q05 h5fmMrh98Oe7w7zCEIUCyfOfxDnZCa9D8bCTkOjWCxkb5wRyN8DTdqooZUrieN7Zw2 ++Eh++rXUAbnQ== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id 04C7R16t080453; Tue, 12 May 2020 09:27:01 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Tue, 12 May 2020 09:27:01 +0200 (CEST) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: Vishal Subramanyam cc: freebsd-questions@freebsd.org Subject: Re: Cannot load intel driver(i915kms) without screen blanking out In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (BSF 395 2020-01-19) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on enterprise.ximalas.info X-Rspamd-Queue-Id: 49LqBV0PqLz3LS8 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=KKuukTbz; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-5.10 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; HAS_XAW(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; IP_SCORE(-2.10)[ip: (-8.39), ipnet: 2001:700::/32(-1.35), asn: 224(-0.74), country: NO(-0.02)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 07:27:15 -0000 On Tue, 12 May 2020 00:43+0530, Vishal Subramanyam wrote: > I have a Intel Core i5-3320M processor with integrated graphics, FreeBSD > 12.1-RELEASE, GENERIC Kernel. > 1) Had a fresh install of FreeBSD, tried using built-in i915kms driver present > in /boot/kernel. Used kld_list in /etc/rc.conf to load the driver. Screen > blanked out after a few lines during boot (presumably right after the point > the driver was loaded, until then I was getting lots of boot messages as > usual). > 2) Installed drm-legacy-kmod, and used the driver file that it provided, i.e., > /boot/modules/i915kms.ko. Same result as before. > 3) Installed xorg-minimal. Executed startx command. Blank screen. Had to > reboot (Ctrl-Alt-Bksp was suggested in some forums to return to tty, but > didn't work). > 4) Installed xorg. Installed xf86-video-intel. startx worked perfectly. Read > the Xorg.0.log in /var/log/, seems intel driver was loaded and was used > without any problems. > 5) Tried to do a `kldload i915kms` in xterm, it said it had already been > loaded into the kernel. This meant that xorg could load and use i915kms, but I > possibly could only load it but not "use" it to view my tty. > 6) Couldn't view other ttys using Ctrl-Alt-XX shortcut. When I tried to do so, > the screen stayed the same but the windows in the window manager went out of > focus. > 7) I guessed that I did enter another terminal, but simply couldn't see the > prompts. So I mentally assumed there was a login prompt and went ahead. I > typed out my login stuff and pressed enter. Then I assumed there was a prompt > infront of me and entered a command to start another xorg session. Note: Till > now, I am still looking at the TWM xterm windows that are out of focus, not at > a text console. > 8) I execute startx infront of this mental virtual console. Voila. Another > xorg session is started at ttyv10 (the original was at ttyv9), indicating that > the terminal was there, but it simply wasn't visible and that I could switch > to them by using Ctrl-Alt-XX. > What's happening? Why can't I use i915kms to view my tty? Why is xorg able to > use it? > PS: When the screen goes blank while loading i915kms, I think its simple not > able to display the tty's contents. So if I do my "mental" trick there and > continue as if everything was there, will it work? I am going to try it now. Make sure you use the vt console, in /boot/loader.conf: kern.vty="vt" Try using absolute pathnames and load /boot/modules/drm.ko ahead of /boot/modules/i915kms.ko in /etc/rc.conf: kld_list="/boot/modules/drm.ko /boot/modules/i915kms.ko" -- Trond.