krish – 起死回生 [Wake up from death & return to life.]

November 13, 2011

Bluetooth on HP dm1

Filed under: GNU/Linux — krish @ 3:23 am
Tags: , , , , , , , , , , , ,

So the left speaker on my hp dm1 gave up today and was putting out more ‘noise’ than any music.
I’m gonna call their service center tomorrow and see if they can do anything about it without asking me to take backup of my huge data or trying to install Windows on this machine.

Meanwhile, one more device not functioning properly didn’t feel nice (the other device is bluetooth).
I never got to use bluetooth on my laptop.
Pre-installed windows7 was removed in a jiffy from this machine and it ran Ubuntu 10.04 LTS since then.

At first, my Wi-fi had issues with Ubuntu, which I fixed and blogged here –
Now, speakers screwed up.. which I can’t fix.

So, its 3:00 am and I’m pretty much supposed to be in bed-rest (been like that since last 5 days.. with temperature, asthma issues).. anyway let’s get to fixing this!

List my hardware
krish@shenron:~$ sudo hciconfig -a
hci0: Type: USB
BD Address: 88:9F:FA:AC:50:3E ACL MTU: 310:10 SCO MTU: 64:8

Yikes! Something is wrong here. I think I must have tried to do some hack earlier on and left it mid-way.

Let’s fix that first.
krish@shenron:~$ dpkg -l | grep bluez
ii bluez 4.60-0ubuntu8 Bluetooth tools and daemons
ii bluez-alsa 4.60-0ubuntu8 Bluetooth audio support
ii bluez-gstreamer 4.60-0ubuntu8 Bluetooth GStreamer support
ii bluez-cups 4.60-0ubuntu8 Bluetooth printer driver for CUPS

Why do I need cups support package? I do not. Kicked out.
krish@shenron:~$ sudo apt-get purge bluez-cups
And now re-install stuff that matters
sudo apt-get install --reinstall bluez

Okay now, list hardware again:

krish@shenron:~$ sudo hciconfig -a
hci0: Type: USB
BD Address: 88:9F:FA:AC:50:3E ACL MTU: 310:10 SCO MTU: 64:8
RX bytes:45505 acl:143 sco:0 events:183 errors:0
TX bytes:3971 acl:84 sco:0 commands:54 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x59 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3

Looks better!

Start the applet
krish@shenron:~$ bluetooth-applet&

Cool, it came up on my panel. Clicked on it. Clicked “Turn On Bluetooth”
Picked up my phone, search for devices and Nothing!
Sigh! Didn’t work…

Now, some googling, reading some bugs on launchpad, some forums, some debian lists and figured out that the bluetooth device is categorized as Cambridge Silicon Radio devices (CSR).

Sweet, but this looks like a dead end…

Too tired. 🙂 Will work this out tomorrow morning

Back on the box. It’s post noon now 🙂

Okay! Read a bit about bluetooth sniffing, a little on ralink AND found that the radio link on bluetooth stays OFF!
So someone had tried setting a PS value with bccmd. So let’s try:

krish@shenron:~$ sudo bccmd psset -s 0x0000 0x028c 0x0001

Ok, now kill and restart the applet

krish@shenron:~$ ps aux | grep bluetooth | grep -v grep | awk '{print $2}' | xargs kill; bluetooth-applet&
[1] 3539

Checking bluetooth again…
Doesn’t work. Crap!

Hmm, may be I’m not loading some module properly.
Let’s reboot and try…

Alright, after reboot start applet again if its not running already
krish@shenron:~$ sudo bluetooth-applet&

Turned ON Bluetooth. Aha! the applet shows active! Nice..

Check processes
krish@shenron:~$ ps aux | grep bluetooth | grep -v grep
root 792 0.0 0.0 0 0 ? S 15:24 0:00 [bluetooth]
root 1438 0.0 0.0 27428 2096 ? S<s 15:24 0:00 /usr/sbin/bluetoothd --udev
krish 2187 0.0 0.1 166708 8256 pts/0 S+ 15:37 0:00 bluetooth-applet

After a bit of thinking, I realized my mistake.
Last time I had killed bluetoothd process along with the applet.

OKAY! Now time to test…
Make your way through the applet options to Send and Receive files (I am not writing a how to on it :D)

Added New Device.



You might want to change your “Friendly Name” to something really friendly.
It shows CSR by default. Remember why CSR? 🙂

Friendly Name - Bluetooth Preferences

I’ve changed it to match the name of my laptop. ( That’s right, all my devices have names )

Now the question remains – Will this stay after reboot?
I am yet to find out.
If it doesn’t, I think I know what has to be done.

Not rebooting the machine now though.. 🙂 .. Time for some work 😀

Oh BTW, did I mention that your Bluetooth will now “Turn ON” / “Turn OFF” with the same Wi-Fi HotKey!  :X

Blog at

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none


A signature of Kiran


This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion. is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: