From owner-freebsd-current@freebsd.org Thu May 13 14:04:06 2021 Return-Path: Delivered-To: freebsd-current@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 5DF83642CAE for ; Thu, 13 May 2021 14:04:06 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FgtgV2F22z3DNx for ; Thu, 13 May 2021 14:04:06 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [148.251.9.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: lev/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 25F5B9CAF for ; Thu, 13 May 2021 14:04:06 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.134.16] (unknown [94.19.224.8]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id DC9BC489A for ; Thu, 13 May 2021 17:04:03 +0300 (MSK) To: freebsd-current@freebsd.org Reply-To: lev@FreeBSD.org From: Lev Serebryakov Subject: =?UTF-8?Q?vt=3a_efifb_/_fb+kms_resolutions_and_fonts_=e2=80=94_how_?= =?UTF-8?B?dG8/?= Organization: FreeBSD Message-ID: Date: Thu, 13 May 2021 17:04:03 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2021 14:04:06 -0000 Is it possible to get native 1920x1080 resoultiuon and small fond (many lines) early on boot? Lenovo T540p has native resolution 1920x1080 and boots with UEFI. I've tried two configs: (1) No special configuration in /boot/loader.conf (1.1) Loader menu is ugly, font is large and jagged, looks like "text resolution" is 80x25. (1.2) Early on boot kernel reports: "VT(efifb): resolution 640x480". "text resolution" is 80x25 and font is large and ugly still. Font ugliness is expected for non-native resolution and explains loader ugliness. (1.3) After i915kms.ko load (by rc(8)) resolution is native (1920x1080), font is very small, there are A LOT of "text resolution". (2) "efi_max_resolution=1080p" in /boot/loader.conf (2.1) Loader menu is nice, font is large and smooth, but looks like "text resolution" is 80x25 still. (2.2) Early on boot kernel reports: "VT(efifb): resolution 1920x1080". "text resolution" is 80x25 and font is large and smooth still. (2.3) After i915kms.ko load (by rc(8)) resolution is native (1920x1080), font is THE SAME (large and smooth), "text resolution" is 80x25 still! Adding "screen.font="16x32"" into "/boot/loader.conf" doesn't change anything. Is it possible to have EFIFB resolution 1920x1080, but small font and lot of "text resolution" from early boot on? -- // Lev Serebryakov