Geek Lair

Posts Tagged ‘ubuntu

Ubuntu Karmic: 5.1 sound on external sound card

with one comment

Most laptops usually come with stereo audio output. I bought an external USB 5.1 channel sound card and was trying to get 5.1 sound out of it. By default in Ubuntu 9.10, pulseaudio is configured to output stereo. It doesn’t automatically switch to 5.1 if a sound card which supports it is connected. Here is how I got 5.1 audio output through my external sound card:

First edit /etc/pulse/daemon.conf and uncomment this line (delete the ; before the line):

default-sample-channels = 6

Restart. Now if your external sound card is plugged in, pulseaudio will enable 5.1 output on it. All you need to do is go to sound preferences (System -> Preferences -> Sound) and select 5.1 profile for the external sound card in the Hardware tab:

5.1 profile in sound preferences

5.1 profile in sound preferences

and select the external sound card as default output device:

Default output device

Default output device

If your external sound card was not connected while Ubuntu starts, pulseaudio defaults to stereo as the integrated sound card in the laptop is stereo. Now if you connect the sound card, 5.1 options are not available. Only stereo is available:

stereo profile in sound preferences

stereo profile in sound preferences

You have to restart pulseaudio for it to enable 5.1 output. Kill pulseaudio with this command:

pulseaudio -k

In my Ubuntu installation, when I kill pulseaudio, it starts again automatically. If it doesn’t do so, start pulseaudio with this command:

pulseaudio -D

Once pulseaudio restarts, it should have enabled 5.1 output.

Advertisements

Written by anonir

February 17, 2010 at 21:51

Posted in Ubuntu

Tagged with , , ,

mplayer plugin for Firefox in Ubuntu Karmic

with one comment

By default, Firefox in Ubuntu uses totem to play video files. If you want to use mplayer instead, do this:

1. Uninstall the totem plugin:

sudo apt-get remove totem-mozilla

2. My Ubuntu installation also had a gecko mediaplayer plugin. Remove it:

sudo apt-get remove gecko-mediaplayer

3. Install mplayer plugin:

sudo apt-get install mozilla-mplayer

Now enjoy mplayer on your Firefox.

Written by anonir

February 5, 2010 at 20:20

Posted in Ubuntu

Tagged with , ,

Gnome Do startup problem

with 3 comments

If you have added Gnome-do to Startup Applications, sometimes after you login in Ubuntu and launch Gnome-do application selector, it doesn’t work. The issue seems to be that Gnome-do depends on some other program which needs to start first before Gnome-do starts. The issue can be fixed by wrapping the gnome-do command in a shell script which adds some delay¬† and adding that script to Startup Applications instead of gnome-do:


!/bin/bash

sleep 10
gnome-do

Save it to your $HOME/bin folder and add it to Startup Applications

Add gnome-do wrapper to startup

Written by anonir

February 5, 2010 at 00:58

Posted in Ubuntu

Tagged with ,

Amarok 2 – First Impressions

leave a comment »

Installed Amarok 2 following this link: http://www.kubuntu.org/news/amarok-2.0

There is no last.fm integration. The earlier versions had this feature of submitting tracks listened to last.fm. It seems support for mp3 players like ipods was also removed. The interface too looks very minimalistic  and is kind of surprising since KDE apps normally have a lot options.

One improvement is the speed of scanning your collection. It is significantly faster in Amarok 2. Other than this improvement, there is nothing noteworthy in Amarok 2 to warrant an upgrade from 1.4.

Written by anonir

December 13, 2008 at 09:53

Posted in Linux

Tagged with ,