<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=How_to_get_intercept-tools_to_work</id>
	<title>How to get intercept-tools to work - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=How_to_get_intercept-tools_to_work"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=How_to_get_intercept-tools_to_work&amp;action=history"/>
	<updated>2026-04-06T23:11:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=How_to_get_intercept-tools_to_work&amp;diff=141&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;If you have udevmon.service running, stop it using `sudo systemctl stop udevmon.service`  &lt;pre&gt; hack $ cat x2y.c #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;linux/input.h...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=How_to_get_intercept-tools_to_work&amp;diff=141&amp;oldid=prev"/>
		<updated>2022-01-07T01:20:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If you have udevmon.service running, stop it using `sudo systemctl stop udevmon.service`  &amp;lt;pre&amp;gt; hack $ cat x2y.c #include &amp;lt;stdio.h&amp;gt; #include &amp;lt;stdlib.h&amp;gt; #include &amp;lt;linux/input.h...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you have udevmon.service running, stop it using `sudo systemctl stop udevmon.service`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hack $ cat x2y.c&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
#include &amp;lt;linux/input.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main(void) {&lt;br /&gt;
    setbuf(stdin, NULL), setbuf(stdout, NULL);&lt;br /&gt;
&lt;br /&gt;
    struct input_event event;&lt;br /&gt;
    while (fread(&amp;amp;event, sizeof(event), 1, stdin) == 1) {&lt;br /&gt;
        if (event.type == EV_KEY &amp;amp;&amp;amp; event.code == KEY_X)&lt;br /&gt;
            event.code = KEY_Y;&lt;br /&gt;
&lt;br /&gt;
        fwrite(&amp;amp;event, sizeof(event), 1, stdout);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 gcc x2y.c -o x2y&lt;br /&gt;
 export DEVNODE=/dev/input/by-path/platform-i8042-serio-0-event-kbd&lt;br /&gt;
 sudo intercept -g $DEVNODE | x2y | sudo uinput -d $DEVNODE&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>