-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoundgraph-imon-pad-vs-linux-2636.html
155 lines (145 loc) · 9.04 KB
/
soundgraph-imon-pad-vs-linux-2636.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en">
<head>
<title>meandering journey</title>
<meta charset="utf-8" />
<link href="./theme/css/main.css" type="text/css" rel="stylesheet" />
<link href="http://meandering.journey.sk/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="meandering journey Full Atom Feed" />
<link href="http://meandering.journey.sk/feeds/misc.atom.xml" type="application/atom+xml" rel="alternate" title="meandering journey Categories Atom Feed" />
</head>
<body id="index" class="home">
<div class="all">
<div class="extra-info">
<aside>
<h3>About the blog</h3>
A platform to practice my written communication skills.
The range of topics tends to surprise even myself.
</aside>
<aside>
<h3>About the author</h3>
My name is Ján Hušták. I live near
<a href="http://maps.google.com/maps?q=bratislava&z=6">Bratislava</a>.
I've been developing software professionally since 1998.
The Java platform has served me well but I don't dwell on it.
</aside>
<aside>
<h3>Links</h3>
<a href="http://www.journey.sk">Main site</a>,
<a href="http://coding.journey.sk">projects page</a>,
<a href="https://github.com/codingjourney">GitHub</a>.
Sorry, no social networks. I do read mail sent to
coding at journey.sk.
</aside>
<aside id="tags">
<h3>Tags</h3>
<a href="./tag/motivation.html">motivation</a>
- <a href="./tag/htpc.html">HTPC</a>
- <a href="./tag/openbsd.html">OpenBSD</a>
- <a href="./tag/qt.html">Qt</a>
- <a href="./tag/upsheet.html">upsheet</a>
- <a href="./tag/python.html">Python</a>
- <a href="./tag/kde.html">KDE</a>
- <a href="./tag/cloud-computing.html">cloud computing</a>
- <a href="./tag/caldav.html">CalDAV</a>
- <a href="./tag/howto.html">howto</a>
- <a href="./tag/jetty.html">Jetty</a>
- <a href="./tag/craftsmanship.html">craftsmanship</a>
- <a href="./tag/meta.html">meta</a>
- <a href="./tag/music.html">music</a>
- <a href="./tag/it-misadventures.html">IT misadventures</a>
- <a href="./tag/algorithms.html">algorithms</a>
- <a href="./tag/android.html">Android</a>
- <a href="./tag/cups.html">CUPS</a>
- <a href="./tag/security.html">security</a>
- <a href="./tag/html5.html">HTML5</a>
</aside>
<aside class="links">
<h3>Recent articles</h3>
<a href="./much-more-fun-with-planning-poker.html">Much more fun with Planning poker</a>
<a href="./the-child-that-grew-too-fast.html">The child that grew too fast</a>
<a href="./mare-nostrum-at-konzerthaus.html">Mare Nostrum at Konzerthaus</a>
<a href="./too-much-fun-with-planning-poker.html">Too much fun with Planning poker</a>
<a href="./long-time-no-blog.html">Long time no blog</a>
<a href="./what-i-did-last-summer.html">What I did last summer</a>
<a href="./october-2013-is-here.html">October 2013 is here</a>
<a href="./october-2013.html">October 2013</a>
</aside>
</div><!-- /.extra-info -->
<div class="main-column">
<header id="banner" class="body">
<h1><a href=".">meandering<img src="./theme/images/logo.png"/>journey</a></h1>
</header><!-- /#banner -->
<section id="content" class="body">
<header>
<h3>
<a href="soundgraph-imon-pad-vs-linux-2636.html" rel="bookmark"
title="Permalink to Soundgraph iMON PAD vs. Linux 2.6.36">Soundgraph iMON PAD vs. Linux 2.6.36</a></h2>
</header>
<footer class="post-info">
Published on <abbr class="published" title="2011-01-09T12:09:00"> Sun 09 January 2011 </abbr> under
<a href="./tag/it-misadventures.html">IT misadventures</a> </footer><!-- /.post-info -->
<div class="entry-content">
<p>I use a Soundgraph iMON PAD remote control to command my home-theater PC. The remote stopped working when I upgraded my kernel from 2.6.33 to 2.6.36, due to major infrastructure changes that started in 2.6.35. At first I simply reverted to the older kernel but this week I had a few spare hours to figure out what was going on. In short, the iMON driver has been cleaned up by Jarod Wilson and <a href="http://wilsonet.com/?p=85">included in the main kernel code base (finally!)</a>. Its logic was also standardized to route its output to the Linux input layer rather than to the <a href="http://www.lirc.org">LIRC</a> daemon. This obviously requires some re-configuration of the daemon, as <a href="http://old.nabble.com/Re:-Status-of-lirc-imon-usb-remotes-p28684857.html">Jarod explained</a> on the LIRC mailing list.</p>
<p>On my HTPC I had to put the following settings into <em>/etc/lirc/hardware.conf</em>:</p>
<div class="codehilite"><pre><span class="n">DRIVER</span><span class="o">=</span><span class="s">"devinput"</span>
<span class="n">DEVICE</span><span class="o">=</span><span class="s">"/dev/input/by-id/usb-15c2_ffdc-event-mouse"</span>
</pre></div>
<p>I also had to adjust key codes in <em>/etc/lirc/lircd.conf</em> (note that I only need only six keys for my remote-control software, <a href="http://offhand.sourceforge.net/">Offhand</a>; others should simply use <a href="http://wilsonet.com/jarod/imon_stuff/imon-devinput-lirc/lircd.conf">Jarod's file</a>):</p>
<div class="codehilite"><pre><span class="n">begin</span> <span class="n">codes</span>
<span class="n">KEY_BACKSPACE</span> <span class="mh">0x000E</span>
<span class="n">KEY_COMPOSE</span> <span class="mh">0x007F</span>
<span class="n">KEY_CONTEXT_MENU</span> <span class="mh">0x01B6</span>
<span class="n">KEY_ENTER</span> <span class="mh">0x001C</span>
<span class="n">KEY_KEYBOARD</span> <span class="mh">0x0176</span>
<span class="n">KEY_SPACE</span> <span class="mh">0x0039</span>
<span class="n">end</span> <span class="n">codes</span>
</pre></div>
<p>Finally, I had to adjust the .lircrc file used by Offhand:</p>
<div class="codehilite"><pre><span class="n">begin</span>
<span class="n">prog</span> <span class="o">=</span> <span class="n">offhand</span>
<span class="n">button</span> <span class="o">=</span> <span class="n">KEY_CONTEXT_MENU</span>
<span class="n">config</span> <span class="o">=</span> <span class="n">back</span>
<span class="n">end</span>
<span class="n">begin</span>
<span class="n">prog</span> <span class="o">=</span> <span class="n">offhand</span>
<span class="n">button</span> <span class="o">=</span> <span class="n">KEY_COMPOSE</span>
<span class="n">config</span> <span class="o">=</span> <span class="n">forward</span>
<span class="n">end</span>
<span class="n">begin</span>
<span class="n">prog</span> <span class="o">=</span> <span class="n">offhand</span>
<span class="n">button</span> <span class="o">=</span> <span class="n">KEY_KEYBOARD</span>
<span class="n">config</span> <span class="o">=</span> <span class="n">up</span>
<span class="n">repeat</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">end</span>
<span class="n">begin</span>
<span class="n">prog</span> <span class="o">=</span> <span class="n">offhand</span>
<span class="n">button</span> <span class="o">=</span> <span class="n">KEY_ENTER</span>
<span class="n">config</span> <span class="o">=</span> <span class="n">down</span>
<span class="n">repeat</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">end</span>
<span class="n">begin</span>
<span class="n">prog</span> <span class="o">=</span> <span class="n">offhand</span>
<span class="n">button</span> <span class="o">=</span> <span class="n">KEY_SPACE</span>
<span class="n">config</span> <span class="o">=</span> <span class="n">ok</span>
<span class="n">end</span>
<span class="n">begin</span>
<span class="n">prog</span> <span class="o">=</span> <span class="n">offhand</span>
<span class="n">button</span> <span class="o">=</span> <span class="n">KEY_BACKSPACE</span>
<span class="n">config</span> <span class="o">=</span> <span class="n">cancel</span>
<span class="n">end</span>
</pre></div>
<p>Separately, I also had to configure the iMON driver to forget about its mouse emulation mode. I did it by creating the file <em>/etc/modprobe.d/imon.conf</em> containing</p>
<div class="codehilite"><pre><span class="n">options</span> <span class="n">imon</span> <span class="n">nomouse</span><span class="o">=</span><span class="mi">1</span>
</pre></div>
</div><!-- /.entry-content -->
</section>
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>.
</address><!-- /#about -->
</footer><!-- /#contentinfo -->
</div><!-- /.main-column -->
</div><!-- /.all -->
</body>
</html>