PDA

View Full Version : [ubuntu] Commands to raise and lower volume.



Uzi304
March 14th, 2009, 06:52 PM
I want key bindings of raising and lowering the master volume but the problem is that I don't know the commands. So if anyone could provide me with the commands I need, I would appreciate it. Thanks in advanced.

theozzlives
March 14th, 2009, 06:54 PM
You just click on the volume control.

Kellemora
March 14th, 2009, 06:56 PM
Hi Uzi

You don't even have to click the speaker!
Just set your mouse pointer over it and use your mouse wheel to up and down the volume.

TTUL
Gary

Uzi304
March 14th, 2009, 06:58 PM
Oh I should've said that I'm using a laptop so and there is no mouse wheel haha.

Theozzlives: I would but its really annoying to do that for me. I just think a keybinding will be easier for me.

unutbu
March 14th, 2009, 06:59 PM
Click System>Pref>Keyboard Shortcuts
Look for Sound>"Volume down" and Sound>"Volume up".
By default, these should be set to Alt+Page Down, and Alt+Page Up, respectively.

sleepyjon
March 14th, 2009, 07:00 PM
I took these strait from my xfce config.

for mute

aumix -v0

to lower by 10

aumix -v-10

to up by 10

aumix -v+10

Those were bound to the corresponding media keys on my keyboard.

theozzlives
March 14th, 2009, 07:02 PM
Oh I should've said that I'm using a laptop so and there is no mouse wheel haha.

Theozzlives: I would but its really annoying to do that for me. I just think a keybinding will be easier for me.

You don't have a bar on the side of your touchpad?

Uzi304
March 14th, 2009, 07:17 PM
Unutbu- Thanks that worked for me

Sleepyjon- Aumixer wasn't installed but thanks anyways.

Theozzlives- No I don't =\

mvalviar
March 14th, 2009, 08:03 PM
Hi Uzi

You don't even have to click the speaker!
Just set your mouse pointer over it and use your mouse wheel to up and down the volume.

TTUL
Gary

Wow! Thanks for the info.

starcannon
March 14th, 2009, 08:11 PM
alsamixer


Most laptops have an FN+F<num> combo for the volume control, on all of mine these key combo's "just work", but if for some reason yours don't, they can be programmed in:
System>Preferences>Keyboard Shortcuts

+1 to Sleepyjon, that's a cool command to know.

sisco311
March 14th, 2009, 08:24 PM
Sleepyjon- Aumixer wasn't installed but thanks anyways.



i think amixer is installed by default:

amixer set Master 10%+
amixer set Master 10%-

MIKE SILVA
March 15th, 2009, 01:20 PM
Hi There,

Do You know if there exist a kind of macro, where I can make a "program" to change the volume during the day?

e.g. at 9 am 80% of volume
at 11 am 100%
at 3 pm 70% etc

Thanks

sisco311
March 15th, 2009, 02:00 PM
Hi There,

Do You know if there exist a kind of macro, where I can make a "program" to change the volume during the day?

e.g. at 9 am 80% of volume
at 11 am 100%
at 3 pm 70% etc

Thanks

you can set cron (https://help.ubuntu.com/community/CronHowto) jobs:

crontab -e
and add something like:

00 09 * * * amixer set Master 80%
00 11 * * * amixer set Master 100%
00 15 * * * amixer set Master 70%

MIKE SILVA
March 17th, 2009, 05:21 PM
Thanks a lot.
I discovery KALARM and this program do everything correctly.

Mike

shamimkhaliq
March 17th, 2009, 11:48 PM
i'm using a really sloow method of Applications>accessories>terminal> (type) aumix (enter)

Applications>System> has no Preferences subcategory on my computer. mouse wheel does nothing. any shorter methods?