You are not logged in.
Hello. I am trying to get my Lenovo S12 netbook volume control buttons to work in #! 9.04. Here is what I've done..
[ matt: ~ ]$ xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
123 XF86AudioRaiseVolume
122 XF86AudioLowerVolumeThis means the keycode is 123 for volume up, and 122 for volume down..? So, then I do..
vim ~/.Xmodmap and add the following lines
keycode 123 = XF86AudioRaiseVolume
keycode 122 = XF86AudioLowerVolumeTo verify this,
[ matt: ~ ]$ xmodmap -pke | grep Volume
keycode 122 = XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolumeShould there be more in this file?
Last edited by m_ad (2009-09-16 14:55:31)
Offline
add this to you openbox/rc.xml
<!-- volume control -->
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer sset Master,0 5%+</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer sset Master,0 5%-</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>amixer sset Master,0 toggle</command>
</action>
</keybind>im surprised you had to do that mine were already bound to those keys, (mute is bound to code 121)
- - - - - - - - Wiki Pages - - - - - - -
#! install guide *autostart programs, modify the menu & keybindings
configuring Conky *installing scripts
Offline
thanks, that worked 
Offline
Thanks benj1, I need to add this as well for my Lenovo SL300.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.