<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Get keyboard events with raspberry pi in headless mode]]></title><description><![CDATA[<p>I'm using makey makey to control a patch running on the raspberry pi 3, using the keyname object. Everything runs fine when running with a monitor,  but I try to run the patch in headless mode the keyname object just doesn't seem to work. pd seems to run fine, I can get audio but the patch just doesn't respond to the makey makey.</p>
<p>Anyone have any experience with this, or know of any workarounds?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 22:44:50 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10580.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Feb 2017 03:29:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Fri, 17 Feb 2017 03:29:15 GMT]]></title><description><![CDATA[<p>I'm using makey makey to control a patch running on the raspberry pi 3, using the keyname object. Everything runs fine when running with a monitor,  but I try to run the patch in headless mode the keyname object just doesn't seem to work. pd seems to run fine, I can get audio but the patch just doesn't respond to the makey makey.</p>
<p>Anyone have any experience with this, or know of any workarounds?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode</guid><dc:creator><![CDATA[altibzz]]></dc:creator><pubDate>Fri, 17 Feb 2017 03:29:15 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Fri, 17 Feb 2017 05:11:06 GMT]]></title><description><![CDATA[<p>I believe the issue arises from the method the {key} family receives keyboard data through the OS.  You can use [hid] to poll the keyboard without window focus.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/2</guid><dc:creator><![CDATA[sunji]]></dc:creator><pubDate>Fri, 17 Feb 2017 05:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Fri, 17 Feb 2017 21:05:26 GMT]]></title><description><![CDATA[<p>That makes sense, thanks! Though I'm having a hell of a time getting pd to load the hid external on the rpi. I've put the folder in /usr/lib/pd/extra and tried using the declare object but it just won't load...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/3</guid><dc:creator><![CDATA[altibzz]]></dc:creator><pubDate>Fri, 17 Feb 2017 21:05:26 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Fri, 17 Feb 2017 21:20:11 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/altibzz">@altibzz</a> I think you probably need [linuxhid]<br />
<a href="http://puredata.info/Members/hans/linuxhid-2003.11.17.tar.gz/view" rel="nofollow">http://puredata.info/Members/hans/linuxhid-2003.11.17.tar.gz/view</a><br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 17 Feb 2017 21:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Fri, 17 Feb 2017 23:04:53 GMT]]></title><description><![CDATA[<p>Thanks, unfortunately that doesn't seem to load either. When I load the object it just seems to load a subpatch with the help patches for the objects, though the objects themselves don't load... which is really odd considering they're all in the same folder.</p>
<p>I eventually just installed pd-l2ork which has the [hid] object included, and it works! Can't figure out why it won't load in vanilla.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/5</guid><dc:creator><![CDATA[altibzz]]></dc:creator><pubDate>Fri, 17 Feb 2017 23:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Mon, 11 Jun 2018 09:29:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/altibzz">@altibzz</a> Did you find a solution for this problem? I can't find a way to load the hid library on my rpi3.<br />
I want to start Pd headless on boot and it should receive all the keyboard actions.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/6</guid><dc:creator><![CDATA[laekerol]]></dc:creator><pubDate>Mon, 11 Jun 2018 09:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Mon, 11 Jun 2018 16:58:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/laekerol">@laekerol</a> Probably to do with window focus.  The hid objects grab keyboard input only when their window is in focus.  You might be able to force the focus in your patch with a delayed  loadbang to a message......<br />
[;<br />
pd-patchname vis 1(</p>
<p>where patchname is the name of the pd patch that contains the hid object.</p>
<p>I am not sure though that window focus will have any meaning without a display.  That might depend on the window manager...... unsure.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/7</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 11 Jun 2018 16:58:18 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Mon, 11 Jun 2018 17:42:50 GMT]]></title><description><![CDATA[<p>Thanks for the quick answer. I tried something like this before, but it doesn't seem reliable enough for my purpose. I use processing now and send the keyboard actions via UDP to my patch.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/8</guid><dc:creator><![CDATA[laekerol]]></dc:creator><pubDate>Mon, 11 Jun 2018 17:42:50 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Thu, 20 Jun 2019 22:33:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/altibzz">@altibzz</a> were the libraries that you tried compiled for your architecure? as i understand it - and i might be not quite right! - the libraries have to either be pre-compiled for your cpu/os or you compile them yourself. at least that's the case with some objects, i <em>think</em>.</p>
<p>as for [hid] on raspberry (3b+, raspbian stretch), i couldn't find anything on deken, but i think &quot;sudo apt-get install pd-hid&quot; did the trick for me.<br />
it works with my wireless keyboard. i quickly tried an example-patch to find out whether the window's focus has something to do with pd's receiving of the data. with the gui active, i could switch windows and it still worked, but starting Pd with the -nogui flag, it didn't work, because - it seemed that - the keyboard inputs where only interpreted (and thus 'intercepted'?) by the terminal (the terminal's ascii cursor was moved by typing) and not Pd anymore. but this was just a quick and dirty test!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/9</guid><dc:creator><![CDATA[Shaker]]></dc:creator><pubDate>Thu, 20 Jun 2019 22:33:10 GMT</pubDate></item><item><title><![CDATA[Reply to Get keyboard events with raspberry pi in headless mode on Sat, 06 Jan 2024 16:13:32 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/altibzz">@altibzz</a> said:</p>
<blockquote>
<p>That makes sense, thanks! Though I'm having a hell of a time getting pd to load the hid external on the rpi. I've put the folder in /usr/lib/pd/extra and tried using the declare object but it just won't load...</p>
</blockquote>
<p>i have spent entire day on this shit<br />
here is what you need to add to PD command line,in my example was ELSE lib<br />
-path /home/pi/Documents/Pd/externals/ -lib else</p>
<p>bests<br />
K</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10580/get-keyboard-events-with-raspberry-pi-in-headless-mode/10</guid><dc:creator><![CDATA[kazeko]]></dc:creator><pubDate>Sat, 06 Jan 2024 16:13:32 GMT</pubDate></item></channel></rss>