From owner-freebsd-current@freebsd.org Wed Jan 20 10:14:14 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 C0C174F090C for ; Wed, 20 Jan 2021 10:14:14 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from out.alvermark.net (out.alvermark.net [185.34.136.138]) (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 4DLLwP6Fvnz4VGr for ; Wed, 20 Jan 2021 10:14:13 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from c-f649235c.06-431-73746f70.bbcust.telenor.se ([92.35.73.246] helo=mail.alvermark.net) by out.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1l2AVA-000FtP-GQ for freebsd-current@freebsd.org; Wed, 20 Jan 2021 11:14:12 +0100 Received: from [192.168.67.27] by mail.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1l2AVA-0005mY-0Z for freebsd-current@freebsd.org; Wed, 20 Jan 2021 11:14:12 +0100 Subject: Re: boot loader blank screen To: freebsd-current@freebsd.org References: <83EB3B04-EAE8-4EC3-820B-2F5C3BADE948@me.com> <66908803-BA6F-4538-9D93-6F85A95108C9@me.com> <831788F9-F97F-4A02-A6F9-AE05219DA2E9@me.com> From: Jakob Alvermark Message-ID: Date: Wed, 20 Jan 2021 11:14:11 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4DLLwP6Fvnz4VGr X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[alvermark.net:s=x]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.34.136.138]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[alvermark.net: no valid DMARC record]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[185.34.136.138:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[alvermark.net:+]; NEURAL_HAM_SHORT(-1.00)[-0.996]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[185.34.136.138:from]; ASN(0.00)[asn:34971, ipnet:185.34.136.0/23, country:IT]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] 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: Wed, 20 Jan 2021 10:14:14 -0000 On 1/14/21 8:15 AM, Jakob Alvermark wrote: > > On 1/14/21 4:49 AM, monochrome wrote: >> I should add my experience to this since its different and haven't >> seen anyone else mention it. >> I see the new boot loader, it's not blank, but its large text, and >> it's very SLOW. >> I can see each char drawn, and then when it gets to the bottom and >> has to redraw all the lines to scroll up for new lines, it loads so >> slowly it's like watching an 8086 on a 300 baud modem, or slower! >> Takes like an extra 30 seconds to get through all the loaded modules, >> then back to normal speed boot with the same large font. >> >> added these lines and everything is back to normal with new >> appearance and small font like before, and at normal speed. >> hw.vga.textmode="0" >> vbe_max_resolution=1280x800 >> >> also removed the old lines for the amdgpu efi problem with no effect >> so I assume those are no longer necessary and why I'm seeing this >> change? >> #hw.syscons.disable=1 >> #kern.vty=vt >> #hw.vga.textmode=1 >> >> am using X and everything seems fine for now >> >> system: >> AMD Ryzen 5 2400G, using integrated vega GPU >> ASRock B450M Pro4 >> 13-current >> >> >> >> On 1/5/21 8:54 PM, David Wolfskill wrote: >>> On Wed, Jan 06, 2021 at 12:46:08AM +0200, Toomas Soome wrote: >>>> ... >>>>> the 58661b3ba9eb should hopefully fix the loader text mode issue, >>>>> it would be cool if you can verify:) >>>>> >>>>> thanks, >>>>> toomas >>>> >>>> I think, I got it fixed (at least idwer did confirm for his system, >>>> thanks). If you can test this patch: >>>> http://148-52-235-80.sta.estpak.ee/0001-loader-rewrite-font-install.patch >>>> >>>> it would be really nice. >>>> >>>> thanks, >>>> toomas >>> >>> I tested with each of the following "stanzas' in /boot/loader.conf, >>> using vt (vs. syscons) in each case (though that breaks video reset >>> on resume after suspend): >>> >>> # hw.vga.textmode="0" >>> vbe_max_resolution=1280x800 >>> >>> This works, and provides a graphical console (depth 32). >>> >>> >>> hw.vga.textmode="0" >>> # vbe_max_resolution=1280x800 >>> >>> This also works, and provides a low-resolution (and depth 16) >>> graphical console (800x320 or something similar, IIRC). >>> >>> >>> # hw.vga.textmode="0" >>> # vbe_max_resolution=1280x800 >>> >>> (That is, not specifying anything for hw.vga.textmode or >>> vbe_max_resolution.) >>> >>> This boots OK, but I see no kernel probe messages or single- to >>> multi-user mode messages.  I can use (e.g.) Ctl+Alt+F2 to switch to >>> vty1, see a "login: " prompt, and that (also) works.  (This is the >>> initial symptom I had reported.) >>> >>> >>> hw.vga.textmode="1" >>> # vbe_max_resolution=1280x800 >>> >>> This works -- boots OK, and I see kernel probe (&c.) messages; this >>> is a >>> text console (mostly blue text; some white, against a dark background. >>> It's a medium-light blue, so it's easy enough to read (unlike a navy >>> blue, for example). >>> >>> >>> FreeBSD g1-55.catwhisker.org 13.0-CURRENT FreeBSD 13.0-CURRENT #113 >>> main-c255601-g9fd96b416c45-dirty: Tue Jan  5 17:24:45 PST 2021 >>> root@g1-55.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY >>> amd64 > > > +1 on the slowness. > > I like the graphics mode, it's very pretty. > > But slow. It seems to depend a lot on the screen resolution. On my > small laptop, 1366x768, it's fairly OK. On the 1080p laptop it is very > much slower, it takes about 35 seconds longer compared to the old loader. > > Booting on a 4K monitor, well, I didn't time it... Observations with the current version: 1. The font is now a lot smaller. 2. It feels quicker. However, still a bit slow. Something that seems very slow is clearing the screen. It's like pulling down a curtain slowly. 3. Booting on the 4k monitor does not work now. Loader looks alright, but when it hands over to the kernel, the screen just goes blank, and the machine hangs. This worked before. Jakob