WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Hard Volume Control with ALSA  (Read 3125 times)

Offline Atravir

  • Newbie
  • *
  • Posts: 4
Hard Volume Control with ALSA
« on: April 30, 2013, 10:54:44 PM »
I'm basically trying to find the easiest way to control my volume with my actual volume buttons with ALSA.

Is there an easy way to do this, or do I need to get some sort of keybinding package and figure out the terminal commands for volume up and down?


Thanks,
Atravir

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Hard Volume Control with ALSA
« Reply #1 on: May 01, 2013, 04:33:15 AM »
Quote
do I need to get some sort of keybinding package and figure out the terminal commands for volume up and down?

Yes.

The other distros do this as well, they might just have it preinstalled/pre-set to common volume keys.

I use actkbd.
The only barriers that can stop you are the ones you create yourself.

Offline Atravir

  • Newbie
  • *
  • Posts: 4
Re: Hard Volume Control with ALSA
« Reply #2 on: May 16, 2013, 02:56:36 AM »
Aha, thanks!

Let's see, I tried a config file with:
Code: [Select]
114:key::echo amixer -c 0 set Master -1
115:key::echo amixer -c 0 set Master +1 unmute
as actkbd.conf at etc/ and then usr/local/etc, and neither seemed to do anything. Any chance you could tell me what I might be doing wrong?


Thanks

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11587
Re: Hard Volume Control with ALSA
« Reply #3 on: May 16, 2013, 03:25:46 AM »
Hi Atravir
Did you run   actkbd ?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Hard Volume Control with ALSA
« Reply #4 on: May 16, 2013, 04:15:26 AM »
Should possibly be 'sset' or 'cset' rather than 'set'; please consult "--help"/manual and test commands manually first until they do what you want them to do.

;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Atravir

  • Newbie
  • *
  • Posts: 4
Re: Hard Volume Control with ALSA
« Reply #5 on: May 16, 2013, 09:18:13 PM »
Oh, the amixer commands work fine by themselves, just not with the actkbd.conf file. It's weird.

Thanks anyways though.

Offline Atravir

  • Newbie
  • *
  • Posts: 4
Re: Hard Volume Control with ALSA
« Reply #6 on: May 16, 2013, 09:19:01 PM »
Hi Atravir
Did you run   actkbd ?

Do I need to if I installed in onBoot?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11587
Re: Hard Volume Control with ALSA
« Reply #7 on: May 16, 2013, 09:38:58 PM »
Hi Atravir
If the extension does not have a script that starts it automatically, then yes. Run this command:
Code: [Select]
ps | grep actkbd | grep -v grep If it doesn't return anything, you need to run it.