Subject: Re: qtopia
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 06/03/2006 14:51:06
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
> I've been intending to add some WSDISPLAY ioctls for managing
> resolutions/modes. The problem is a little stickier than you might
> suppose at first, especially when you consider devices with multiple
> output ports, etc.
Oh, I'm aware of the stickiness, that's why there is no such API so far.
> Even with a single output port (typically VGA) you
> have the questions of detecting monitor resolutions, virtual vs.
> physical resolutions (you can use a much bigger virtual desktop with
> panning), and e.g. autoexpansion to drive a lower resolution on a
> higher
> resolution monitor (ratiometric expansion that is supported on Radeon
> and perhaps other devices.)
And then there are things like the FFB which support multiple colour
depths on the same screen.
> One thing missing is the ability to enable/disable active ports. (I.e.
> save power by turning off VGA port on a laptop while using the internal
> screen.)
Yeah, the sparcbook has two ports which show the same thing but can be
powered up and down independently.
> It might also be nice to have an event call back so that applications
> can detect monitor changes. E.g. some boards have a way to check for
> the existence of a monitor. (And DVI/TMDS actually has pins defined
> for
> the purpose.) But maybe we can leave this a poll interface for now.
Yes, tctrl actually does that and enables the VGA port when it detects
a monitor.
> No doubt I've missed things. I've not tried to implement any of this
> --
> this is all just intended to act as food for thought. Let me know your
> opinions.
I think video mode and colour depth should be programmed independently,
especially with boards that support multiple depths simultaneously.
have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQEVAwUBRIHaG8pnzkX8Yg2nAQLP7Af/e+J5s7VYXKEbpgPTedJW1r5UdCWWrZKB
J8IVXYTbBogzCnLVjHrrekNdJWY8fI/iz4APn1QhA13YPZBYf4c5w8NYdau4H2Gg
/sR3yvRAn6pUikEWBjbWHqLNjWQOSjCHZyM3pRNvWdWJmzgQkazJW91RvryOsmaV
uvvhVUPz7la2k0YcchLlc++/nVGLRe01JlOGw/NpgHHLCtYGM3Qcifk5PiIoLGTW
nKQHRZP7VnRVd5LiY2oD3EKWpIRJ39Uli3p4CVvbmOXylxcp7x8ewzckLne6dI6g
AokIBmmmrWbxCP+PfP90NIYnJ5tZTUHtW3JY0Py66YRllrLx0WvCMw==
=3mKW
-----END PGP SIGNATURE-----