[Openchrome-devel] KM400 screen autodetection

Bartosz Kosiorek gang65
Fri Apr 3 12:17:51 PDT 2009


Hello.
On the KM400 chipset there exist bug: the autodetection of the panel
resolution is not working.

All was described at:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-openchrome/+bug/293326

This happend because in file src/via_mode.c
and function ViaPanelGetIndex(ScrnInfoPtr pScrn, DisplayModePtr mode)

there is check if mode is supported by Panel, and its always sends
fail: "ViaPanelGetIndex: Mode not supported by Panel.".

After comment this lines the resolution is set properly.

For what is that check and variables "mode->PrivSize", "mode->Private"
(which has always value 0) ?

Here is the code:

646	static Bool
647	ViaPanelGetIndex(ScrnInfoPtr pScrn, DisplayModePtr mode)
648	{
...
664	
665	    if ((mode->PrivSize != sizeof(struct ViaModePriv))
666	        || (mode->Private != (void *)&ViaPanelPrivate)) {
667	        xf86DrvMsg(pScrn->scrnIndex, X_INFO,
668	                   "ViaPanelGetIndex: Mode not supported by Panel.\n");
669	        return FALSE;
670	    }


Please see above bug for more details:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-openchrome/+bug/293326

Best Regards
Bartosz Kosiorek




More information about the Openchrome-devel mailing list