Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Atravir on April 30, 2013, 10:54:44 PM

Title: Hard Volume Control with ALSA
Post by: Atravir 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
Title: Re: Hard Volume Control with ALSA
Post by: curaga 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.
Title: Re: Hard Volume Control with ALSA
Post by: Atravir 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
Title: Re: Hard Volume Control with ALSA
Post by: Rich on May 16, 2013, 03:25:46 AM
Hi Atravir
Did you run   actkbd ?
Title: Re: Hard Volume Control with ALSA
Post by: tinypoodle 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.

;)
Title: Re: Hard Volume Control with ALSA
Post by: Atravir 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.
Title: Re: Hard Volume Control with ALSA
Post by: Atravir on May 16, 2013, 09:19:01 PM
Hi Atravir
Did you run   actkbd ?

Do I need to if I installed in onBoot?
Title: Re: Hard Volume Control with ALSA
Post by: Rich 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.