BinaryDriverEducation

Revision 34 as of 2006-11-14 05:26:01

Clear message

Summary

We are installing non-Free drivers by default, but this situation causes both support problems in the short term and viability problems in the long term. Therefore we need to educate users about the problem, encouraging them to avoid hardware that requires such drivers. This should be done using a notification bubble on login, an extra section in the Device Manager, and a CGI script on Ubuntu.com for providing up-to-date information about alternative hardware.

Rationale

A large proportion of people using Ubuntu -- including 70%-80% of people with new computers -- need a non-Free driver for reasonable performance from their graphics card, wireless card, or modem, because there is no Free driver available. This is a problem, because:

  • we are completely dependent on the hardware vendor for bug fixes, even for security bugs
  • security fixes need careful testing, because we don't know what changed in the update
  • we don't know the vendor's roadmap for updates
  • we don't have any service-level agreement
  • any problems with the "tainted" kernel [http://www.tux.org/lkml/#s1-18 will not get attention from upstream kernel developers].

In most cases there is alternative hardware with Free drivers available. In the case of graphics cards, Intel onboard cards are available, but their performance isn't as good (lagging behind the ATI/Nvidia cards), and they aren't available as separate components.

We have chosen to install non-Free drivers by default. This is a polarizing issue, because other distributors have made different choices — [http://wiki.debian.org/NvidiaGraphicsDrivers#head-406d3dad648f663d3a578addb21f289fd5daa658 Debian], [http://lwn.net/Articles/195351/ Fedora], and [http://lists.opensuse.org/opensuse-announce/2006-02/msg00003.html OpenSuse] do not install proprietary drivers by default — and because some see proprietary drivers as [http://ussg.iu.edu/hypermail/linux/kernel/0512.0/0972.html a threat to the future viability of Linux].

As long as Ubuntu does ship proprietary drivers in the short term, we should take steps to improve the situation in the long term. We believe the best way to do this is to convey the problem to people using Ubuntu — explaining why we distribute non-Free drivers at all, what the risks are, and what people can do to avoid such hardware in future.

Scope

To begin with, the notification should apply to modules provided in linux-restricted-modules:

  • video (fglrx, nvidia)
  • modems (fritz isdn/dsl modules, lt-modem)
  • wifi (ath_hal aka madwifi, contains a binary blob for FCC compliance — work has begun on a Free version, but nothing usable yet)
  • 3945 Intel wireless card, which has Free driver + binary blob (though this should be replaced by a Free version in Feisty)

Out of scope:

  • firmware (even upstream kernel hackers don't worry about that)
  • ndiswrapper (see "Future work")

  • what happens if a fully functional Free driver becomes available for hardware that formerly didn't have one (see [:AcceleratedX:AcceleratedX]).

Use cases

  • Danilo is a gamer who currently dual-boots Windows 2000. He upgrades his system every six months or so, and is interested in getting the best video performance possible.
  • Clara administers her own computer in a small accounting office, but will not have the budget to upgrade her computer any time soon. She does not want to be pestered about hardware problems.
  • Federico's work laptop was stolen at a conference. He bought a new one in a hurry, and didn't pay much attention to what Ubuntu said about proprietary drivers. A week later, he remembers that Ubuntu said something about the Device Manager, so he opens it out of curiosity.
  • Harriet had Ubuntu installed on her computer a couple of days ago, by a nephew who has now gone on a camping holiday. Harriet does not know what a "driver" is.

Design

Startup notification

When you log in to Ubuntu on a computer where non-Free drivers are required for acceptable performance:

  • If you are not an administrator, you likely can do nothing about the hardware situation, so nothing special should happen.
  • If you are an administrator who is logging in to an Ubuntu installation for the first time, it is important for your first impression to be of an elegant uncluttered system, so nothing special should happen.
  • If you are an administrator, and:
    • you are logging in to an Ubuntu installation for the second time, or

    • your hardware has changed such that this is the first time you are using a particular non-Free driver, or

    • you are using a live CD (we detect this by adding a switch --force-run and casper changes the /etc/xdg/autostart file to use this)
    Ubuntu should notify you about the problem with the non-Free drivers.

The notification should take the form of a notification bubble, which should read:

  • To make this computer’s ______ work properly, Ubuntu is using driver software that cannot be supported. To learn more, open the Device Manager.

    Open Device Manager

The first sentence should refer to "display", "modem", "wireless connection", or (if multiple devices have the problem) "hardware".

Device Manager notification

On a system using proprietary drivers, the Device Manager should have a "Proprietary Drivers" section above the "Computer" section. This section should be selected by default whenever the Device Manager is launched. Whenever it is selected, the main pane should explain the problem in this format:

  • To make this computer’s ______ work properly, Ubuntu is using driver software that cannot be supported. Because the software is proprietary, it cannot easily be changed to fix any future problems. Proprietary drivers in use:

    • foo (video card)
    • bar (wireless card)
    You can avoid this issue with your next computer, by choosing hardware from more cooperative manufacturers. ( More Information... )

Ubuntu.com site

Clicking "More Information..." should open your default Web browser to a page on ubuntu.com that:

  • explains the problem in general
  • describes the particular device (or devices) with the problem on your computer in particular
  • links to vendors of alternative hardware, if available
  • possibly links to an Ubuntu forum section for discussing the issue.

The page should be iteratively redesigned to be understandable, tactful, and non-confrontational.

To count the proportion of users using proprietary drivers without breaching people's privacy, the hardware database client should record and calculate the proportion of people using each proprietary driver (see also IncreaseHardwareDatabaseParticipation).

ubuntu.com should count the number of Ubuntu installations (not including live CD sessions) that access its information on each driver.

Implementation

Local code

A small pygtk program should be put in the user's session using /etc/xdg/autostart. Because this application is run in every session we may consider writing it in C to optimize for slower hardware and faster startup (this needs to be benchmarked). It will have a switch "--force-check" that will makes it always check. This will be used on the livecd (casper changes the autostart file).

For counting the number of times people click "More Information..." for each driver:

  • the URL is opened with an extra parameter indicating it was accessed from the Device Manager
  • ubuntu.com redirects from any URL containing the parameter to the same URL without the parameter, so that if the resulting page is bookmarked/e-mailed/etc, subsequent visits aren't counted
  • in a live CD session, Ubuntu opens the URL without the parameter.

The appropriate URL pattern and values should be finalized with the Ubuntu Web team during the Feisty cycle.

To tell whether the ATI or Nvidia package is being used, we should check /etc/X11/xorg.conf for not-commented-out "Driver 'nvidia/fglrx'". For the other drivers we should check /proc/modules.

Ubuntu.com code

Ubuntu.com should have a CGI that accepts one or more parameters identifying particular proprietary drivers, and returns the page containing information about those drivers.

  • Canonical support staff are writing whitepapers; Kurt von Finck's (mneptok's) first will be about the pitfalls of binary drivers. When done, this should be adapted for the overview section of the Web page.
  • A very simple database will be needed on ubuntu.com, to count (to the extent practical without unique IDs) how many unique visitors there were to pages about each driver.

Future work

  • We should extend this to detect use of ndiswrapper, for which Ubuntu will need to determine whether there is a Free equivalent to the Windows driver being used.

  • Implement for Kubuntu.

See also EthicalInfo, IssueNotificationServiceSpecification.

Alternative approaches

  • We considered using ubuntu.com to count the number of unique Ubuntu installations on which people accessed information on each driver:
    • Ubuntu would generate a UUID for the system
    • this ID would be included in the URL
    • ubuntu.com would redirect from any URL containing the ID parameter to the same URL without the ID, so that if the page was bookmarked/e-mailed/etc, visits from other computers wouldn't be counted
    • in a live CD session, Ubuntu would open the URL without any ID parameter.
    We decided not to do this, because people might not like Ubuntu giving their system a unique identifier.
  • We considered presenting the notification regularly but very infrequently (once every three months), but this approach was rejected.
  • Instead of checking at the session level for non-free modules, we could do it at the modprobe level. This would be better in reacting immediately to newly-connected hardware, but much more complicated to implement.

Comments

Considering graphics cards, >50% (ca. 65%?) of graphics chips sold in new computers are Intel graphics, which have completely Free drivers. So Intel dominates the market, and the newer chipsets, while not rocket speed, are completely capable of smooth Compiz operation etc. Additionally, ATI Radeon 7000 - 9800 and X300 - X800 cards have working 2D & 3D open source drivers, and with those cards fglrx should not be used by default (even though the open source drivers are not optimal in performance). Also NVIDIA cards have 3D drivers in [http://nouveau.freedesktop.org development]. * LunaTick : If Ubuntu insists on installing proprietary drivers by default instead of making them easier to install, then the damage is largely done. In order for this spec to have any actual impact, it should make it easy for the user to revert to the open source drivers and accept the performance hit. Could we tell them the difference between the drivers (e.g. "The open source driver is unable to perform well in 3D applications", "Cannot connect to WPA networks" or "Does not work at all") and provide an option to use the open source driver instead. I agree that we need to encourage the purchase of hardware that supports open source but the other method to address this issue is to encourage the use of the open source drivers when they are good enough for the user. To just tell the user that they have done a bad thing without offering any solution but changing their hardware leaves them hanging...