Re: fbdv/fbcon pending problems
From: Otto Solares <hidden>
Date: 2004-02-25 02:18:00
Also in:
lkml
On Wed, Feb 25, 2004 at 12:29:52PM +1100, Benjamin Herrenschmidt wrote:
On Wed, 2004-02-25 at 12:21, James Simmons wrote:quoted
quoted
Sure, hopefully fbdev drivers became more 'intelligent', with just a echo "1024x768x16-75" > /sys/class/fbdev/0/geometry they will compute internally the timings or get it from EDID and glad the user with something correct for the hardware. cat /sys/class/fbdev/0/modes will give you the modes supported by the card.Yes.Note that "the modes supported by the card" means nothing. They depend on something fundamentally dynamic, which is what is connected to what output, mixed with some card-spcific limitations (like bandwidth limitations when using 2 very big monitors, vram limitations, etc...) You can not really know a-priori what modes will be available for sure. You can provide a list of modes that are considered as valid for a given output, but the whole mode setting scheme cannot be anything else but non-deterministic. You setup a global configuration, send it down the driver, and obtain a new configuration which may or may not be what you asked for.
Hmm, how does winxp and macosx get their respectives video modes, what is missing in fbdev for that? MacOSX always gives you valid modes including refresh rates per adaptor/monitor, WinXP always give you valid modes and valid refresh rates for the video card, you actually 'Apply' to test, most of the time it simply works.
I'm trying to address the API issues as part of the userland library I'm talking about in the other email. The actual interface to the kernel driver should ultimately be hidden, and eventually private between card-specific kernel driver and card-specific module in the userland API.
Great! i think your idea is great, does that library will be xserver dependant or will be an independent lib so others projects like mine could benefit from it? Any bits somewhere? This alone could boom and revolutionize the graphics solutions for linux. A step in the right direction for "World Domination" in the desktop field. -otto ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click