Comment 45 for bug 107320

Revision history for this message
puccha (yuri-schaeffer) wrote : Re: [Bug 107320] Re: Large font in the GDM login text field after installing xserver-xorg-video-intel which report monitor having 289x21 millimiters

Paul Dufresne schreef:

> Thinking aloud how I would fix this:
> If DPI.width<MIN_REASONABLE_WIDTH
> if DPI.height<MIN_REASONABLE_HEIGHT
> /* both screwed up */
> Log 'screen report to be too small to be true, ignoring screen size reported by monitor'
> DPI.width and DPI.height = 17 inch monitor values
> else
> DPI.width=4/3 * DPI.height
> Log 'screen width reported by monitor seems too small, adjusting with height.
> else if DPI.height<MIN_REASONABLE_Height
> DPI.height=3/4 * DPI.width
> Log 'screen height reported by monitor seems too small, adjusting with width'
> end if
> return DPI.width and DPI.height

I'm not capable enough to fix these thing but this solution could cause
lots of trouble:

- small screens DO exists. There is no reason to assume a heigth or
width is unreasonble as well as DPI.
- This problem infact occured on my laptop that has a wide screen, this
fix works only for 4x3 monitors. Even the common resolutions 1024x768
and 1280x1024 dont have the same aspect ratio.

I'm not sure where exactly this bug occurs. Is it the monitor hardware,
monitor driver, video hardware or video driver?

In case it is the monitor hardware I think it is better to blacklist
some troubles models and over write its values. I'm confident the models
are detectable (but have no clue how or where this should happen, video
driver?).

If it's a driver issue, well, it should be fixable.