Filed under: Features, Linux, Open Source, Troubleshooting
Flipping the Linux switch: Envy, no longer a deadly sin
We're taking a little departure this week from our sometimes successful attempt to be non-distro-specific, and looking at a neat little program that runs on Debian and Ubuntu flavors (including Ubuntu-derivatives, like Mint).Have you ever had the joy of installing restricted or proprietary drivers on Debian or Ubuntu? Most of the time, it really does work like a charm. Sometimes though, something doesn't go quite as planned. We had this happen quite recently with Mythbuntu and an onboard NVIDIA card. The restricted drivers wouldn't work right, and the very latest from NVIDIA compounded our problem.
In our desperation, we tried Envy. Envy is the creation of Alberto Milone. It is an unofficial (so please note you are using it at your own risk) installer for both NVIDIA and ATI drivers. For those of you who are interested, it's a Python/PyGTK application.
We're guessing that most of you just want to get your freakin' video drivers installed, though.
Envy is nifty because it does several things. It can uninstall your old drivers, and not only install the new drivers, but actually preps your system, handling all the driver dependencies, before installing the actual driver.
So how exactly do you use it? It's pretty easy (as far as installing video drivers go). Download the appropriate version of Envy for your Debian, Ubuntu, or Ubuntu derivative distribution. In this instance, we're installing on a Gutsy box, so we're using Envy New (Feisty users will also be using this version).
Once the application is downloaded, open Synaptic (or Adept) and make sure, under repositories, that both "universe" and "multiverse" are checked off. This will allow (hopefully) all the dependencies Envy needs to be installed with Envy. As you will see, sometimes this doesn't happen (but it's easy to fix).

Close Synaptic and right click the Envy package. The option to install will appear in the menu. Let's get the party started, shall we?

An install window appears, with a description of the package. We're sick to death of the ugly vesa graphics already, let's just get this baby installed. Click Install Now.

Enter your root or sudo password, and things should start magically installing. Let Envy go through the motions, and when it's successfully installed, go to Applications>System Tools>Envy in GNOME. (You can also simply run the command "Envy" on the Run Command line in KDE.)

Remember how we said sometimes all the dependencies don't quite make it? Whoops. If that happens, you'll see a little message like this pop up. Fear not. Just go ahead, tell it to try installing them now.

After a few more seconds, Envy should be ready to go.
Here is the main Envy screen. As you can see, it's a standard point and click sort of GUI in this form. (Should you not have a graphical server, it is possible to run Envy via the command line.) Since we're at least partially fortunate today, we're able to run Envy with generic drivers We've an NVIDIA card, so we're taking the default selection.

If we've ever had any ATI or NVIDIA drivers on the system, it's good to run the "Uninstall" option before installing anything else. Envy does try to uninstall if it finds them, but we'd rather not hedge our bets. In general, we've found most major driver snafus come from having old drivers kicking around on the system.
Click "Apply" and Envy snaps into action. It starts downloading all the dependencies and files the selected driver type will need to install Be forewarned. This can take a while.


As the process starts to finish, you'll notice that Envy is accessing the official proprietary drivers from your card manufacturer. It downloads the driver, and runs the proprietary driver's installer script. Very nice for NVIDIA users, who typically have to kill the graphical server to do this.

Finally, Envy asks if you'd like your xorg.conf updated (sure, why not?) and if you'd like to restart your computer (the surest way of getting your new drivers to kick in to gear.)
Our experience with Envy has been largely very positive. It has gotten drivers successfully installed on systems that were being very temperamental. We have never experienced problems with it that go beyond the problems we were already having with our drivers.
That being said, please always try to use the drivers in your distro's repositories first. If they fail for whatever reason, then try Envy. Generally, it's always best to install from a repository if you are able. Also, we've discovered that, at least in Gutsy, it's not terribly easy to enable advanced desktop effects like Compiz-Fusion when using Envy-installed drivers. If Envy is what it takes to get a good looking desktop, sans eye candy, though, it's well worth the time investment!



Reader Comments (Page 1 of 1)
James said 11:08AM on 2-08-2008
Holy shit on toast, this is why Linux will never replace Windows as the king of the "user" (as in "idiot") OS game. Process for installing Windows video driver:
1. Download
2. Run
3. Click "Next" until you can click "Finish".
Process for installing a Linux video driver:
1. Ask a geek to explain what a "package" is, then hope he tells you about aptitude or your platform's equivalent (if you know what your platform even is) rather than signing you up for a 2-week course in dpkg (that's the "basic" level; "advanced" takes a full semester)
2. Figure out what they call your card's package (because you sure can't find out by just going to www.manufacturer.com and looking it up), and which of the variants apply for your model # (though I grant you we've gotten better about unified drivers than we used to be)
3. Try to install your card's package, which it turns out is for hardware revision 34a and under, and yours is revision 37c, which you can find out if you take your card apart and remove one of the heatsink/fan assemblies. The package for _your_ card will be in the Stable repository in a month and a half, if the maintainer can get out of band camp early.
4. Give up and use Envy, if you read Downloadsquad or somebody in a forum knows enough about your problem to point you in the right direction.
Of course, I exaggerate a bit for humor -- more often than not, it probably Just Works -- but I've been using Linux for my secondary PC off and on for almost a decade now, and it still doesn't look like it's ever going to be as "plug and play" easy (for most people) as Windows.
Last night, I finally fixed a borked apt dependency that had been causing my Myth box to show times in GMT (even though I had the timezone set correctly in no less than 3 places) for the last 3 months. The cause? Installing the package for Democracy Player, which I didn't even remember doing, required a libc upgrade, which couldn't quite get all its ducks in a row dependency-wise (because every bloody package depends on every other bloody one, apparently), which resulted in a mismatched libc6 and libc6-dev, which for absolutely no apparent reason causes timezone settings to stop working. And that little story, unfortunately, is the current state of Linux in a nutshell.
Reply
Rusbee said 4:31PM on 2-08-2008
I have used this tool before and on Gutsy. It is so easy to use, but when things go wrong, repairing the damage it not just everyone's cup of tea.
Whenever I installed the video codecs with this, the video's showed up with some green bar and strange colors; it can be fixed with a small tweak, but nonetheless, Gutsy does an impressive job of installing them all by itself.
And the so easy to install and use drivers "can" go badly wrong, forcing you to start in text mode and repair everything in nice old text mode. But then, ATI drivers are not that friendly with 3D effects anyway.
Reply
NoK610 said 10:38PM on 2-10-2008
I had trying running envy to install restricted ATI drivers to my Ubunto box but it pretty much crapped out my installation.
Reply
Alberto Milone said 4:02PM on 2-11-2008
If you can't enable the Desktop effects you can try to enable the Desktop effects (from the "System/Preferences/Appearance" menu), let Restricted Drivers Manager install the driver again, then (don't reboot) use Envy again and finally reboot.
I hope it helps.
Reply
Kristin Shoemaker said 4:15PM on 2-08-2008
Thanks, Alberto! That should help quite a bit.