You are not logged in.
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
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:
thayer williams ~ cinderwick.ca
Offline
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
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
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