[SLUG] Bluetooth a2dp volume control????

92 views
Skip to first unread message

Peter Chubb

unread,
Oct 20, 2008, 10:06:23 PM10/20/08
to sl...@slug.org.au
Hi,
I've bought myself a bluetooth headset and am streaming audio
to it using mplayer. How do I control its volume? Usually, hitting /
or * decreases or increases the volume, but mplayer thinks it's
sending at 0% volume and it's still a little too loud!

The hardest part about making this thing to work at all, BTW, was getting
it to peer. If you don't use a gui desktop, you seem to be in
trouble. And most of the howtos aren't helpful -- they all assume you
have the GTK libraries or have Gnome or something, or are so old that
the codebase has moved on a lot. The trick is to put the MAC/Pin pair
into /var/lib/bluetooth/DONGLEMAC/pincodes where DONGLEMAC is the mac
address of the bluetooth adapter.

--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Alex Samad

unread,
Oct 20, 2008, 10:24:07 PM10/20/08
to sl...@slug.org.au
On Tue, Oct 21, 2008 at 01:06:23PM +1100, Peter Chubb wrote:
> Hi,
> I've bought myself a bluetooth headset and am streaming audio
> to it using mplayer. How do I control its volume? Usually, hitting /
> or * decreases or increases the volume, but mplayer thinks it's
> sending at 0% volume and it's still a little too loud!

have you tried changing the volume with alsamixer, mplayer only changes
1 volume control and it might not be the right one

>
> The hardest part about making this thing to work at all, BTW, was getting
> it to peer. If you don't use a gui desktop, you seem to be in
> trouble. And most of the howtos aren't helpful -- they all assume you
> have the GTK libraries or have Gnome or something, or are so old that
> the codebase has moved on a lot. The trick is to put the MAC/Pin pair
> into /var/lib/bluetooth/DONGLEMAC/pincodes where DONGLEMAC is the mac
> address of the bluetooth adapter.
>
> --
> Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
> http://www.ertos.nicta.com.au ERTOS within National ICT Australia
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>

--
"In Iraq, no doubt about it, it's tough. It's hard work. It's incredibly hard. "

- George W. Bush
First presidential debate
Repeating the phrases hard work, working hard, hard choices, and other hard-based verbiage 22 times in his first debate with Sen. John Kerry

signature.asc

Peter Chubb

unread,
Oct 20, 2008, 10:39:54 PM10/20/08
to sl...@slug.org.au
>>>>> "Alex" == Alex Samad <al...@samad.com.au> writes:

Alex> On Tue, Oct 21, 2008 at 01:06:23PM +1100, Peter Chubb wrote:
>> Hi, I've bought myself a bluetooth headset and am streaming audio
>> to it using mplayer. How do I control its volume? Usually,
>> hitting / or * decreases or increases the volume, but mplayer
>> thinks it's sending at 0% volume and it's still a little too loud!

Alex> have you tried changing the volume with alsamixer, mplayer only
Alex> changes 1 volume control and it might not be the right one

Alsamixer can't see the bluetooth device, as it doesn't appear in
/proc/asound --- only the PCI soundcard and modem appear there.

Peter Chubb

unread,
Oct 20, 2008, 11:02:09 PM10/20/08
to Peter Chubb, sl...@slug.org.au
>>>>> "Peter" == Peter Chubb <pet...@gelato.unsw.edu.au> writes:

>>>>> "Alex" == Alex Samad <al...@samad.com.au> writes:
Alex> On Tue, Oct 21, 2008 at 01:06:23PM +1100, Peter Chubb wrote:
Alex> have you tried changing the volume with alsamixer, mplayer only
Alex> changes 1 volume control and it might not be the right one

Peter> Alsamixer can't see the bluetooth device, as it doesn't appear
Peter> in /proc/asound --- only the PCI soundcard and modem appear
Peter> there.

$ cat /proc/asound/devices
0: [ 0] : control
1: : sequencer
16: [ 0- 0]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
32: [ 1] : control
33: : timer
48: [ 1- 0]: digital audio playback
56: [ 1- 0]: digital audio capture

$ cat ~/.asoundrc
pcm.bluetooth {
type bluetooth
device 00:0C:78:41:CF:58

Morgan Storey

unread,
Oct 20, 2008, 10:14:35 PM10/20/08
to Peter Chubb, sl...@slug.org.au
I have seen this and have this same issue with my USB headset and when I
used to use my A2DP headset, the only way I found to play with the volume
was with the buttons on the side that plugged into the gnome sound manager.
So maybe alsa-config?

--
Regards
Morgan Storey,A+, MCSE:Security.
Senior Network and Security Consultant.

Reply all
Reply to author
Forward
0 new messages