Terminal command to set audio volume?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
86
down vote
favorite
I have an external sound card which mostly works fine, except that when its first plugged in, or when I turn on my laptop, the volume gets set to 100%. That is, the overall system volume, as shown in the sound indicator.
What I'm looking for is a terminal command that will set that volume to 50%, so that I can run it on login and not have to worry that the first audio I play is going to blare out at me if I forget to turn the volume down. What commands allow you to change that volume, i.e. the one in the sound indicator?
I've poked around in gsettings and dbus, but have been unable to find anything that would let me set the system volume like that. I do know about alsamixer, but that's not the solution I'm looking for, since that doesn't allow me to change the volume using the sound indicator or my laptop's multimedia keys.
sound pulseaudio volume-control indicator-sound
add a comment |Â
up vote
86
down vote
favorite
I have an external sound card which mostly works fine, except that when its first plugged in, or when I turn on my laptop, the volume gets set to 100%. That is, the overall system volume, as shown in the sound indicator.
What I'm looking for is a terminal command that will set that volume to 50%, so that I can run it on login and not have to worry that the first audio I play is going to blare out at me if I forget to turn the volume down. What commands allow you to change that volume, i.e. the one in the sound indicator?
I've poked around in gsettings and dbus, but have been unable to find anything that would let me set the system volume like that. I do know about alsamixer, but that's not the solution I'm looking for, since that doesn't allow me to change the volume using the sound indicator or my laptop's multimedia keys.
sound pulseaudio volume-control indicator-sound
@rajagenupula he wants to decrease the same volume as the GUI. ALSA wouldn't work in this case as it's not controled by ALSA but Pulseaudio. i.stack.imgur.com/9C8Z2.png
â Braiam
Nov 22 '13 at 13:41
Also see here: askubuntu.com/questions/44680/â¦
â Takkat
Nov 22 '13 at 14:16
add a comment |Â
up vote
86
down vote
favorite
up vote
86
down vote
favorite
I have an external sound card which mostly works fine, except that when its first plugged in, or when I turn on my laptop, the volume gets set to 100%. That is, the overall system volume, as shown in the sound indicator.
What I'm looking for is a terminal command that will set that volume to 50%, so that I can run it on login and not have to worry that the first audio I play is going to blare out at me if I forget to turn the volume down. What commands allow you to change that volume, i.e. the one in the sound indicator?
I've poked around in gsettings and dbus, but have been unable to find anything that would let me set the system volume like that. I do know about alsamixer, but that's not the solution I'm looking for, since that doesn't allow me to change the volume using the sound indicator or my laptop's multimedia keys.
sound pulseaudio volume-control indicator-sound
I have an external sound card which mostly works fine, except that when its first plugged in, or when I turn on my laptop, the volume gets set to 100%. That is, the overall system volume, as shown in the sound indicator.
What I'm looking for is a terminal command that will set that volume to 50%, so that I can run it on login and not have to worry that the first audio I play is going to blare out at me if I forget to turn the volume down. What commands allow you to change that volume, i.e. the one in the sound indicator?
I've poked around in gsettings and dbus, but have been unable to find anything that would let me set the system volume like that. I do know about alsamixer, but that's not the solution I'm looking for, since that doesn't allow me to change the volume using the sound indicator or my laptop's multimedia keys.
sound pulseaudio volume-control indicator-sound
edited Jul 2 '14 at 10:48
Oliâ¦
215k84542750
215k84542750
asked Jan 23 '12 at 22:37
Marius
7511611
7511611
@rajagenupula he wants to decrease the same volume as the GUI. ALSA wouldn't work in this case as it's not controled by ALSA but Pulseaudio. i.stack.imgur.com/9C8Z2.png
â Braiam
Nov 22 '13 at 13:41
Also see here: askubuntu.com/questions/44680/â¦
â Takkat
Nov 22 '13 at 14:16
add a comment |Â
@rajagenupula he wants to decrease the same volume as the GUI. ALSA wouldn't work in this case as it's not controled by ALSA but Pulseaudio. i.stack.imgur.com/9C8Z2.png
â Braiam
Nov 22 '13 at 13:41
Also see here: askubuntu.com/questions/44680/â¦
â Takkat
Nov 22 '13 at 14:16
@rajagenupula he wants to decrease the same volume as the GUI. ALSA wouldn't work in this case as it's not controled by ALSA but Pulseaudio. i.stack.imgur.com/9C8Z2.png
â Braiam
Nov 22 '13 at 13:41
@rajagenupula he wants to decrease the same volume as the GUI. ALSA wouldn't work in this case as it's not controled by ALSA but Pulseaudio. i.stack.imgur.com/9C8Z2.png
â Braiam
Nov 22 '13 at 13:41
Also see here: askubuntu.com/questions/44680/â¦
â Takkat
Nov 22 '13 at 14:16
Also see here: askubuntu.com/questions/44680/â¦
â Takkat
Nov 22 '13 at 14:16
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
109
down vote
Parts of this answer comes from Setting microphone input volume using the command line?, placed here for your convenience.
Increase volume by 5%
amixer -D pulse sset Master 5%+
Decrease volume by 5%
amixer -D pulse sset Master 5%-
Set volume to 50%
amixer -D pulse sset Master 50%
If you are using ALSA, amixer can be helpful for your script
programming.
When dropping the
amixer --help
command in a terminal you will see
something like this:
Depending on your soundcard, levels may be different than mine, but
you can usealsamixer
in the terminal in order to check which levels
and which features in your sound card you can call in a command to set
the volume as you wish.
In my example, with my principal sound card (I have 2: the embedded
and a PCI audio card), levels are from 0 to 100, this way I can change
the volume of a desired input/output in my soundcard by dropping in a
terminal the next command:amixer -c 0 set Front 50DB
amixer -c 0 set Front 64DB
In the first command, the result will set the Front panel output to
78% level and the second one will set the Front panel output to 100%
level.
In order to gather information related to your mixer controls, drop
theamixer
command with no parameters and you will get a list. Or
indicate which audio device you wish to see a list of controls with
amixer -c X
(where "X" is the number of your audio device).
BTW: Remember that DB values are calculated logarithmically and not
linearly.
Remember that this command allow you to control parameters on whatever sound device you are currently using.
Good luck!
1
It's worth a note that if you don't have a "Master" controller or "Master" controller can't change actual output volume you are probably working with wrong sound card.F6
onalsamixer
and--card n
onamixer
change sound card.
â Pooyan Khosravi
Oct 30 '15 at 22:03
That's a good point! @PooyanKhosravi, even when you can invoke the sound card you wish to automate from the command line by dropping the "-c X" (where "X" is the number of your sound card), it's good to know the information you provided. Thank you very much!
â Geppettvs D'Constanzo
Oct 31 '15 at 12:39
pactl
(unlikeamixer
) allows to increase volume over 100% (seeing inpavucontrol
) :-)
â pevik
Sep 1 '16 at 18:58
add a comment |Â
up vote
67
down vote
You can do it using PulseAudio itself (I won't recommend using ALSA because then you can't use the GUI to bring the volume up/down).
Using pactl: you can set the volumes for a specific device as follows:
pactl set-sink-volume 0 +10%
This makes the volume 10% up. If you want it 10% down:
pactl set-sink-volume 0 -10%
If you need the volume at 50%:
pactl set-sink-volume 0 50%
If you need to rock the entire place:
pactl set-sink-volume 0 150%
You can use percents or integers, but the integers are slow and may not be your thing.
pactl
/pacmd
(unlike amixer
) allows to increase volume over 100% :-).
2
If you're using headphones, try increasing the zero to one: pactl set-sink-volume 1 50%
â Smile4ever
Nov 1 '14 at 12:09
8
If you want to share the same commands on different hosts with different sinks, you can use@DEFAULT_SINK@
as a sink instead of number0
. You set your default sink withpactl set-default-sink my-sink-name
(list names withpactl list short sinks
).
â pevik
Sep 29 '16 at 9:38
1
When I use--
you mentioned, likepactl set-sink-volume 0 -- -10%
, I get an error message "Invalid volume specification". I think the answer should be corrected.
â jojman
Apr 22 '17 at 2:15
1
@jojman apparently they fixed that. Will look changelogs for the fix. Here's the fix bugs.freedesktop.org/show_bug.cgi?id=77108
â Braiam
Apr 22 '17 at 15:09
add a comment |Â
up vote
22
down vote
amixer set 'Master' 10%+
- to increase max sound 10%
amixer set 'Master' 10%-
- to decrease max sound 10%
amixer set 'Master' 10%
- to get 10% of the max sound
amixer set 'Master' 80%
- to get 80% of the max sound
.. etc.
If you want to set the volume to other than 'Master', check the list by:
amixer scontrols
You may also want to check out alsamixer
and pacmd
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
109
down vote
Parts of this answer comes from Setting microphone input volume using the command line?, placed here for your convenience.
Increase volume by 5%
amixer -D pulse sset Master 5%+
Decrease volume by 5%
amixer -D pulse sset Master 5%-
Set volume to 50%
amixer -D pulse sset Master 50%
If you are using ALSA, amixer can be helpful for your script
programming.
When dropping the
amixer --help
command in a terminal you will see
something like this:
Depending on your soundcard, levels may be different than mine, but
you can usealsamixer
in the terminal in order to check which levels
and which features in your sound card you can call in a command to set
the volume as you wish.
In my example, with my principal sound card (I have 2: the embedded
and a PCI audio card), levels are from 0 to 100, this way I can change
the volume of a desired input/output in my soundcard by dropping in a
terminal the next command:amixer -c 0 set Front 50DB
amixer -c 0 set Front 64DB
In the first command, the result will set the Front panel output to
78% level and the second one will set the Front panel output to 100%
level.
In order to gather information related to your mixer controls, drop
theamixer
command with no parameters and you will get a list. Or
indicate which audio device you wish to see a list of controls with
amixer -c X
(where "X" is the number of your audio device).
BTW: Remember that DB values are calculated logarithmically and not
linearly.
Remember that this command allow you to control parameters on whatever sound device you are currently using.
Good luck!
1
It's worth a note that if you don't have a "Master" controller or "Master" controller can't change actual output volume you are probably working with wrong sound card.F6
onalsamixer
and--card n
onamixer
change sound card.
â Pooyan Khosravi
Oct 30 '15 at 22:03
That's a good point! @PooyanKhosravi, even when you can invoke the sound card you wish to automate from the command line by dropping the "-c X" (where "X" is the number of your sound card), it's good to know the information you provided. Thank you very much!
â Geppettvs D'Constanzo
Oct 31 '15 at 12:39
pactl
(unlikeamixer
) allows to increase volume over 100% (seeing inpavucontrol
) :-)
â pevik
Sep 1 '16 at 18:58
add a comment |Â
up vote
109
down vote
Parts of this answer comes from Setting microphone input volume using the command line?, placed here for your convenience.
Increase volume by 5%
amixer -D pulse sset Master 5%+
Decrease volume by 5%
amixer -D pulse sset Master 5%-
Set volume to 50%
amixer -D pulse sset Master 50%
If you are using ALSA, amixer can be helpful for your script
programming.
When dropping the
amixer --help
command in a terminal you will see
something like this:
Depending on your soundcard, levels may be different than mine, but
you can usealsamixer
in the terminal in order to check which levels
and which features in your sound card you can call in a command to set
the volume as you wish.
In my example, with my principal sound card (I have 2: the embedded
and a PCI audio card), levels are from 0 to 100, this way I can change
the volume of a desired input/output in my soundcard by dropping in a
terminal the next command:amixer -c 0 set Front 50DB
amixer -c 0 set Front 64DB
In the first command, the result will set the Front panel output to
78% level and the second one will set the Front panel output to 100%
level.
In order to gather information related to your mixer controls, drop
theamixer
command with no parameters and you will get a list. Or
indicate which audio device you wish to see a list of controls with
amixer -c X
(where "X" is the number of your audio device).
BTW: Remember that DB values are calculated logarithmically and not
linearly.
Remember that this command allow you to control parameters on whatever sound device you are currently using.
Good luck!
1
It's worth a note that if you don't have a "Master" controller or "Master" controller can't change actual output volume you are probably working with wrong sound card.F6
onalsamixer
and--card n
onamixer
change sound card.
â Pooyan Khosravi
Oct 30 '15 at 22:03
That's a good point! @PooyanKhosravi, even when you can invoke the sound card you wish to automate from the command line by dropping the "-c X" (where "X" is the number of your sound card), it's good to know the information you provided. Thank you very much!
â Geppettvs D'Constanzo
Oct 31 '15 at 12:39
pactl
(unlikeamixer
) allows to increase volume over 100% (seeing inpavucontrol
) :-)
â pevik
Sep 1 '16 at 18:58
add a comment |Â
up vote
109
down vote
up vote
109
down vote
Parts of this answer comes from Setting microphone input volume using the command line?, placed here for your convenience.
Increase volume by 5%
amixer -D pulse sset Master 5%+
Decrease volume by 5%
amixer -D pulse sset Master 5%-
Set volume to 50%
amixer -D pulse sset Master 50%
If you are using ALSA, amixer can be helpful for your script
programming.
When dropping the
amixer --help
command in a terminal you will see
something like this:
Depending on your soundcard, levels may be different than mine, but
you can usealsamixer
in the terminal in order to check which levels
and which features in your sound card you can call in a command to set
the volume as you wish.
In my example, with my principal sound card (I have 2: the embedded
and a PCI audio card), levels are from 0 to 100, this way I can change
the volume of a desired input/output in my soundcard by dropping in a
terminal the next command:amixer -c 0 set Front 50DB
amixer -c 0 set Front 64DB
In the first command, the result will set the Front panel output to
78% level and the second one will set the Front panel output to 100%
level.
In order to gather information related to your mixer controls, drop
theamixer
command with no parameters and you will get a list. Or
indicate which audio device you wish to see a list of controls with
amixer -c X
(where "X" is the number of your audio device).
BTW: Remember that DB values are calculated logarithmically and not
linearly.
Remember that this command allow you to control parameters on whatever sound device you are currently using.
Good luck!
Parts of this answer comes from Setting microphone input volume using the command line?, placed here for your convenience.
Increase volume by 5%
amixer -D pulse sset Master 5%+
Decrease volume by 5%
amixer -D pulse sset Master 5%-
Set volume to 50%
amixer -D pulse sset Master 50%
If you are using ALSA, amixer can be helpful for your script
programming.
When dropping the
amixer --help
command in a terminal you will see
something like this:
Depending on your soundcard, levels may be different than mine, but
you can usealsamixer
in the terminal in order to check which levels
and which features in your sound card you can call in a command to set
the volume as you wish.
In my example, with my principal sound card (I have 2: the embedded
and a PCI audio card), levels are from 0 to 100, this way I can change
the volume of a desired input/output in my soundcard by dropping in a
terminal the next command:amixer -c 0 set Front 50DB
amixer -c 0 set Front 64DB
In the first command, the result will set the Front panel output to
78% level and the second one will set the Front panel output to 100%
level.
In order to gather information related to your mixer controls, drop
theamixer
command with no parameters and you will get a list. Or
indicate which audio device you wish to see a list of controls with
amixer -c X
(where "X" is the number of your audio device).
BTW: Remember that DB values are calculated logarithmically and not
linearly.
Remember that this command allow you to control parameters on whatever sound device you are currently using.
Good luck!
edited Apr 13 '17 at 12:25
Communityâ¦
1
1
answered Jan 23 '12 at 23:11
Geppettvs D'Constanzo
15.9k33280
15.9k33280
1
It's worth a note that if you don't have a "Master" controller or "Master" controller can't change actual output volume you are probably working with wrong sound card.F6
onalsamixer
and--card n
onamixer
change sound card.
â Pooyan Khosravi
Oct 30 '15 at 22:03
That's a good point! @PooyanKhosravi, even when you can invoke the sound card you wish to automate from the command line by dropping the "-c X" (where "X" is the number of your sound card), it's good to know the information you provided. Thank you very much!
â Geppettvs D'Constanzo
Oct 31 '15 at 12:39
pactl
(unlikeamixer
) allows to increase volume over 100% (seeing inpavucontrol
) :-)
â pevik
Sep 1 '16 at 18:58
add a comment |Â
1
It's worth a note that if you don't have a "Master" controller or "Master" controller can't change actual output volume you are probably working with wrong sound card.F6
onalsamixer
and--card n
onamixer
change sound card.
â Pooyan Khosravi
Oct 30 '15 at 22:03
That's a good point! @PooyanKhosravi, even when you can invoke the sound card you wish to automate from the command line by dropping the "-c X" (where "X" is the number of your sound card), it's good to know the information you provided. Thank you very much!
â Geppettvs D'Constanzo
Oct 31 '15 at 12:39
pactl
(unlikeamixer
) allows to increase volume over 100% (seeing inpavucontrol
) :-)
â pevik
Sep 1 '16 at 18:58
1
1
It's worth a note that if you don't have a "Master" controller or "Master" controller can't change actual output volume you are probably working with wrong sound card.
F6
on alsamixer
and --card n
on amixer
change sound card.â Pooyan Khosravi
Oct 30 '15 at 22:03
It's worth a note that if you don't have a "Master" controller or "Master" controller can't change actual output volume you are probably working with wrong sound card.
F6
on alsamixer
and --card n
on amixer
change sound card.â Pooyan Khosravi
Oct 30 '15 at 22:03
That's a good point! @PooyanKhosravi, even when you can invoke the sound card you wish to automate from the command line by dropping the "-c X" (where "X" is the number of your sound card), it's good to know the information you provided. Thank you very much!
â Geppettvs D'Constanzo
Oct 31 '15 at 12:39
That's a good point! @PooyanKhosravi, even when you can invoke the sound card you wish to automate from the command line by dropping the "-c X" (where "X" is the number of your sound card), it's good to know the information you provided. Thank you very much!
â Geppettvs D'Constanzo
Oct 31 '15 at 12:39
pactl
(unlike amixer
) allows to increase volume over 100% (seeing in pavucontrol
) :-)â pevik
Sep 1 '16 at 18:58
pactl
(unlike amixer
) allows to increase volume over 100% (seeing in pavucontrol
) :-)â pevik
Sep 1 '16 at 18:58
add a comment |Â
up vote
67
down vote
You can do it using PulseAudio itself (I won't recommend using ALSA because then you can't use the GUI to bring the volume up/down).
Using pactl: you can set the volumes for a specific device as follows:
pactl set-sink-volume 0 +10%
This makes the volume 10% up. If you want it 10% down:
pactl set-sink-volume 0 -10%
If you need the volume at 50%:
pactl set-sink-volume 0 50%
If you need to rock the entire place:
pactl set-sink-volume 0 150%
You can use percents or integers, but the integers are slow and may not be your thing.
pactl
/pacmd
(unlike amixer
) allows to increase volume over 100% :-).
2
If you're using headphones, try increasing the zero to one: pactl set-sink-volume 1 50%
â Smile4ever
Nov 1 '14 at 12:09
8
If you want to share the same commands on different hosts with different sinks, you can use@DEFAULT_SINK@
as a sink instead of number0
. You set your default sink withpactl set-default-sink my-sink-name
(list names withpactl list short sinks
).
â pevik
Sep 29 '16 at 9:38
1
When I use--
you mentioned, likepactl set-sink-volume 0 -- -10%
, I get an error message "Invalid volume specification". I think the answer should be corrected.
â jojman
Apr 22 '17 at 2:15
1
@jojman apparently they fixed that. Will look changelogs for the fix. Here's the fix bugs.freedesktop.org/show_bug.cgi?id=77108
â Braiam
Apr 22 '17 at 15:09
add a comment |Â
up vote
67
down vote
You can do it using PulseAudio itself (I won't recommend using ALSA because then you can't use the GUI to bring the volume up/down).
Using pactl: you can set the volumes for a specific device as follows:
pactl set-sink-volume 0 +10%
This makes the volume 10% up. If you want it 10% down:
pactl set-sink-volume 0 -10%
If you need the volume at 50%:
pactl set-sink-volume 0 50%
If you need to rock the entire place:
pactl set-sink-volume 0 150%
You can use percents or integers, but the integers are slow and may not be your thing.
pactl
/pacmd
(unlike amixer
) allows to increase volume over 100% :-).
2
If you're using headphones, try increasing the zero to one: pactl set-sink-volume 1 50%
â Smile4ever
Nov 1 '14 at 12:09
8
If you want to share the same commands on different hosts with different sinks, you can use@DEFAULT_SINK@
as a sink instead of number0
. You set your default sink withpactl set-default-sink my-sink-name
(list names withpactl list short sinks
).
â pevik
Sep 29 '16 at 9:38
1
When I use--
you mentioned, likepactl set-sink-volume 0 -- -10%
, I get an error message "Invalid volume specification". I think the answer should be corrected.
â jojman
Apr 22 '17 at 2:15
1
@jojman apparently they fixed that. Will look changelogs for the fix. Here's the fix bugs.freedesktop.org/show_bug.cgi?id=77108
â Braiam
Apr 22 '17 at 15:09
add a comment |Â
up vote
67
down vote
up vote
67
down vote
You can do it using PulseAudio itself (I won't recommend using ALSA because then you can't use the GUI to bring the volume up/down).
Using pactl: you can set the volumes for a specific device as follows:
pactl set-sink-volume 0 +10%
This makes the volume 10% up. If you want it 10% down:
pactl set-sink-volume 0 -10%
If you need the volume at 50%:
pactl set-sink-volume 0 50%
If you need to rock the entire place:
pactl set-sink-volume 0 150%
You can use percents or integers, but the integers are slow and may not be your thing.
pactl
/pacmd
(unlike amixer
) allows to increase volume over 100% :-).
You can do it using PulseAudio itself (I won't recommend using ALSA because then you can't use the GUI to bring the volume up/down).
Using pactl: you can set the volumes for a specific device as follows:
pactl set-sink-volume 0 +10%
This makes the volume 10% up. If you want it 10% down:
pactl set-sink-volume 0 -10%
If you need the volume at 50%:
pactl set-sink-volume 0 50%
If you need to rock the entire place:
pactl set-sink-volume 0 150%
You can use percents or integers, but the integers are slow and may not be your thing.
pactl
/pacmd
(unlike amixer
) allows to increase volume over 100% :-).
edited Apr 22 '17 at 15:08
answered Nov 22 '13 at 13:27
Braiam
49.9k20130213
49.9k20130213
2
If you're using headphones, try increasing the zero to one: pactl set-sink-volume 1 50%
â Smile4ever
Nov 1 '14 at 12:09
8
If you want to share the same commands on different hosts with different sinks, you can use@DEFAULT_SINK@
as a sink instead of number0
. You set your default sink withpactl set-default-sink my-sink-name
(list names withpactl list short sinks
).
â pevik
Sep 29 '16 at 9:38
1
When I use--
you mentioned, likepactl set-sink-volume 0 -- -10%
, I get an error message "Invalid volume specification". I think the answer should be corrected.
â jojman
Apr 22 '17 at 2:15
1
@jojman apparently they fixed that. Will look changelogs for the fix. Here's the fix bugs.freedesktop.org/show_bug.cgi?id=77108
â Braiam
Apr 22 '17 at 15:09
add a comment |Â
2
If you're using headphones, try increasing the zero to one: pactl set-sink-volume 1 50%
â Smile4ever
Nov 1 '14 at 12:09
8
If you want to share the same commands on different hosts with different sinks, you can use@DEFAULT_SINK@
as a sink instead of number0
. You set your default sink withpactl set-default-sink my-sink-name
(list names withpactl list short sinks
).
â pevik
Sep 29 '16 at 9:38
1
When I use--
you mentioned, likepactl set-sink-volume 0 -- -10%
, I get an error message "Invalid volume specification". I think the answer should be corrected.
â jojman
Apr 22 '17 at 2:15
1
@jojman apparently they fixed that. Will look changelogs for the fix. Here's the fix bugs.freedesktop.org/show_bug.cgi?id=77108
â Braiam
Apr 22 '17 at 15:09
2
2
If you're using headphones, try increasing the zero to one: pactl set-sink-volume 1 50%
â Smile4ever
Nov 1 '14 at 12:09
If you're using headphones, try increasing the zero to one: pactl set-sink-volume 1 50%
â Smile4ever
Nov 1 '14 at 12:09
8
8
If you want to share the same commands on different hosts with different sinks, you can use
@DEFAULT_SINK@
as a sink instead of number 0
. You set your default sink with pactl set-default-sink my-sink-name
(list names with pactl list short sinks
).â pevik
Sep 29 '16 at 9:38
If you want to share the same commands on different hosts with different sinks, you can use
@DEFAULT_SINK@
as a sink instead of number 0
. You set your default sink with pactl set-default-sink my-sink-name
(list names with pactl list short sinks
).â pevik
Sep 29 '16 at 9:38
1
1
When I use
--
you mentioned, like pactl set-sink-volume 0 -- -10%
, I get an error message "Invalid volume specification". I think the answer should be corrected.â jojman
Apr 22 '17 at 2:15
When I use
--
you mentioned, like pactl set-sink-volume 0 -- -10%
, I get an error message "Invalid volume specification". I think the answer should be corrected.â jojman
Apr 22 '17 at 2:15
1
1
@jojman apparently they fixed that. Will look changelogs for the fix. Here's the fix bugs.freedesktop.org/show_bug.cgi?id=77108
â Braiam
Apr 22 '17 at 15:09
@jojman apparently they fixed that. Will look changelogs for the fix. Here's the fix bugs.freedesktop.org/show_bug.cgi?id=77108
â Braiam
Apr 22 '17 at 15:09
add a comment |Â
up vote
22
down vote
amixer set 'Master' 10%+
- to increase max sound 10%
amixer set 'Master' 10%-
- to decrease max sound 10%
amixer set 'Master' 10%
- to get 10% of the max sound
amixer set 'Master' 80%
- to get 80% of the max sound
.. etc.
If you want to set the volume to other than 'Master', check the list by:
amixer scontrols
You may also want to check out alsamixer
and pacmd
add a comment |Â
up vote
22
down vote
amixer set 'Master' 10%+
- to increase max sound 10%
amixer set 'Master' 10%-
- to decrease max sound 10%
amixer set 'Master' 10%
- to get 10% of the max sound
amixer set 'Master' 80%
- to get 80% of the max sound
.. etc.
If you want to set the volume to other than 'Master', check the list by:
amixer scontrols
You may also want to check out alsamixer
and pacmd
add a comment |Â
up vote
22
down vote
up vote
22
down vote
amixer set 'Master' 10%+
- to increase max sound 10%
amixer set 'Master' 10%-
- to decrease max sound 10%
amixer set 'Master' 10%
- to get 10% of the max sound
amixer set 'Master' 80%
- to get 80% of the max sound
.. etc.
If you want to set the volume to other than 'Master', check the list by:
amixer scontrols
You may also want to check out alsamixer
and pacmd
amixer set 'Master' 10%+
- to increase max sound 10%
amixer set 'Master' 10%-
- to decrease max sound 10%
amixer set 'Master' 10%
- to get 10% of the max sound
amixer set 'Master' 80%
- to get 80% of the max sound
.. etc.
If you want to set the volume to other than 'Master', check the list by:
amixer scontrols
You may also want to check out alsamixer
and pacmd
edited Nov 23 '13 at 10:39
answered Nov 22 '13 at 13:22
![](https://i.stack.imgur.com/u85Sl.png?s=32&g=1)
![](https://i.stack.imgur.com/u85Sl.png?s=32&g=1)
np8
8592818
8592818
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f97936%2fterminal-command-to-set-audio-volume%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
@rajagenupula he wants to decrease the same volume as the GUI. ALSA wouldn't work in this case as it's not controled by ALSA but Pulseaudio. i.stack.imgur.com/9C8Z2.png
â Braiam
Nov 22 '13 at 13:41
Also see here: askubuntu.com/questions/44680/â¦
â Takkat
Nov 22 '13 at 14:16