From 93c503f2641d8762578f3185bc044429fe3cb535 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 23 Apr 2010 20:12:51 +0200 Subject: [PATCH] add article about the volume keys Signed-off-by: Nico Schottelius --- ...me-keys-on-lenovo-x200-x201-xbindkeys.mdwn | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 blog/volume-keys-on-lenovo-x200-x201-xbindkeys.mdwn diff --git a/blog/volume-keys-on-lenovo-x200-x201-xbindkeys.mdwn b/blog/volume-keys-on-lenovo-x200-x201-xbindkeys.mdwn new file mode 100644 index 00000000..96876ec9 --- /dev/null +++ b/blog/volume-keys-on-lenovo-x200-x201-xbindkeys.mdwn @@ -0,0 +1,46 @@ +[[!meta title="How to use the volume keys on the Lenovo X200 and X201"]] + +If you want to make use of the volume up/down buttons on your +X201, you can simply install +[xbindkeys](http://www.nongnu.org/xbindkeys/xbindkeys.html) and +add the following to your **~/.xbindkeysrc**: + + #VolDown + "amixer -q set Master 5%-" + m:0x0 + c:122 + NoSymbol + + #VolUp + "amixer -q set Master 5%+" + m:0x0 + c:123 + NoSymbol + +Beware: The keycodes are different on the X200 and the X201! For the +X200, use the following configuration: + + #VolDown + "amixer -q set Master 5%-" + m:0x0 + c:174 + NoSymbol + + #VolUp + "amixer -q set Master 5%+" + m:0x0 + c:176 + NoSymbol + +For testing, you can launch + + xbindkeys --verbose -n + +Afterwards, you can include **xbindkeys** into your **.xinitrc** without any parameters, +as it automatically forks into the background: + + xbindkeys + +The **volume mute** button also generates an event on the X201 +(none on the X200), but it seems like muting is done in hardware, +so no need for a mapping. + +Have fun! + +[[!tag unix]]