You are not logged in.

#1 2012-02-17 20:32:12

alpa8le
Member
Registered: 2012-02-04
Posts: 24

[SOLVED]Mute works but up'n'down not working?

I feel sorry for bumping questions about dwm but I really couldn't find a solution for this.
The problem is with sound shortcuts.
Here is the config.h's sound options(Thanks to Army for this):

static const char *louder[] =                { "amixer", "-q", "set", "Master", "1+", NULL };
static const char *lower[] =                 { "amixer", "-q", "set", "Master", "1-", NULL };
static const char *mute[] =                  { "amixer", "-q", "set", "Master", "toggle", NULL };

and

	{ 0,                     0x1008ff13,   spawn,          {.v = louder } },
	{ 0,                     0x1008ff11,   spawn,          {.v = lower } },
	{ 0,                     0x1008ff12,   spawn,          {.v = mute } },

Mute exactly works with given functions but I can't change volume up or down.
Thanks in advance.

Last edited by alpa8le (2012-02-19 14:32:39)

Offline

#2 2012-02-17 23:08:44

allen875
Member
From: Winchester, VA
Registered: 2011-09-02
Posts: 46
Website

Re: [SOLVED]Mute works but up'n'down not working?

I've noticed this problem myself using different window managers/desktop environments, but haven't looked into myself yet since they work fine with cinnamon and gnome3. Gonna be watching this thread to see if it helps me too smile

Offline

#3 2012-02-18 12:58:35

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED]Mute works but up'n'down not working?

It looks like the commands are right, so it must be something with the keycodes. You can use xbindkeys also to do this and it will work with different wm's. Check the wiki for extra keys and xbindkeys. Also, this is probably the wrong section to be asking questions about dwm unless it's to do with abs or a PKGBUILD. Try Applications and Desktop Environments or one of the dwm threads for better response.

Offline

#4 2012-02-18 13:37:08

alpa8le
Member
Registered: 2012-02-04
Posts: 24

Re: [SOLVED]Mute works but up'n'down not working?

I checked xbindkeys but when I press Fn+F12(Increase volume) xbindkeys doesnt read it neither? I really can't get it. If it has problems with Fn keys why it reads Fn+F10(Mute Function) then? Back in my Fedora days I could use them if I remember correct.

Last edited by alpa8le (2012-02-18 13:46:38)

Offline

#5 2012-02-18 16:12:19

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED]Mute works but up'n'down not working?

Did you try using the example .xbindkeysrc in the wiki? Make sure to add xbindkeys to your .xinitrc too.

Offline

#6 2012-02-18 19:07:37

alpa8le
Member
Registered: 2012-02-04
Posts: 24

Re: [SOLVED]Mute works but up'n'down not working?

Yes, i did exactly what the wiki said, but no luck

Offline

#7 2012-02-19 14:32:02

alpa8le
Member
Registered: 2012-02-04
Posts: 24

Re: [SOLVED]Mute works but up'n'down not working?

I found the solution with Army's help. I edited config.h and made steps +/-1000. And it worked. allen875, I think your problem was this too smile. But it is still strange to make steps 1000?? Anyway, thanks to you too stlarch for taking time smile.

Last edited by alpa8le (2012-02-19 14:37:35)

Offline

Board footer

Powered by FluxBB