]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blob - Linux/logitech.shtml
Add tutorial on installing Debian on A20 board - fixed page description.
[www.vanrenterghem.biz.git] / Linux / logitech.shtml
1 <HTML>
2 <HEAD>
3    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
4    <meta name="author" content="Frederik Vanrenterghem" />
5    <META NAME="Description" CONTENT="Personal homepage - GNU/Linux stuff - Logitech Cordless Desktop Deluxe Keyboard" />
6    <TITLE>vanrenterghem.biz - GNU/Linux - Logitech Cordless Desktop Deluxe Keyboard</TITLE>
7 <link rel="stylesheet" href="/styles/header.css" type="text/css" />
8 <link rel="stylesheet" href="/styles/main.css" type="text/css" />
9 </HEAD>
10 <BODY>
11 <!--#include virtual='/header.shtml' -->   
12 <H1>Getting the extra keys on a Logitech Cordless Desktop Deluxe to work in Debian's X</H1>
13 <P>Last tested May 16, 2004 - on X 4.3.0-dfsg in Debian Sid</P>
14 <H2>Step 1</H2>
15 <P>   
16 Append the following to the file <i><B>/usr/X11R6/lib/X11/XKeysymDB</i></B>: <BR />
17 <BR />
18 <TABLE cellpadding="6" bgcolor="#ffeeee">
19 <PRE>
20 <TR><TD>logitech_standby</TD><TD>:</TD><TD>10090000</TD></TR><TR>
21 <TD>logitech_mail</TD><TD>:</TD><TD>10090001</TD></TR><TR>
22 <TD>logitech_sms</TD><TD>:</TD><TD>10090002</TD></TR><TR>
23 <TD>logitech_webcam</TD><TD>:</TD><TD>10090003</TD></TR><TR>
24 <TD>logitech_mute</TD><TD>:</TD><TD>10090004</TD></TR><TR>
25 <TD>logitech_up</TD><TD>:</TD><TD>10090005</TD></TR><TR>
26 <TD>logitech_down</TD><TD>:</TD><TD>10090006</TD></TR><TR>
27 <TD>logitech_media</TD><TD>:</TD><TD>10090007</TD></TR><TR>
28 <TD>logitech_home</TD><TD>:</TD><TD>10090008</TD></TR><TR>
29 <TD>logitech_search</TD><TD>:</TD><TD>10090009</TD></TR><TR>
30 <TD>logitech_F1</TD><TD>:</TD><TD>1009000A</TD></TR><TR>
31 <TD>logitech_F2</TD><TD>:</TD><TD>1009000B</TD></TR><TR>
32 <TD>logitech_F3</TD><TD>:</TD><TD>1009000C</TD></TR><TR>
33 <TD>logitech_F4</TD><TD>:</TD><TD>1009000D</TD></TR><TR>
34 <TD>logitech_F5</TD><TD>:</TD><TD>1009000E</TD></TR><TR>
35 <TD>logitech_F6</TD><TD>:</TD><TD>1009000F</TD></TR><TR>
36 <TD>logitech_F7</TD><TD>:</TD><TD>10090010</TD></TR><TR>
37 <TD>logitech_F8</TD><TD>:</TD><TD>10090011</TD></TR><TR>
38 <TD>logitech_F9</TD><TD>:</TD><TD>10090012</TD></TR><TR>
39 <TD>logitech_F10</TD><TD>:</TD><TD>10090013</TD></TR><TR>
40 <TD>logitech_F11</TD><TD>:</TD><TD>10090014</TD></TR><TR>
41 <TD>logitech_F12</TD><TD>:</TD><TD>10090015</TD></TR>
42 </PRE>
43 </TABLE>
44 <BR />
45 Make sure the values in the second row are unique for this file.
46 <BR />
47 </P>
48 <H2>Step 2</H2>
49 <P>
50 Next, add this to <i><B>~/.xmodmap</i></B>: <BR />
51 <BR />
52 <TABLE cellpadding="6" bgcolor="#ffeeee">
53 <PRE>
54 <TR><TD>keycode 187</TD><TD>=</TD><TD>logitech_F1</TD></TR><TR>
55 <TD>keycode 188</TD><TD>=</TD><TD>logitech_F2</TD></TR><TR>
56 <TD>keycode 118</TD><TD>=</TD><TD>logitech_F3</TD></TR><TR>
57 <TD>keycode 119</TD><TD>=</TD><TD>logitech_F4</TD></TR><TR>
58 <TD>keycode 120</TD><TD>=</TD><TD>logitech_F5</TD></TR><TR>
59 <TD>keycode 121</TD><TD>=</TD><TD>logitech_F6</TD></TR><TR>
60 <TD>keycode 122</TD><TD>=</TD><TD>logitech_F7</TD></TR><TR>
61 <TD>keycode 194</TD><TD>=</TD><TD>logitech_F8</TD></TR><TR>
62 <TD>keycode 195</TD><TD>=</TD><TD>logitech_F9</TD></TR><TR>
63 <TD>keycode 196</TD><TD>=</TD><TD>logitech_F10</TD></TR><TR>
64 <TD>keycode 215</TD><TD>=</TD><TD>logitech_F11</TD></TR><TR>
65 <TD>keycode 216</TD><TD>=</TD><TD>logitech_F12</TD></TR><TR>
66 <TD>keycode 236</TD><TD>=</TD><TD>logitech_mail</TD></TR></TD></TR><TR><TR>
67 <TD>keycode 145</TD><TD>=</TD><TD>logitech_sms</TD></TR><TR>
68 <TD>keycode 146</TD><TD>=</TD><TD>logitech_webcam</TD></TR><TR>
69 <TD>keycode 160</TD><TD>=</TD><TD>logitech_mute</TD></TR><TR>
70 <TD>keycode 176</TD><TD>=</TD><TD>logitech_up</TD></TR><TR>
71 <TD>keycode 174</TD><TD>=</TD><TD>logitech_down</TD></TR><TR>
72 <TD>keycode 237</TD><TD>=</TD><TD>logitech_media</TD></TR><TR>
73 <TD>keycode 178</TD><TD>=</TD><TD>logitech_home</TD></TR><TR>
74 <TD>keycode 229</TD><TD>=</TD><TD>logitech_search</TD></TR><TR>
75 <TD>keycode 223</TD><TD>=</TD><TD>logitech_standby</TD></TR>
76 </PRE>
77 </TABLE>
78 <BR />
79 You'll need to make sure the keycodes are identical on your system. Use
80 <em><a href="http://www.xfree86.org/current/xev.1.html">xev</a></em> to determine the keycodes.<BR />
81 <P>
82 That's it, your extra Logitech Cordless Desktop Deluxe keys are now supported 
83 in the X Window System. In order for them to actually do something, 
84 you'll need to make your window manager aware of their existence. As I'm 
85 using <A HREF="http://www.enlightenment.org">Enlightenment</A>, I'll describe what 
86 to do if you want that window manager to do something meaningful 
87 when you press those extra keys.
88 </P>
89 <H2>Step 3</H2>
90 <P>
91 Modify one of the keybinding sections in <i><B>~/.enlightenment/keybindings.cfg</i></B> as such: </P>
92 <P>
93 <table cellpadding="6" bgcolor="#ffeeee"><tr><td>
94 <pre>
95 __NEXT_ACTION<BR />
96   __KEY logitech_webcam<BR />
97   __EVENT __KEY_PRESS<BR />
98   __ACTION __A_EXEC /home/frederik/scripts/e_launchOrMoveApp.sh Gqcam gqcam<BR />
99 </pre>
100 </td></tr></table>  
101 </P>  
102 <P>
103 Replace the last part with the executable of your choice. As you notice, you're able to pass variables to your command by adding them on the line.
104 </P>
105 <!--#include virtual='/footer.shtml' -->
106 </HTML>
107 </BODY>