kern/180558: Change syscons to support consoles at 1920x1200
Julio Merino
julio+host-mastodon-jmmv at meroh.net
Sun Jul 14 17:30:02 UTC 2013
>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 at 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:
More information about the freebsd-bugs
mailing list