Thursday 25 December 2008

Knowing the Path

Often the question I get asked is really just asking, "What do I say next to win the debate."

To date my answer has been along the lines of, "There is no spoon", an answer calculated to infuriate Orlando, but really directed towards rejecting the premise of the question in the hope of providing a purpose at the same time as providing a tool.

What do we mean by "winning"? Is it the journey? Will we only know once we get there? (In which case, yes, it's the journey thing).

Further Info:
"Eight ways to get exactly what you want" by Dan Jones and Alison Motluk, NewScientist, Issue 2655, 7 May 2008
"Digital billboards get a little creepier" by Alana Semuels, LA Times, 27 October 2008
"More Reflections on Bobby Fischer" by Patrick J Lyons, The New York Times, 18 January 2008
"The Behavioral Revolution" by David Brooks, NYtimes.com, 27 October 2008

Wednesday 10 December 2008

[Solved] Ubuntu HDMI Audio (GeForce 8200)

After a LiveCD install of Intrepid there's no sound! Sigh... Ctrl-Alt-F1 to get a terminal.

Step 1 - Kill Pulse Audio & Install ALSA
Install the following packages:

% sudo apt-get install alsa-oss
% sudo apt-get install libasound2
% sudo apt-get install libasound2-plugins
% sudo apt-get install sysv-rc-conf


Move Pulse Audio (to the home folder) and then turn it off:

% sudo mv /etc/Xll/Xsession.d/70pulseaudio ~/
% gconftool-2 -s -t bool /apps/gnome_settings_daemon/plugins/sound/active
% asoundconf unset-pulseadio

Remove Pulse Audio from runlevel:

% sudo sysv-rc-conf
(page down until you find "pulseaudio" then uncheck all the boxes, save and exit)

Configure ALSA to use your sound card:

% asoundconf list
Names of available sound cards:
[card name]
% asoundconf set-default-card [card name]

And ensure that libao.conf is using ALSA:

% sudo nano /etc/liabo.conf
default_driver=alsa


Step 2 - Install nVidia & ALSA Drivers
First, kill the GUI (you can restart it using gdm):

% sudo /etc/init.d/gdm stop

Uninstall the proprietary drivers if you installed them (Ubuntu will probably recommend you get proprietary driver version 173 or 177 when you first install).

% sudo apt-get remove nvidia-glx

Now download the latest nVidia drivers from here (I'm using Linux IA32 version 177.82) and install:

% sudo sh [NVIDIA-Linux-x86-177.82.pkg1.run]
(Follow the prompts... Yes, Agree, OK, Next, Yes)

Reboot the computer and download the latest ALSA drivers from here (I'm using "alsa-driver-1.0.18a.tar.bz2"). You'll then need to decompress the file, go to the directory it creates and install:

% bunzip2 -c [alsa-driver-1.0.18a.tar.bz2]
% cd [~/directory name]
% ./configure
% make
% sudo make install


Reboot the computer again, then see what you have:

% aplay -l

Hopefully you have a device with "HDMI" in it. If not, try looking here.

Now navigate to System->Preferences->Sound and turn everything from "auto-detect" to the HDMI device (and disable ESD if it is enabled).

Open up the volume control (double click on the speaker icon or gnome-volume-control) and change "Device" to the HDMI device.

Then select "Preferences" and check anything with "IEC958" in it (also, in "Playback" make sure the IEC958 device is not muted!)

Further info:
RKHTPC