You are not logged in.

#1 2007-09-08 23:44:02

ristretto
Member
Registered: 2007-07-06
Posts: 50

[SOLVED - for fluxbox] How do I enable audio buttons on my Dell D830?

I have a Dell D830 with three buttons: Vol up, Vol down and mute.\
Have ALSA going and I use quod libet on top of Fluxbox.

Anyway know how to make these buttons work such that it effects
the actual volume.

(Perhaps I tie the buttons to amixer sset settings somehow?)

Here are the two events I get when I push the Vol down button (xev)

KeyPress event, serial 32, synthetic NO, window 0x1000001,
    root 0x102, subw 0x0, time 3638568, (935,552), root:(1038,676),
    state 0x0, keycode 174 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x1000001,
    root 0x102, subw 0x0, time 3638789, (935,552), root:(1038,676),
    state 0x0, keycode 174 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Vol up

KeyPress event, serial 32, synthetic NO, window 0x1000001,
    root 0x102, subw 0x0, time 3715104, (865,249), root:(1014,419),
    state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x1000001,
    root 0x102, subw 0x0, time 3715276, (865,249), root:(1014,419),
    state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Mute

KeyPress event, serial 29, synthetic NO, window 0x1000001,
    root 0x102, subw 0x0, time 3758871, (890,368), root:(1062,561),
    state 0x0, keycode 160 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x1000001,
    root 0x102, subw 0x0, time 3759068, (890,368), root:(1062,561),
    state 0x0, keycode 160 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Last edited by ristretto (2007-09-10 08:11:44)

Offline

#2 2007-09-09 18:24:48

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: [SOLVED - for fluxbox] How do I enable audio buttons on my Dell D830?

It all depends on your Desktop Environment and what you want to bind them to...  I just completed a section of the Dell Inspiron 6400 on the same subject, I recommend reading it and following the links provided:

http://wiki.archlinux.org/index.php/Del … Fn_Hotkeys


thayer williams ~ cinderwick.ca

Offline

#3 2007-09-10 06:38:14

tkjacobsen
Member
From: Denmark
Registered: 2007-07-07
Posts: 29

Re: [SOLVED - for fluxbox] How do I enable audio buttons on my Dell D830?

You can also try the xmodmap solution from here http://wiki.archlinux.org/index.php/Hot … cters_in_X

EDIT: This method also features a neat little osd when setting the sound.

Last edited by tkjacobsen (2007-09-10 06:43:45)


To save time, reboot your computer in the background using "reboot &"

Offline

#4 2007-09-10 07:41:37

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: [SOLVED - for fluxbox] How do I enable audio buttons on my Dell D830?

If you are using Gnome you could probably just use the gnome-keybinding-properties tool, at least it works with d630. For other DE/WM I don't know they probably have some similar tool, if not then you can try thei8kbuttons program.

Offline

#5 2007-09-10 08:11:09

ristretto
Member
Registered: 2007-07-06
Posts: 50

Re: [SOLVED - for fluxbox] How do I enable audio buttons on my Dell D830?

Thanks for the help.  I'm using Fluxbox, and sorted it out
with with the .fluxbox/keys and xev

none 176 :MacroCmd { ExecCommand aumix -v +2 }
none 174 :MacroCmd { ExecCommand aumix -v -2 }
none 160 :MacroCmd { ExecCommand amixer sset Front toggle }

Mod4 F9 :MacroCmd { ExecCommand aumix -v +2  }
Mod1 Mod4 F9 :MacroCmd { ExecCommand aumix -v -2  }
Mod4 F10 :MacroCmd { ExecCommand quodlibet --previous }
Mod4 F11 :MacroCmd { ExecCommand quodlibet --play-pause }
Mod4 F12 :MacroCmd { ExecCommand quodlibet --next }

Offline

Board footer

Powered by FluxBB