[TUTO] Résoudre les problèmes concernant Nvidia optimus sous Ubuntu avec bumblebee
Si vous avez des problèmes d’affichage avec la technologie Nvidia optimus, il est très probable que les pilotes graphiques ne fonctionnent pas correctement, concernant la 3D par exemple.
Mais heureusement, il existe à ce jour une solution pour y remédier, elle a fonctionné pour ma part avec ubuntu 11.10 et 12.04 sur mon laptop ASUS-K53SV.
Prérequis:
Être équipé au minimum d’Ubuntu 10.04, les versions supportées sont 10.04, 11.04, 11.10 et 12.04. Il est aussi conseillé de migrer vers la dernière version actuelle (12.04 LTS).
Installation:
Lancez un terminal, puis entrez les commandes suivantes:
Ajout du PPA bumblebee stable:
sudo apt-add-repository ppa:bumblebee/stable
Pour avoir des drivers nvidia plus récents que ceux disponibles dans les repos d’Ubuntu, ajoutez ce PPA :
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
Installation de bumblebee:
sudo apt-get update sudo apt-get install bumblebee
Les paquets suivants seront maintenant installés : bumblebee, bumblebee-nvidia, nvidia-current, nvidia-settings, bbswitch, virtualgl, virtualgl-libs.
Si vous êtes sous Oneiric ou Precise, avec une version 64 bits, les paquets supplémentaires virtualgl-libs-ia32 et virtualgl-libs:i386 seront installés pour fournir la compatibilité avec les applications 32 bits. Sous Precise également, le paquet libjpeg-turbo sera installé.
Vérification du bon fonctionnement:
Après l’installation, redémarrer l’ordinateur pour vérifier qu’aucun problème n’apparaît.
Puis, dans un terminal, entrez ceci :
glxspheres
Une fenêtre doit apparaître avec une animation de sphères colorées. Laisser tourner 30s, puis fermez la fenêtre et notez le résultat.
Puis comparez avec la même chose sur la carte nvidia :
optirun glxspheres
Puis fermez la fenêtre, et notez le résultat.
Normalement, les résultats devraient être largement supérieurs avec optirun.
Il suffit de précéder les commandes qu’on veut lancer sur la carte graphique nVidia par optirun.
Pour plus d’informations à ce sujet, vous pouvez visiter le forum ubuntu-fr.




We tried this, to no avail. What we found was that we had to a) first install the OS wiothut the nVidia cardb) forcibly rename the nouveau.ko module in the /lib/modules tree to nouveau.ko.not-workingc) blacklist the nouveau driverd) reboot the unit, and verify that they didnt come back.e) install the nVidia drivers from nVidia. I had to force the kernel module build/install even wiothut the card.e) power off the unit, put in the nVidia card in. Power it back on.Voila. This worked. The link you provided, didn’t work.So maybe the brain-trust at Canonical and in Ubuntu-land can tell me, exactly, how is this to work with a laptop with a nice nVidia card in it, which we can’t take out and do this procedure with?No, Ubuntu lost themselves a whole bunch of customers with this. If you are from Ubuntu or Canonical, and you read this, it was a very poor decision to render it effectively impossible for mere mortals to chose the driver set they wish to use.I want to use nVidia’s drivers, as I want a) real 3D capability, b) CUDA capability. Neither of which is possible in the current Nouveau.Which, given the direction of accelerated computing on GPUs, and its current focus on CUDA, will very likely be seen as a massive strategic blunder on the part of Canoncial. This decision on their part effectively removes them from consideration for one of the fastest growing aspects of the Linux desktop market.Brilliant move. Really. (where’s that HTML sarcasm tag when you need it).@BrandonYeah, they have been making progressively poorer decisions since 9.04. I am not sure I like 9.04, it is on my laptop and my desktop, and it was a major struggle to get nVidia drivers on there correctly. Their perl build was ok (far better than RedHat), but some of their other bits were rather bad.But as you point out, the other choices are also equally going downhill. Fedora has some serious issues. It has a marginally stable kernel, and it is changing too rapidly to use as a stable desktop/laptop. SuSE is fundamentally in a world of its own. It used to be one of the better distributions, recent experience suggests it is not worth using (OpenSuSE or SLES). RedHat is very far behind on too many things to be useful on the desktop, just try to compile some of the packages that need a modern Gnome or modern X. Yeah, it will do nVidia drivers sanely. But it is notorious for having broken Perl distributions.This is really sad. We lost a focus on providing the best possible user environment, and instead, we have ideology (mis)guiding various driver/package choices. Its almost enough to make one want to use a Mac.I want stuff to work. I don’t want ideology.