From nobody Fri Aug 25 18:29:23 2023 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RXT4x0xjBz4qdW4 for ; Fri, 25 Aug 2023 18:29:37 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RXT4v3gpBz3LdD for ; Fri, 25 Aug 2023 18:29:34 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp has no SPF policy when checking 153.125.133.21) smtp.mailfrom=junchoon@dec.sakura.ne.jp; dmarc=none Received: from kalamity.joker.local (123-1-88-210.area1b.commufa.jp [123.1.88.210]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 37PITOFZ051717 for ; Sat, 26 Aug 2023 03:29:24 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sat, 26 Aug 2023 03:29:23 +0900 From: Tomoaki AOKI To: stable@freebsd.org Subject: Re: configuring the console on 14-stable with hdmi-attached screen Message-Id: <20230826032923.7353e4a7f5739ed73344926b@dec.sakura.ne.jp> In-Reply-To: References: Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.2) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-1.48 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.979]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; MLMMJ_DEST(0.00)[stable@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; HAS_ORG_HEADER(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[sakura.ne.jp]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4RXT4v3gpBz3LdD On Fri, 25 Aug 2023 10:04:01 -0600 Warner Losh wrote: > On Fri, Aug 25, 2023 at 10:02 AM void wrote: > > > In dmesg I see the following: > > > > VT(vga): resolution 640x480 > > VT-x: Basic Features=0xda0400 > > x86bios: IVT 0x000000-0x0004ff at 0xfffff80000000000 > > vtvga0: > > VT(vga): resolution 640x480 > > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > > vtvga0: > > > > How can I change the 640x480 to say 1920x1080 ? > > > > The only way I know is to use UEFI and control it that way... > > Not sure how to do it with the BIOS boot. > > Warner How high the resolution would be depends on BIOS. For me, the panel on the notebook is 4k, but UEFI BIOS reports 1024x768 at maximum. With this in mind, one or more of the variables below in /boot/loader.conf would work. Rewrite the value as you want AND the BIOS reports available. vbe_max_resolution worked for my ThinkPad P52. As I added them in this order one by one, kern.vt.fb.default_mode and efi_max_resolution didn't work for me (even if I've set them to 1024x768. My previous notebook (already broken) worked with kern.vt.fb.default_mode in conjunction with vesa.ko, IIRC. Note that you would need specifying vt font size via screen.font variable. Otherwise vt would use larger font automatically. I use 8x16. ## Console (vt) default mode # kern.vt.fb.default_mode="1024*768" kern.vt.fb.default_mode="1920*1080" efi_max_resolution="2160p" # efi_max_resolution="1600x900" # Set the max resolution for EFI loader to use: # 480p, 720p, 1080p, 2160p/4k, 5k, or # specify WidthxHeight (e.g. 1920x1080) vbe_max_resolution=1024x768 -- Tomoaki AOKI