mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Al Boldi <a1426z@gawab.com>
To: "Antonino A. Daplas" <adaplas@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: VESAFB CUSTOM RESOLUTION
Date: Wed, 18 Jul 2007 16:45:01 +0300	[thread overview]
Message-ID: <200707181645.01097.a1426z@gawab.com> (raw)
In-Reply-To: <1184760917.4523.13.camel@daplas>

[-- Attachment #1: Type: text/plain, Size: 6370 bytes --]

Antonino A. Daplas wrote:
> On Wed, 2007-07-18 at 13:42 +0300, Al Boldi wrote:
> > Geert Uytterhoeven wrote:
> > > On Wed, 18 Jul 2007, Sasa Ostrouska wrote:
> >
> > Is there any technical reason why vesafb shouldn't support non-BIOS
> > modes?
>
> vesafb can only use modes included by the vendor in the card's BIOS. The
> mode table contains standard modes defined by VESA, and perhaps
> vendor-defined custom modes. However, the mode ID of custom modes varies
> from card to card, so you have to 'probe' the BIOS first for the list of
> modes and their associated ID.  X + the 'vesa' driver does that probe,
> and so does the lrmi tool vbetest.
>
> So, one cannot just set any mode, unless that mode is already defined in
> the BIOS mode table. In VBE 3.0, you might be able to choose an
> arbitrary vertical refresh rate, but that's the best mode tuning you can
> do with the video BIOS.

Thanks for a great explanation!

Looks like this chip supports VBE 3.0, but it only locks into 60Hz refresh.  
Here is an excerpt; full log attached.


Thanks!

============================
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Loading /usr/X11R6/lib/modules/libvbe.a
(II) Module vbe: vendor="The XFree86 Project"
	compiled for 4.3.0, module version = 1.1.0
	ABI class: XFree86 Video Driver, version 0.6
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/X11R6/lib/modules/linux/libint10.a
(II) Module int10: vendor="The XFree86 Project"
	compiled for 4.3.0, module version = 1.0.0
	ABI class: XFree86 Video Driver, version 0.6
(II) VESA(0): initializing int10
(II) VESA(0): Primary V_BIOS segment is: 0xc000
(II) VESA(0): VESA BIOS detected
(II) VESA(0): VESA VBE Version 3.0
(II) VESA(0): VESA VBE Total Mem: 16384 kB
(II) VESA(0): VESA VBE OEM: VIA P4M800 PRO

(II) VESA(0): VESA VBE OEM Software Rev: 1.0
(II) VESA(0): VESA VBE OEM Vendor: 
(II) VESA(0): VESA VBE OEM Product: 
(II) VESA(0): VESA VBE OEM Product Rev: 
(**) VESA(0): Depth 16, (--) framebuffer bpp 16
(==) VESA(0): RGB weight 565
(==) VESA(0): Default visual is TrueColor
(==) VESA(0): Using gamma correction (1.0, 1.0, 1.0)
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
	compiled for 4.3.0, module version = 1.0.0
	ABI class: XFree86 Video Driver, version 0.6
(II) VESA(0): VESA VBE DDC supported
(II) VESA(0): VESA VBE DDC Level 2
(II) VESA(0): VESA VBE DDC transfer in appr. 1 sec.
(II) VESA(0): VESA VBE DDC read successfully
(II) VESA(0): Manufacturer: API  Model: 9805  Serial#: 1209
(II) VESA(0): Year: 2002  Week: 8
(II) VESA(0): EDID Version: 1.3
(II) VESA(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
(II) VESA(0): Sync:  Separate
(II) VESA(0): Max H-Image Size [cm]: horiz.: 31  vert.: 23
(II) VESA(0): Gamma: 2.90
(II) VESA(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
(II) VESA(0): First detailed timing is preferred mode
(II) VESA(0): redX: 0.645 redY: 0.320   greenX: 0.273 greenY: 0.593
(II) VESA(0): blueX: 0.143 blueY: 0.063   whiteX: 0.282 whiteY: 0.297
(II) VESA(0): Supported VESA Video Modes:
(II) VESA(0): 720x400@70Hz
(II) VESA(0): 640x480@60Hz
(II) VESA(0): 640x480@72Hz
(II) VESA(0): 640x480@75Hz
(II) VESA(0): 800x600@56Hz
(II) VESA(0): 800x600@60Hz
(II) VESA(0): 800x600@72Hz
(II) VESA(0): 800x600@75Hz
(II) VESA(0): 1024x768@60Hz
(II) VESA(0): 1024x768@70Hz
(II) VESA(0): 1024x768@75Hz
(II) VESA(0): 1280x1024@75Hz
(II) VESA(0): Manufacturer's mask: 0
(II) VESA(0): Supported Future Video Modes:
(II) VESA(0): #0: hsize: 800  vsize 600  refresh: 85  vid: 22853
(II) VESA(0): #1: hsize: 1024  vsize 768  refresh: 85  vid: 22881
(II) VESA(0): #2: hsize: 1600  vsize 1200  refresh: 60  vid: 16553
(II) VESA(0): #3: hsize: 1600  vsize 1200  refresh: 65  vid: 17833
(II) VESA(0): Supported additional Video Mode:
(II) VESA(0): clock: 94.5 MHz   Image Size:  310 x 230 mm
(II) VESA(0): h_active: 1024  h_sync: 1072  h_sync_end 1168 h_blank_end 1376 
h_border: 0
(II) VESA(0): v_active: 768  v_sync: 769  v_sync_end 772 v_blanking: 808 
v_border: 0
(II) VESA(0): Monitor name: Acer G781
(II) VESA(0): Serial No: 01209
(II) VESA(0): Ranges: V min: 50  V max: 120 Hz, H min: 30  H max: 86 kHz, 
PixClock max 130 MHz
 :
 :
(II) VESA(0): Total Memory: 256 64KB banks (16384kB)
(II) VESA(0): monitor1: Using hsync range of 30.00-86.00 kHz
(II) VESA(0): monitor1: Using vrefresh range of 50.00-120.00 Hz
(II) VESA(0): Not using built-in mode "1600x1200" (width too large for 
virtual size)
(II) VESA(0): Not using built-in mode "1280x1024" (width too large for 
virtual size)
(--) VESA(0): Virtual size is 1024x768 (pitch 1024)
(**) VESA(0): *Built-in mode "1024x768"
(**) VESA(0): *Built-in mode "800x600"
(**) VESA(0): *Built-in mode "640x480"
(--) VESA(0): Display dimensions: (310, 230) mm
(--) VESA(0): DPI set to (83, 84)
(II) VESA(0): Attempting to use 85Hz refresh for mode "1024x768" (117)
(II) VESA(0): Attempting to use 85Hz refresh for mode "800x600" (114)
(II) VESA(0): Attempting to use 85Hz refresh for mode "640x480" (111)
(**) VESA(0): Using "Shadow Framebuffer"
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/X11R6/lib/modules/libshadow.a
(II) Module shadow: vendor="The XFree86 Project"
	compiled for 4.3.0, module version = 1.0.0
	ABI class: XFree86 ANSI C Emulation, version 0.2
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="The XFree86 Project"
	compiled for 4.3.0, module version = 1.0.0
	ABI class: XFree86 ANSI C Emulation, version 0.2
(II) do I need RAC?  No, I don't.
 :
 :
(II) LoadModule: "int10"
(II) Reloading /usr/X11R6/lib/modules/linux/libint10.a
(II) VESA(0): initializing int10
(II) VESA(0): Primary V_BIOS segment is: 0xc000
(II) VESA(0): VESA BIOS detected
(II) VESA(0): VESA VBE Version 3.0
(II) VESA(0): VESA VBE Total Mem: 16384 kB
(II) VESA(0): VESA VBE OEM: VIA P4M800 PRO

(II) VESA(0): VESA VBE OEM Software Rev: 1.0
(II) VESA(0): VESA VBE OEM Vendor: 
(II) VESA(0): VESA VBE OEM Product: 
(II) VESA(0): VESA VBE OEM Product Rev: 
(==) VESA(0): Write-combining range (0xf4000000,0x1000000)
(II) VESA(0): virtual address = 0xb6d7f000,
	physical address = 0xf4000000, size = 16777216
(II) VESA(0): VBESetVBEMode failed...Tried again without customized values.

--
Al



[-- Attachment #2: x.log.bz2 --]
[-- Type: application/x-bzip2, Size: 6686 bytes --]

  reply	other threads:[~2007-07-18 13:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-18 10:42 Al Boldi
2007-07-18 12:15 ` Antonino A. Daplas
2007-07-18 13:45   ` Al Boldi [this message]
2007-07-18 14:20     ` Antonino A. Daplas
2007-07-18 14:52       ` Al Boldi
2007-07-18 15:07         ` Antonino A. Daplas
2007-07-18 17:38           ` H. Peter Anvin
2007-07-18 22:48             ` Antonino A. Daplas
2007-07-18 16:59   ` Matan Ziv-Av
2007-07-18 22:43     ` Antonino A. Daplas
  -- strict thread matches above, loose matches on Subject: below --
2007-07-17 14:13 Sasa Ostrouska
2007-07-17 14:31 ` Jesper Juhl
2007-07-17 14:42 ` Renato S. Yamane
2007-07-17 15:04   ` Sasa Ostrouska
2007-07-18 11:35   ` Gerd Hoffmann
2007-07-17 20:44 ` Antonino A. Daplas
2007-07-17 21:13   ` Sasa Ostrouska
2007-07-18  1:50 ` Daniel Drake
2007-07-18  6:36   ` Sasa Ostrouska
2007-07-18  9:16     ` Geert Uytterhoeven
2007-07-18  9:50       ` Sasa Ostrouska
2007-07-18 11:19         ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707181645.01097.a1426z@gawab.com \
    --to=a1426z@gawab.com \
    --cc=adaplas@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®