Monitor autodetection (was: my experience with testing flight 5...)

Paul Sladen ubuntu at
Tue Mar 14 14:56:50 GMT 2006

On Mon, 13 Mar 2006, Martin Kreiner wrote:
> > I don't see how it is possible for your monitor to convey to the X
> > server the fact that the recommended resolution is 1280x1024.

The DDC protocol (see 'ddcprobe') is able to convey the capabilities of the
monitor to the host device.

> - try to figure out if its LCD or CRT ("ddcprobe" and "hwinfo")
> - if LCD: use highest supported resulution (=native LCD resolution)
>   if CRT:
>     - get the size of the monitor ("ddcprobe" and "hwinfo")
>     - calculate a "suitable" default resolutions (e.g. 19'' -> 1280x1024)

'xresprobe' is currently what's used.  It is installed by default for setup
and calls many of the utilities above---including starting an X server to
grep the output for useful data-points.

It might be best to look at extending that.  It's all written in shell and
the various components are in:


Britain is just cold, in a pesky way.  Southampton, GB

More information about the ubuntu-devel mailing list