Archive forAugust, 2009

Bluetooth headphone with Ubuntu Jaunty

Well, I recently got a pair of Dell Bluetooth headphone and was trying to use with Ubuntu 9.04 on my laptop. I went through the forums which suggested a lot of things, but this are the steps that really worked for me. I am summarizing the steps that were involved in pairing the headphone with the laptop. Before using the below, please install `pulseaudio` server.

prasanta@ophiophagus:~$ sudo apt-get install pulseaudio

1. Turn on the headset in pairing mode.
2. Open the terminal and use the following commands,

prasanta@ophiophagus:~$ hcitool scan
Scanning …
00:16:44:21:D5:4F Dell

4. Create a .asoundrc file in your home directory,

prasanta@ophiophagus:~$ emacs -nw .asoundrc
pcm.btheadset {
type bluetooth
device 00:16:44:21:D5:4F
profile “auto”
}

5. Enable bluetooth headphone to get the audio,

prasanta@ophiophagus:~$ sudo hciconfig hci0 voice 0x0060

6. Now we need to tell PulseAudio for the existence of the bluetooth headphone for sinking output.

prasanta@ophiophagus:~$ pactl load-module module-alsa-sink device=btheadset

7. Once pairing has completed, we can now test to see if we can send audio to the headset. In your terminal, type in the following:

prasanta@ophiophagus:~$ aplay -D btheadset -f s16_le /usr/share/sounds/ubuntu/stereo/dialog-question.wav

Note: it will play only .wav files. It does not play .ogg files.
8. Install PulseAudio Preferences, the PulseAudio Manager and the PulseAudio Device Chooser application.

prasanta@ophiophagus:~$ sudo apt-get install paprefs paman padevchooser

9. Once everything is installed, go to
`Applications->Sound & Video->PulseAudio Device Chooser. `
This will add a black microphone jack icon to your system tray.
10. Do a left-click on the jack icon and a menu appears. In this menu, choose “Manager”. A new window appears. If it’s not already connected, click on the “Connect” button to connect to your local PulseAudio server. When connected, you will see details about it listed.
11. Click on the Devices tab. Under “Sinks” you should see an entry for “alsa_output.btheadset”. This is picked up directly from your .asoundrc file.
12. Now go to the Sample Cache tab. You are shown a list of sounds. Choose a WAV file from this list (it won’t play any other format). At the bottom is a “Playback on” drop-down. Choose “alsa_output.btheadset” from this list and click on the Play button. You should hear the Ubuntu “login ready” sound through your speakers. This proves to us that PulseAudio can play through your Bluetooth headpone (but this is NOT the redirection – this is just a test).
13. Close the PulseAudio Manager.
14. Do another left-click on the mic jack icon in your system tray.
15. Go to “Default Sink” and then choose “Other” from the sub-menu. A window appears. In this window, type in “alsa_output.btheadset” and click OK.

Woh! you are ready to rock.

To switch back to your speakers, simply click on the mic jack icon again, choose “Default Sink” and choose “Default” from the sub-menu. The next audio stream played will go back through your speakers.

Note: When you try to reload the module, it gives out an error, Module Authorization Failed. After unloading the modules it works, but most of the times it does not.

I am not able to go around this problem even after restarting bluetooth. Hope to find a solution.

Tutorials:
http://bluetooth-alsa.sourceforge.net/build.html
http://forums.overclockers.com.au/showthread.php?t=780054

Comments

Waqt Nahi …

Har khushi Hai Logon Ke Daman Mein,
Par Ek Hansi Ke Liye Waqt Nahi.
Din Raat Daudti Duniya Mein,
Zindagi Ke Liye Hi Waqt Nahi.

Maa Ki Lori Ka Ehsaas To Hai,
Par Maa Ko Maa Kehne Ka Waqt Nahi.
Saare Rishton Ko To Hum Maar Chuke,
Ab Unhe Dafnane Ka Bhi Waqt Nahi.

Saare Naam Mobile Mein Hain,
Par Dosti Ke Liye Waqt Nahi.
Gairon Ki Kya Baat Karen,
Jab Apno Ke Liye Hi Waqt Nahi.

Aankhon Me Hai Neend Badee,
Par Sone Ka Waqt Nahi.
Dil Hai Gamon Se Bhara ,
Par Rone Ka Bhi Waqt Nahi.

Paison ki Daud Me Aise Daude,
Ki Thakne ka Bhi Waqt Nahi.
Paraye Ehsason Ki Kya Kadr Karein,
Jab Apne Sapno Ke Liye Hi Waqt Nahi.

Tu Hi Bata E Zindagi,
Iss Zindagi Ka Kya Hoga,
Ki Har Pal Marne Walon Ko,
Jeene Ke Liye Bhi Waqt Nahi………

Comments

Square root of three

Some lines from the movie `Harold and Kumar Escape from Guantanamo Bay`.

I fear that I will always be
A lonely number like root three
A three is all that’s good and right
Why must my three keep out of sight
Beneath a vicious square-root sign?
I wish instead I were a nine
For nine could thwart this evil trick
With just some quick arithmetic
I know I’ll never see the sun
As 1.7321
Such is my reality
A sad irrationality

When, hark, just what is this I see?
Another square root of a three
Has quietly come waltzing by
Together now we multiply
To form a number we prefer
Rejoicing as an integer
We break free from our mortal bonds
And with a wave of magic wands
Our square-root signs become unglued
And love for me has been renewed.

Comments (3)

Server Uptime

A nice screen shot to be uploaded in the blog, as a sysadmin. Will keep it updated as days pass by.

screenshot

Comments

Ride to Muthyala Maduvu (Pearl Valley)

Participants:

1. Shrikant Gaikwad
2. Myself

Date: 2nd August, 2009

Mode of Transport: Bajaj Platina 125 cc

Muthyala Maduvu which means Pearl Valley, is a picnic spot with a small waterfall. The attraction of the spot is the waterfalls which is formed by thin jets of water which gushes downs. The jets of water form a pond giving it the notion of pearls.

Route Information:

Pearl Valley is about 40 kms from Bangalore. It is in the periphery Bannerghatta National Park. One needs of take Bannerghatta Road and reach Bannerghatta National Park. Continue beyond and reach Anekal. Take a right turn at Anekal and after about 15 minutes drive you will reach the spot. At the top of the hill you can find a KSTDC hotel.

Approach road to Pearl Valley

Steps towards the valley

Stream flowing down the valley

Comments