[PATCH 3/5] nouveau: Add interface to detect optimus support

Lekensteyn lekensteyn at gmail.com
Mon Sep 10 09:25:33 PDT 2012


Hi Dave,

> +bool nouveau_is_optimus(void) {
> +	return nouveau_dsm_priv.optimus_detected;
> +}
This will only work for new Optimus laptops, not the older ones such as your 
Lenovo T410s or on a Dell Vostro 3500 with a GT 310M. Is that intended? If 
not, check for those models too:

	return nouveau_dsm_priv.optimus_detected || 
          nouveau_dsm_priv.dsm_detected;

Regards,
Peter


More information about the dri-devel mailing list