Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Sep 2021 20:44:54 +0200
From:      Karel Gardas <gardask@gmail.com>
To:        Toomas Soome <tsoome@me.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: EFI/loader show garbage in console when set to some resolution in loader.conf
Message-ID:  <e879574a-f82d-17dd-333d-1ed59d4ecfe0@gmail.com>
In-Reply-To: <31B6298E-7B3D-45FD-87CB-E541C019C5F7@me.com>
References:  <dc7c03dc-66ab-14db-5d7c-30ff17b290d5@gmail.com> <31B6298E-7B3D-45FD-87CB-E541C019C5F7@me.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------644B97A551094B7E0B15F0C2
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

On 9/6/21 6:59 PM, Toomas Soome wrote:
>
>
>> On 6. Sep 2021, at 19:44, Karel Gardas <gardask@gmail.com 
>> <mailto:gardask@gmail.com>> wrote:
>>
>> Hello,
>>
>> I'm attempting to set EFI console resolution in loader to 1920x1920. 
>> This is working fine on all 3 tested* combinations when interrupting 
>> loader with '3' key and then
>> issueing 'gop set 11' command and then 'boot' command.
>>
>> However I'd like to make that permanent and here issue comes. I've 
>> tried both:
>>
>> - edit /boot/loader.conf by adding
>>  'exec="gop set 11"'
>>
>> - edit /boot/loader.conf by adding
>>  'efi_max_resolution="1920x1920"'
>>
>> neither of those works on neither of 3 tested combinations where 
>> tested combinations are:
>
> if you have this setting, what does gop get report? With the versions 
> listed below, was the loader in ESP updated too?

Good question. I'm not entirely sure if my 13.x installation is not 
update from 12.x. It probably is. IIRC I followed the update procedure 
recommended, but certainly 13.0 -> 13.0-p4 is just `fetch` and `install` 
matter. If you like me to update ESP bootloader,
I'm happy to follow your instructions how to do that.

Anyway, my 14.0-CURRENT is fresh install to separate drive in an attempt 
to duplicate issue also on current to report it here.

So gop get reports this (manually rewritten by hand):

- FreeBSD 14.0 - current:

EDID 1920x1920 1920x1920 1920x1200 1920x1080 1600x1200 1600x900 
1280x1024 1280x960 1280x720
mode 4: 1024x768x32, stride=1024
   frame buffer: address=d0000000, size=300000
   color mark: R=00ff0000, G=0000ff00, B=000000ff

- FreeBSD 13.0-p4:

EDID 1920x1920 1920x1920 1920x1200 1920x1080 1600x1200 1600x900 
1280x1024 1280x960 1280x720
mode 4: 1024x768x32, stride 1024
   frame buffer: address=d0000000, size 300000
   color mark: R00ff0000, G=0000ff00, B000000ff
>
>>
>> (1) 13.0 release
>> (2) 13.0-p4 (stable)
>> (3) 14.0 snapshot from 2.9.
>>
>> The behavior is still the same. Screen blanks (like it would do gop 
>> set 11), then switches to text mode to show loader UI and when kernel
>> is loaded it correctly shows that efi resolution is 1920x1920 but 
>> then when kernels boot, it produce just garbage to the console like 
>> loader and kernel resolution would be off
>> by some unknown number...
>>
>> Is this is known issue, is there a known workaround for it? Or shall 
>> I report it properly to bugzilla?
>>
>> Thanks!
>> Karel
>>
>
> what you get from: dmesg | grep efifb
>

- FreebSD 14.0-current:

VT(efifb): resolution 1920x1920

- FreeBSD 13.0-p4:

VT(efifb): resolution 1920x1920

Thanks,
Karel


--------------644B97A551094B7E0B15F0C2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e879574a-f82d-17dd-333d-1ed59d4ecfe0>