Skype on linux works great but the problem that I faced was that it does not handle the buttons on the bluetooth headsets. My wife uses skype to call into her work related conference calls and was pretty frustrated that she had to keep sitting in front of my laptop (her laptop didn’t allow to install skype) just to switch mute on and off. So, I whipped up this little trick to do so. Here is how:
1. First I looked at the skype API (pretty simple, based on dbus). Also found a sample script somewhere that allowed to answer and hang up calls through skype API.
2. Modified the script to switch the mute on and off instead of answering/hanging up. Script can be downloaded at the end of this article. You can also modify it to take some other action that you want.
3. Install “blueman”. If you are using Ubuntu, just type “sudo apt-get install blueman” in shell.
4. Once blueman is installed and you have done your headset pairing etc, right click on the blueman icon in the system tray and click on “Local Services”.
5. In local services, click on headset tab and you can see a input box where you can give the path of a program/script which will be run whenever the “answer button” on the headset is pressed. This is important to note that blueman only supports the answer button and nothing else and I didn’t have the inclination to develop a full-fledged AVRCP compliant program to capture other buttons as all I was interested in mute functionality. You can see the screenshot of this below:
![]()
6. Make sure that you give the path where you saved the script that you downloaded in step 4 and you are all set now. Make a call and click on the answer button of your headset to see the magic happen
Let me know if you have your own hacks like this or know of a way to have a full fledged capturing of all headset buttons.


My “Local Services” does not have a headset section.
Even though the headset is connected
What do i do?
@Kruzy: Which version of blueman do you have?
Propietary IM ? No thanks.
Im very happy with XMPP, Cross domain, opensource, plataform independent and far more powerfull than skype.
OVI.com & GMX.com & gMail.com & Facebook and many many many corporates and domains uses XMPP as IM/VoIP Solution.
There is no better alternative. XMPP is the future.
Sorry Skype.
1.21
thanks
Did you enable the headset plugin?
I looked everywhere and i couldn’t find this headset plugin
bluetooth headsets are very nice and very comfortable because you don’t have those pesky wires~’,
On Ubuntu 10.10, using blueman applet 1.21 I found the plugin enable menu item on right click of the indicator. Enabling and configuring it though didn’t seem to make a difference, the script doesn’t execute. As per Kruy Kaze, the headset doesn’t show up in Local Services.
[...] Read on… Send article as PDF to [...]