<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arkold&#039;s Blog &#187; x</title>
	<atom:link href="http://arkold.com/tag/x/feed" rel="self" type="application/rss+xml" />
	<link>http://arkold.com</link>
	<description>My personal blog :)</description>
	<lastBuildDate>Tue, 17 Aug 2010 23:59:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Making volume keys work with KMix</title>
		<link>http://arkold.com/14-making-volume-keys-work-with-kmix</link>
		<comments>http://arkold.com/14-making-volume-keys-work-with-kmix#comments</comments>
		<pubDate>Sat, 26 Jul 2008 03:41:36 +0000</pubDate>
		<dc:creator>Arkold Thos</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[x]]></category>

		<guid isPermaLink="false">http://arkold.com/?p=14</guid>
		<description><![CDATA[I think that I am not the only one who bought one of this kind of keyboards and wish to have them working under Linux, Ubuntu do it without any modification as far I know, Kubuntu too, as I know &#8230; <a href="http://arkold.com/14-making-volume-keys-work-with-kmix">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I think that I am not the only one who bought one of this kind of keyboards and wish to have them working under Linux, Ubuntu do it without any modification as far I know, Kubuntu too, as I know there are extra tools to do it with a GUI, but I&#8217;ll teach you how that tools work <img src='http://arkold.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Tested on Debian Lenny and Sid.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>Have a keyboard with multimedia keys, as volume up &amp; down</li>
<li>Have <em><code>x11-utils</code></em><code> package installed</code></li>
<li>Have super user access</li>
<li>The K Environment</li>
<li>KMix application installed</li>
</ul>
<p><strong>Tips</strong></p>
<ul>
<li>This can work with anything that runs on the X server, but you need do extra editing, so have fun at that <img src='http://arkold.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>We will use an application called <em>xev </em>that is into x11-utils, first of all, we need to know the keycode of the keys we want to configure, so we do the following thing.</p>
<p>$ xev</p>
<p>Then a window showing many text will appear, however, we click on <strong>JUST</strong> the keys we want to configure, in mine case it show off it when I clicked that keys (volume up&amp;down). The keycodes are in bold.</p>
<p><strong>The increase volume button</strong></p>
<blockquote><p>KeyPress event, serial 31, synthetic NO, window 0x2a00001,<br />
root 0x8a, subw 0&#215;0, time 1517838800, (-479,599), root:(207,626),<br />
state 0&#215;10, <strong>keycode 176</strong> (keysym 0×0, NoSymbol), same_screen YES,<br />
XLookupString gives 0 bytes:<br />
XmbLookupString gives 0 bytes:<br />
XFilterEvent returns: False</p>
<p>KeyRelease event, serial 31, synthetic NO, window 0×2a00001,<br />
root 0×8a, subw 0×0, time 1517838951, (-479,599), root:(207,626),<br />
state 0×10, <strong>keycode 176</strong> (keysym 0×0, NoSymbol), same_screen YES,<br />
XLookupString gives 0 bytes:<br />
XFilterEvent returns: FalseKeyPress event, serial 31, synthetic NO, window 0x2a00001,</p></blockquote>
<p><strong>The decrease volume button</strong></p>
<blockquote><p>root 0x8a, subw 0&#215;0, time 1517844324, (252,33), root:(938,60),<br />
state 0&#215;10, <strong>keycode 174</strong> (keysym 0×0, NoSymbol), same_screen YES,<br />
XLookupString gives 0 bytes:<br />
XmbLookupString gives 0 bytes:<br />
XFilterEvent returns: False</p></blockquote>
<blockquote><p>KeyRelease event, serial 31, synthetic NO, window 0×2a00001,<br />
root 0×8a, subw 0×0, time 1517844482, (252,33), root:(938,60),<br />
state 0×10, <strong>keycode 174</strong> (keysym 0×0, NoSymbol), same_screen YES,<br />
XLookupString gives 0 bytes:<br />
XFilterEvent returns: False</p></blockquote>
<p>Then we create <em>~/.kde/Autostart/keycodes</em> and we put in this (editing to match with your keycodes)<em>.</em></p>
<blockquote><p>#!/bin/sh<br />
#file to map special keys.<br />
#File location: ~/.kde/Autostart<br />
#File Name:keycodes</p>
<p>xmodmap -e ‘keycode 174=F21′ #voldown<br />
xmodmap -e ‘keycode 176=F22′ #volup</p>
<p>#Abrimos kmix y dejamos que xbindkeys sirva<br />
kmix</p>
<p>#Se abre xbindkeys para enlazar las teclas de acceso rapido con los programas<br />
xbindkeys</p></blockquote>
<p>Then we edit <em>~/.xbindkeysrc </em>(if it doesn&#8217;t exists, we need to create it) and we add the following lines</p>
<blockquote><p>#Volume decrease<br />
&#8220;dcop kmix Mixer0 decreaseVolume 0&#8243;<br />
F21</p>
<p>#Volume increase<br />
&#8220;dcop kmix Mixer0 increaseVolume 0″<br />
F22</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://arkold.com/14-making-volume-keys-work-with-kmix/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
