From owner-freebsd-current@freebsd.org Thu May 13 14:36:09 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 CF6EE643FD2 for ; Thu, 13 May 2021 14:36:09 +0000 (UTC) (envelope-from tsoome@me.com) Received: from mr85p00im-hyfv06011301.me.com (mr85p00im-hyfv06011301.me.com [17.58.23.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FgvNT4jTnz3Fwn for ; Thu, 13 May 2021 14:36:09 +0000 (UTC) (envelope-from tsoome@me.com) Received: from smtpclient.apple (148-52-235-80.sta.estpak.ee [80.235.52.148]) by mr85p00im-hyfv06011301.me.com (Postfix) with ESMTPSA id 5DF5F580418; Thu, 13 May 2021 14:36:06 +0000 (UTC) From: Toomas Soome Message-Id: <8B0943A1-BD60-4414-B799-8D685F50DD81@me.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: =?utf-8?Q?Re=3A_vt=3A_efifb_/_fb+kms_resolutions_and_fonts_?= =?utf-8?Q?=E2=80=94_how_to=3F?= Date: Thu, 13 May 2021 17:36:03 +0300 In-Reply-To: Cc: freebsd-current@freebsd.org To: "lev@freebsd.org" References: X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.761,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-05-13=5F08:2021-05-13=5F01,2021-05-13=5F08,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 spamscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2105130108 X-Rspamd-Queue-Id: 4FgvNT4jTnz3Fwn X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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:36:09 -0000 > On 13. May 2021, at 17:04, Lev Serebryakov wrote: >=20 >=20 > Is it possible to get native 1920x1080 resoultiuon and small fond = (many lines) early on boot? >=20 > Lenovo T540p has native resolution 1920x1080 and boots with UEFI. I've = tried two configs: >=20 > (1) No special configuration in /boot/loader.conf >=20 > (1.1) Loader menu is ugly, font is large and jagged, looks like "text = resolution" is 80x25. >=20 > (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. >=20 > (1.3) After i915kms.ko load (by rc(8)) resolution is native = (1920x1080), font is very small, there are > A LOT of "text resolution". >=20 > (2) "efi_max_resolution=3D1080p" in /boot/loader.conf >=20 > (2.1) Loader menu is nice, font is large and smooth, but looks like = "text resolution" is 80x25 still. >=20 > (2.2) Early on boot kernel reports: "VT(efifb): resolution 1920x1080". > "text resolution" is 80x25 and font is large and smooth still. >=20 > (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! >=20 >=20 > Adding "screen.font=3D"16x32"" into "/boot/loader.conf" doesn't change = anything. >=20 > Is it possible to have EFIFB resolution 1920x1080, but small font and = lot of "text resolution" from early boot on? >=20 First thing, please check if you have boot1.efi or loader.efi in ESP = (EFI System Partition), and when it is loader.efi, please check it is = latest. Then next step would be to test out gfx modes, on loader OK prompt, try = to switch modes with gop list + gop set command, use gop get to verify = (on my system, only 800x600 is used, despite there are different modes = in list). With mode change, there also may be font change. Then next thing is to check different fonts; the default list is shown = when you enter: set screen.font=3D =E2=80=94 without value, it will = list the available ones. Once you set the font, show COLUMNS and show = LINES will tell you terminal size. This font is also passed to kernel = and used as default font. If you want to use custom font, it must be prepared with vtfontcvt; and = can be loaded with loadfont command (or it can be added to index, note = that index is assuming unique glyph size and last entry wins). In any = case, you can test this with loadfont /boot/fonts/gallant.fnt, gallant = is not listed in the index (because it has much smaller number of glyphs = compared to terminus). If KMS will set different resolution and the default font is not good, = then vidcontrol command can be used to load better one.=20 hope this helps, toomas