LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 06-16-2015, 10:32 AM   #1
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
Unable to control bluetooth volume


Hi,

I'm running Arch with the Awesome Window Manager.

I normally control volume using the following commands:

Code:
amixer set Master 5dB+
amixer set Master 5dB-
amixer sset Master toggle
I figured out how to play audio on my bluetooth speaker and wrote the following script:

Code:
hciconfig hci0 up
pulseaudio -D
bluetoothctl << EOF
connect <mac>
trust <mac>
pair <mac>
EOF
However, my original volume control commands don't work. I've tried to adjust volume levels of many channels using alsamixer, but they have no effect.

Thank you!

Last edited by gregorian; 06-16-2015 at 06:12 PM.
 
Old 06-16-2015, 06:00 PM   #3
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I've already been through them. That's how I got my bluetooth speaker and my Awesome keybindings to work.

Now I'm trying to get my bluetooth volume to work. Is there something specific in the wikis you were referencing?

Last edited by gregorian; 06-16-2015 at 06:13 PM.
 
Old 06-18-2015, 09:35 AM   #4
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
pavucontrol controls the volume. Is there any unified way to control the volume?
 
Old 06-18-2015, 02:07 PM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Code:
amixer set Master -D pulse 5dB+
amixer set Master -D pulse 5dB-
amixer set Master -D pulse toggle
 
1 members found this post helpful.
Old 06-22-2015, 11:07 PM   #6
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by Head_on_a_Stick View Post
Code:
amixer set Master -D pulse 5dB+
amixer set Master -D pulse 5dB-
amixer set Master -D pulse toggle
I made pulse audio start automatically by enabling autospawn. Using these commands controls the main speaker, but not my bluetooth speaker. I still need to use pavucontrol.
 
Old 06-23-2015, 10:25 PM   #7
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I figured that the volume in the bluetooth speaker can be controlled like this:

Code:
pactl set-sink-volume 1 +5
However, I can't hardcode sink "1". Since it is sink "0" when I don't have the speaker. What should I do?

EDIT: I solved the problem by enabling load-module module-switch-on-connect
in /etc/pulse/default.conf. Now it works.

Last edited by gregorian; 06-23-2015 at 10:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulse Audio Volume Control gymnart Linux - Software 3 10-25-2012 02:41 PM
Fedora 10 no control over audio volume zeelog Fedora 4 09-15-2009 10:42 AM
Problem with maximum audio volume + volume control threshold mensch Debian 6 10-10-2008 10:48 AM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 07:29 PM
ALSA SBLive5.1 Rear Speakers Volume Control ]Trix[ Linux - Software 8 02-28-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration