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 – https://srikrishnadas.wordpress.com/2011/04/06/wi-fi-on-hp-dm1/
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
DOWN

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
DOWN
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
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT

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.

Receiving:

Sending:

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

8 Comments »

  1. Are you sure the speaker is bad? I’ve had horrible sound issues with my HP Pavilion laptop as well on Ubuntu (together with many other issues which made me decide not to use Linux on it). Though my sound issues resulted in only the subwoofer playing audio, it might be driver related?

    Comment by Htbaa — November 13, 2011 @ 4:54 am

  2. Yes it is.
    I have Windows running on it too and it has issues with Sound.

    More-over even in Ubuntu, when I shift speaker balance to right, the sound is really okay but when I shift to left speaker its all noisy.
    So the left speaker is screwed up.

    Comment by krish — November 13, 2011 @ 3:34 pm

  3. i can see the tan lines on the your wallpaper 🙂

    Comment by manish — November 13, 2011 @ 6:49 pm

  4. Tan lines are hot! 😛
    I try to hack fix this issue 3:00am in the morning when I’m sick and all people notice is the tan lines! Sigh 😛

    Comment by krish — November 13, 2011 @ 6:56 pm

  5. i’d say you deviated from the topic by posting that screenshot.
    my eyes can easily distinguish between actual information and background noise 😛

    Comment by manish — November 13, 2011 @ 7:00 pm

  6. I want that wallpaper! but anyway, nice read.

    Comment by Tushar Kumar — November 13, 2011 @ 9:07 pm

  7. @Tushar
    This query would lead you to the wallpaper.
    http://www.google.co.in/search?q=images+supergirl+tan+lines

    Comment by manish — November 13, 2011 @ 9:16 pm

  8. Thanks a lot

    Comment by Tushar Kumar — November 14, 2011 @ 10:23 pm


RSS feed for comments on this post. TrackBack URI

Please leave a Reply / Discuss this topic here :)

Create a free website or blog at WordPress.com.

The Male Factor (TMF)

Serving MANkind

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none

JumboMake

A signature of Kiran

SAAYAM CHEDDAM FOUNDATION

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.

WordPress.com

WordPress.com is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi