From owner-freebsd-questions@freebsd.org Tue May 12 00:44:17 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 F40342DC690 for ; Tue, 12 May 2020 00:44:16 +0000 (UTC) (envelope-from ekalavya.bsd@gmail.com) Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49LfFW0lLTz4SR8 for ; Tue, 12 May 2020 00:44:14 +0000 (UTC) (envelope-from ekalavya.bsd@gmail.com) Received: by mail-pg1-x544.google.com with SMTP id r10so4855635pgv.8 for ; Mon, 11 May 2020 17:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:user-agent:mime-version; bh=1f9AevpBar4M8KBUM/tEDZtP3uHD/byKxWwxwndqed0=; b=uJrxsqJWqQYWabl8YD0++F7u87YXel3WhoRHQcFvN6++LadMpQ26e5zXi5DWPaqaR9 BDlSgiZtQMoRx++GfgqND4SNwdduy7vdajPP7Yx/Yb82YLa6DIwrX/bkWywZaVdCC6nM L6BUj0TeLjTv7l6MmM03bkgyWusXBLGFrwXHAdKRpfLCS0muZKsIXNzz4mhANVi7dF8H r+bDpKa7cB42XbK+nNqn2JevDPtzoGfy16CFQFuN2UkCxUbw2dcGZvxkRhYG6fxZKacK YRMYY78KK+Xtscl3SKzqeSPILvpMUB4u2hWbmL7ydWa/ScLp0VdKMwThHhl9TKuTEqsb mJew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:user-agent :mime-version; bh=1f9AevpBar4M8KBUM/tEDZtP3uHD/byKxWwxwndqed0=; b=ImtM4kJDht4xEeu1Jw2ZjsLKhNrc9k4Kg+gkmsYCVgs5MCT4QL6OaU+8DFdmBvMebg oMdJ6v4Bs1fHl7DPvn28wVPz2V8rwFNjHTgsvRBEOMV5vIW7r1sQpfTl4wTv0YLm8TNy W27/UDz8nTV7Vueyu+YTR5cfh0wJnNfIkOkGWyjVbdRwk105y0GEkYwUDdQTdmlBUYUq iPcStesdRwDiV0UmhAFz/M2cRWm0FczQFSB0Ah9cQzgHjYzeAr7c7jp5ezz+0AooLioh bh5kqijLXCcABLYgBQoQVyEJNHgFIqWh4jKzg2slEJzj0F6nul6WpDjYRLBAJLiJZygk Sdyw== X-Gm-Message-State: AOAM530KgCPvCty7jFTOjB+2Q2v+i4ev1rvMeK9vPL2U7wLcQQzB6Gl0 eH5I01bpvDCWLPMSTS+zsQ1eadUKRKf3DA== X-Google-Smtp-Source: ABdhPJzbwASbB8MoFZf5sIDWiv3NIXYgbQDqz98IRkkUsQ1QJ/1WeWgaf9xVQfvJ0hWva7olAmDWGQ== X-Received: by 2002:a63:b904:: with SMTP id z4mr1560737pge.25.1589244252896; Mon, 11 May 2020 17:44:12 -0700 (PDT) Received: from [192.168.1.8] ([106.201.173.206]) by smtp.gmail.com with ESMTPSA id e11sm10052765pfl.85.2020.05.11.17.44.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 17:44:12 -0700 (PDT) From: Vishal Subramanyam X-Google-Original-From: Vishal Subramanyam Date: Tue, 12 May 2020 00:43:35 +0530 (IST) To: freebsd-questions@freebsd.org Subject: Cannot load intel driver(i915kms) without screen blanking out Message-ID: User-Agent: Alpine 2.22 (BSF 395 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 49LfFW0lLTz4SR8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=uJrxsqJW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ekalavyabsd@gmail.com designates 2607:f8b0:4864:20::544 as permitted sender) smtp.mailfrom=ekalavyabsd@gmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[206.173.201.106.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-0.02), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.42), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[4.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] 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 00:44:17 -0000 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.