From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 14 17:30:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 48C82C19 for ; Sun, 14 Jul 2013 17:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 28C9FA9B for ; Sun, 14 Jul 2013 17:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6EHU2tj011301 for ; Sun, 14 Jul 2013 17:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6EHU2mk011300; Sun, 14 Jul 2013 17:30:02 GMT (envelope-from gnats) Resent-Date: Sun, 14 Jul 2013 17:30:02 GMT Resent-Message-Id: <201307141730.r6EHU2mk011300@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Julio Merino Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4C3ACAC8 for ; Sun, 14 Jul 2013 17:20:49 +0000 (UTC) (envelope-from julio+host-mastodon-jmmv@meroh.net) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id E8F2AA2B for ; Sun, 14 Jul 2013 17:20:48 +0000 (UTC) Received: from [108.176.158.82] ([108.176.158.82:65529] helo=portal.meroh.net) by hrndva-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id A7/A4-21735-9EDD2E15; Sun, 14 Jul 2013 17:20:41 +0000 Received: from mastodon.meroh.net (mastodon.meroh.net [192.168.1.12]) by portal.meroh.net (Postfix) with ESMTP id D5979EFE67 for ; Sun, 14 Jul 2013 13:20:37 -0400 (EDT) Received: from mastodon.meroh.net (localhost [127.0.0.1]) by mastodon.meroh.net (8.14.7/8.14.7) with ESMTP id r6EHKU1c085035 for ; Sun, 14 Jul 2013 13:20:30 -0400 (EDT) (envelope-from jmmv@mastodon.meroh.net) Received: (from jmmv@localhost) by mastodon.meroh.net (8.14.7/8.14.7/Submit) id r6EHKUPK085034; Sun, 14 Jul 2013 13:20:30 -0400 (EDT) (envelope-from jmmv) Message-Id: <201307141720.r6EHKUPK085034@mastodon.meroh.net> Date: Sun, 14 Jul 2013 13:20:30 -0400 (EDT) From: Julio Merino To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: kern/180558: Change syscons to support consoles at 1920x1200 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Julio Merino List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jul 2013 17:30:02 -0000 >Number: 180558 >Category: kern >Synopsis: Change syscons to support consoles at 1920x1200 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jul 14 17:30:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Julio Merino >Release: FreeBSD 10.0-CURRENT powerpc >Organization: >Environment: System: FreeBSD mastodon.meroh.net 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sun Jun 30 08:05:23 UTC 2013 root@snap.freebsd.org:/usr/obj/powerpc.powerpc64/usr/src/sys/GENERIC64 powerpc >Description: This is a followup PR from: http://lists.freebsd.org/pipermail/freebsd-ppc/2013-April/006236.html My original problem description said: ----- I have a PowerMac attached to a 24" widescreen capable of 1920x1200 at 60Hz. The graphics card is an nVidia GeForce FX 5200 Ultra (NV34). OpenFirmware properly sets up the screen to its highest resolution and uses the full display to show the console. When FreeBSD powerpc64 9.1 boots, I get a 4:3 console centered on the screen. According to the monitor's built-in information panel, however, the screen is properly set up to 1920x1200. This makes me believe that FreeBSD is correctly setting the display to its native resolution but, for some reason, forces the console to be 4:3 (which is a 72 lines by 99 columns). ----- As it turns out, and as nwhitehorn@ pointed out in a reply, the problem comes from a hardcoded limit in syscons that at the moment is set to support consoles on 1600x1200 displays at most. Given that screens with a native resolution of 1920x1200 are very common today (24"), I would like to request that the default value of COL in syscons is bumped to support them properly -- hence this PR. >How-To-Repeat: Boot FreeBSD powerpc64 on a machine with a display that has a native resolution of, at least, 1920x1200. The fact that I'm experiencing this on powerpc64 is irrelevant given that the problem is in the generic syscons code. >Fix: syscons should probably not have such a hardcoded limit. However, fixing that is out of scope for this PR and deserves its own report. The following does the trick for me: Index: syscons.h =================================================================== --- syscons.h (revision 253339) +++ syscons.h (working copy) @@ -145,9 +145,9 @@ /* The following #defines are hard-coded for a maximum text resolution corresponding to a maximum framebuffer - resolution of 1600x1200 with an 8x8 font... + resolution of 1920x1200 with an 8x8 font... */ -#define COL 200 +#define COL 240 #define ROW 150 #define PCBURST 128 >Release-Note: >Audit-Trail: >Unformatted: