Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2002 22:07:19 -0400
From:      "Charles Swiger" <cswiger@mac.com>
To:        <freebsd-stable@FreeBSD.ORG>
Subject:   syscons & LCDs...
Message-ID:  <003901c24592$d1fd5ee0$0301a8c0@prime>

next in thread | raw e-mail | index | archive | help
Hi, all--

Assuming a RELENG-4.6 system with the following kernel options:

options VESA
options SC_PIXEL_MODE

...how can you best optimize the syscons display for a LCD with a native
resolution of 1280x1024?  Here's an excerpt of 'vidcontrol -i':

fb0:
    vga0, type:VESA VGA (5), flags:0x700ff
    initial mode:24, current mode:258, BIOS mode:3
    frame buffer window:0xa0000, buffer size:0x400000
    window size:0x10000, origin:0x0
    display start address (0, 0), scan line width:100
    reserved:0x0

    mode#     flags   type    size       font      window      linear buffer
----------------------------------------------------------------------------
--
  0 (0x000) 0x00000001 T 40x25           8x8   0xb8000 32k 32k 0x00000000
32k
  1 (0x001) 0x00000001 T 40x25           8x8   0xb8000 32k 32k 0x00000000
32k
  2 (0x002) 0x00000001 T 80x25           8x8   0xb8000 32k 32k 0x00000000
32k
  3 (0x003) 0x00000001 T 80x25           8x8   0xb8000 32k 32k 0x00000000
32k
[ ... ]
 24 (0x018) 0x00000001 T 80x25           8x16  0xb8000 32k 32k 0x00000000
32k
[ ... ]
256 (0x100) 0x0000000f G 640x400x8 1     8x16  0xa0000 64k 64k 0xfc000000
4096k
257 (0x101) 0x0000000f G 640x480x8 1     8x16  0xa0000 64k 64k 0xfc000000
4096k
258 (0x102) 0x0000000b G 800x600x4 4     8x16  0xa0000 64k 64k 0x00000000
4096k
259 (0x103) 0x0000000f G 800x600x8 1     8x16  0xa0000 64k 64k 0xfc000000
4096k
260 (0x104) 0x0000000b G 1024x768x4 4    8x16  0xa0000 64k 64k 0x00000000
4096k
261 (0x105) 0x0000000f G 1024x768x8 1    8x16  0xa0000 64k 64k 0xfc000000
4096k
262 (0x106) 0x0000000b G 1280x1024x4 4   8x16  0xa0000 64k 64k 0x00000000
4096k
263 (0x107) 0x0000000f G 1280x1024x8 1   8x16  0xa0000 64k 64k 0xfc000000
4096k
[ ... ]
331 (0x14b) 0x0000000f G 720x480x16 1    8x16  0xa0000 64k 64k 0xfc000000
4096k
332 (0x14c) 0x0000000f G 720x576x16 1    8x16  0xa0000 64k 64k 0xfc000000
4096k

I've gotten as far as using 800x600, as that interpolates better than the
720x480 resolution it seemed to default to (80x25, I guess).  I'd really
prefer to drive it at the native resolution instead, however...aka mode 263.
If my best bet is to install X11, I guess I'll bite the bullet and do so,
but I'd really prefer to use text-based consoles if I still can.

-Chuck

PS: If the hardware details help, the LCD is a ViewSonic VX900, and here's
"dmesg":

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.6.2-RELEASE #7: Fri Aug 16 20:57:43 EDT 2002
    root@sec.local:/usr/obj/usr/src/sys/SEC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (300.01-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x634  Stepping = 4

Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,M
MX>
real memory  = 201326592 (196608K bytes)
avail memory = 192036864 (187536K bytes)
Preloaded elf kernel "kernel" at 0xc03ae000.
VESA: v3.0, 4096k memory, flags:0x1, mode table:0xc0345482 (1000022)
VESA: STB Velocity 128 (RIVA 128)
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries at 0xc00fdf40
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NVidia/SGS-Thomson Riva128 graphics accelerator> at 0.0 irq 11
[ ... ]
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>

I can swap in another video card if it would make a difference.
(It's been hot here in NYC, and the RIVA 128 doesn't even need a heatsink.)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003901c24592$d1fd5ee0$0301a8c0>