Posts Tagged ‘free software’

3D graphics on Linux

As I mentioned in my post about free software, one of the problems with my current Ubuntu installation is my use of a non-free graphics driver. I would prefer to find a way to use free software and still have some hardware acceleration support, e.g. for compiz and for video playback. (I found a good tutorial on how to fix video tearing.)

As a side note, I have a free graphics driver with hardware acceleration working on my Eee 900. This is mainly because the eee pc has Intel integrated graphics. On the other hand, its performance is nothing to write home about.

The target system is an HP Compaq dc7900, with an ATI Radeon HD 2400 XT (RV610). I am currently running Ubuntu Linux 10.04 LTS with the fglrx driver.

Testing your existing setup

The old way to check for hardware acceleration was the following:

$ glxinfo | grep rendering
 direct rendering: Yes

where a Yes means you do have rendering. However, I learned that a system can answer yes even if it is not using hardware acceleration. The proper command is:

$ glxinfo | grep OpenGL
 OpenGL vendor string: Tungsten Graphics, Inc
 OpenGL renderer string: Mesa DRI Intel(R) 915GM
GEM 20100330 DEVELOPMENT x86/MMX/SSE2
 OpenGL version string: 1.4 Mesa 7.10.2
 OpenGL extensions:

The item of interest is the “renderer string.” If it says “Software rasterizer,” then your system is emulating OpenGL instead of using hardware acceleration. Here is some more documentation on how to check your setup using glxinfo.

Some definitions

  • OpenGL is a standard specification for writing applications that produce 2D and 3D computer graphics. Basically, it is an API.
  • Mesa 3D is an open source implementation of OpenGL, providing the library that applications can call into.
  • Direct rendering interface (DRI) are drivers that Mesa uses to translate OpenGL function calls into GPU-instructions.

When the DRI is present, this would constitute hardware acceleration. It has a userspace component and a kernel space component, which is the direct rendering manager (DRM)

The “driver” that is specified in xorg.conf is actually a relatively basic driver that performs the 2D tasks, including compositing and video acceleration. All 3D calls are passed on to Mesa. See the section about DDX (Display Driver for X) in Linux Graphics Driver Stack Explained.

Kernel Mode Setting (KMS) is the notion that the code to set the video card’s mode is moved into the kernel. The mode is the color depth and resolution of a monitor. Previously, the mode setting code resided in the X server. In the new scheme, it resides in the kernel. This provides the following advantages, as given in Debian 6 Release Notes:

  • More reliable suspend and resume
  • Ability to use graphics devices without X
  • Faster VT switch
  • Native mode text console

Free software Firefox extensions

As a follow up to my previous post about free software, I decided to look at another type of software: browser extensions. Ubuntu 10.04 has Firefox 3.6.18 on it, and I added some extensions to bring the browser’s features a little up to date. I wanted to see if these extensions that I use are under a free software compatible license. The majority of them were, but some took more hunting than others to confirm this.

  • Advertising Cookie Opt-out Apache License 2.0 (Google code)
  • CookieCuller Mozilla Public License (mozdev.org)
  • Download Statusbar This and CookieCuller stumped me until I looked at the legal notice at mozdev.org where it states “All code for each project hosted on the Site must be made available under the Mozilla Public License (MPL) unless otherwise noted on the project pages.”
  • Firebug From the extension home page, go to “Get Involved,” then to the page on google code. It uses the New BSD License.
  • FlashGot The only mention I could find is on the features page, where they say “Alternatively, since FlashGot is open source (GPL)…” This license could be more clearly stated.
  • GMarks Mozilla Public License version 1.1 (addons.mozilla.org)
  • Hide Menubar Mozilla Public License version 1.1 (addons.mozilla.org)
  • HTTPS-Everywhere GNU GPL version 2
  • New Tab JumpStart Mozilla Public License version 1.1 (Google code)
  • SQLite Manager Mozilla Public License version 1.1 (Google code)
  • Stop-or-Reload Button The developer’s home page is no longer active, but the extension’s page on addons.mozilla.org states the license as BSD license. In newer versions of Firefox, this extension is no longer needed because the functionality is built in.
  • Ubuntu Firefox Modifications

Extensions without a free license:

  • Personal Menu (can’t find any documentation on the license, though the source code is publicized here)
  • Resizeable Textarea Trying to visit the home page on this one locks up the Add-ons window. In newer versions of Firefox, this extension is no longer needed because the functionality is built in.

Free software on my computer

I am intrigued by Richard Stallman’s free software philosophy, and while I would not consider myself a free software fanatic, I wanted to see how much non-free software I have on my primary computer.

My primary computer is an HP Compaq dc7900. I’m running Ubuntu 10.04 LTS as my main operating system. Right now I have the following non-free software programs on it, and I think this is a representative list for many GNU/Linux enthusiasts:

  • Graphics driver
  • A few games (Sauerbraten, Urban Terror, Assault Cube)
  • Skype
  • Flash plugin
  • Microsoft fonts

These packages can be easily found by using “Virtual RMS” (ubuntu package vrms), which basically gives advice that Richard M Stallman would give if he looked at the list of software on my computer.

Web browser extensions

Then I thought I should examine the list of web browser extensions I use regularly to see if they are open source.

Chrome

Lately Chrome has been my main browser. I like Chrome’s default feature set, and I’ve only needed to add 3 extensions to it.

  • RSS Subscription Extension (by Google). I guess this really is by Google, because all the bug links on the extension info page link to crbug.com, which redirects to the chromium google code project. This doesn’t make clear which license is used.
  • Super Full Feeds for Google Reader. This extension is simple. As soon as you visit the developer website, you can see that the code license is GNU GPL v3
  • Yet Another Google Bookmarks Extension. This developer page does not make clear what license is used.