You are not logged in.

#1 2015-07-30 08:10:26

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Not able to control volume when playing music through my BT headset...

I use the following command to increase the master volume:

amixer -D pulse set Master 3%+ unmute 

which works, as long as I am not using my bluetooth headset... When using my headset, I have to either use pavucontrol or the volume control in Spotify to change the volume level.
I have also tried the following

pactl set-sink-mute 0 toggle

which also does not work... Any way to control the volume from the commandline when using BT headsets?


Regards,

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#2 2015-07-30 08:52:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: Not able to control volume when playing music through my BT headset...

pactl should be the way to go,  are you absolutely sure that 0 is the index of  your headset?

pactl list-sinks

to doublecheck

Offline

#3 2015-07-30 09:12:03

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Not able to control volume when playing music through my BT headset...

Aaah, no the correct index was 1... But then my question becomes, how can I make a script that controls the volume and that takes into account that I sometimes use my headset and sometimes I don't?
I could call both pactl and amixer but perhaps there is a better way Also I currently use the output from amixer to display the current volume level, can't seem to find this feature when using pactl?


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#4 2015-07-30 10:33:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: Not able to control volume when playing music through my BT headset...

volume level is also in list sink output, but for something that might be a bit more straightforward to handle is using a console pulsemixer e.g. ponymix (the post contains an outdated AUR url, it is in the official repos now) don't know how well it handles dynamic device switching, but I guess there's only one way to find out wink

Offline

#5 2015-07-30 20:13:23

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Not able to control volume when playing music through my BT headset...

thx, will check it out... smile


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

Board footer

Powered by FluxBB