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