[Intel-gfx] [PATCH 2/2] Load i915 and fbcon when checking for KMS

Robert Noland rnoland at 2hip.net
Fri May 8 00:18:15 CEST 2009


On Thu, 2009-05-07 at 14:58 -0700, Keith Packard wrote:
> Signed-off-by: Keith Packard <keithp at keithp.com>
> ---
>  src/i830_driver.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/src/i830_driver.c b/src/i830_driver.c
> index 1887a51..3d7b51a 100644
> --- a/src/i830_driver.c
> +++ b/src/i830_driver.c
> @@ -1009,6 +1009,14 @@ static Bool i830_kernel_mode_enabled(ScrnInfoPtr pScrn)
>      busIdString = DRICreatePCIBusID(PciInfo);
>  
>      ret = drmCheckModesettingSupported(busIdString);
> +    if (ret)
> +	if (xf86LoadKernelModule("i915")) {
> +	    ret = drmCheckModesettingSupported(busIdString);
> +
> +	    /* Be nice to the user and load fbcon too */
> +	    if (!ret)
> +		(void) xf86LoadKernelModule("fbcon");
> +	}

Isn't this going to be linux specific?

robert.

>      xfree(busIdString);
>      if (ret)
>  	return FALSE;
-- 
Robert Noland <rnoland at 2hip.net>
2Hip Networks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090507/e23f6f47/attachment.sig>


More information about the Intel-gfx mailing list