<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Joystick_port_as_GPI</id>
	<title>Joystick port as GPI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Joystick_port_as_GPI"/>
	<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Joystick_port_as_GPI&amp;action=history"/>
	<updated>2026-04-23T14:48:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://rivendellaudio.wiki/index.php?title=Joystick_port_as_GPI&amp;diff=28831&amp;oldid=prev</id>
		<title>imported&gt;WaybackImport: Imported via HTML fallback (before-primary)</title>
		<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Joystick_port_as_GPI&amp;diff=28831&amp;oldid=prev"/>
		<updated>2024-02-28T16:58:08Z</updated>

		<summary type="html">&lt;p&gt;Imported via HTML fallback (before-primary)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Q: I only need three GPI closures, is there a tutorial on using a standard serial somewhere?&lt;br /&gt;
&lt;br /&gt;
A: Not a serial, but if you&amp;#039;ve got an old SoundBlaster card around with a 15 pin joystick port, that&amp;#039;ll get you four GPIs.  See [/index.php/GPIO.txt_-_GPIO_Notes_for_Rivendell GPIO.txt] for the details.&lt;br /&gt;
&lt;br /&gt;
Q: I did have a old SB card around and have it installed as per [/index.php/GPIO.txt_-_GPIO_Notes_for_Rivendell GPIO.txt] 47k resistors on the axis controls and all.&lt;br /&gt;
&lt;br /&gt;
Problem is if I run a joystick test in yast everything works it shows all axis at 50 and all buttons work. &lt;br /&gt;
If I run&lt;br /&gt;
&lt;br /&gt;
jstest /dev/js0 &lt;br /&gt;
&lt;br /&gt;
from the command line everything works. &lt;br /&gt;
If I run&lt;br /&gt;
&lt;br /&gt;
jstest /dev/input/js0 &lt;br /&gt;
&lt;br /&gt;
from the command line everything works.&lt;br /&gt;
&lt;br /&gt;
however after setting /dev/js0 or /dev/input/js0 up as a local gpio in rivendell with 4 inputs I get nothing.&lt;br /&gt;
&lt;br /&gt;
[/index.php/RDGpiMon RDGpiMon] shows the four inputs but no indication on closures.&lt;br /&gt;
&lt;br /&gt;
Response 1: Is rduser allowed to access that device? Also the device must be created before the daemons start.....&lt;br /&gt;
&lt;br /&gt;
Response 2: You may have the wrong device name entered for your joystick port  in the &amp;#039;Device&amp;#039; field in your Local GPIO switcher description in rdadmin &amp;gt; Manage &lt;br /&gt;
Hosts &amp;gt; &amp;#039;hostname&amp;#039; &amp;gt; edit &amp;gt; Switchers GPIO &amp;gt; Add &amp;gt; Local GPIO ...&lt;br /&gt;
&lt;br /&gt;
You obviously have your soundcard / joystick port / joystick port connector, (with it&amp;#039;s pull-up resistors fitted) all working correctly.&lt;br /&gt;
&lt;br /&gt;
Try this to determine the device name, (openSuSE 10.2 / rd1.5.0)&lt;br /&gt;
&lt;br /&gt;
Power down the host and disconnect your adapter plug from the joystick port on your soundcard.&lt;br /&gt;
&lt;br /&gt;
Power up the host and then look in /dev/input and note what is listed there ... ( on the host beside me I get  /by-path, -event0, -event1, -event2, -mice, -mouse0 ).&lt;br /&gt;
&lt;br /&gt;
Power down the host and reconnect the joystick port adapter plug then power up again and have another look in /dev/input ... (I now get  /by-path, -event0, -event1, -event2, -event3, -js0, -mice, -mouse0 ).&lt;br /&gt;
&lt;br /&gt;
Note the appearance of -event3 and -js0&lt;br /&gt;
&lt;br /&gt;
In the &amp;#039;Device&amp;#039; field for your Local GPIO switcher description try using /dev/input/event3 ... set the number of GPI&amp;#039;s and what action each one should take etc and see if the joystick GPI&amp;#039;s now work.&lt;br /&gt;
&lt;br /&gt;
On the host beside me I am using /dev/input/event3 and have only 2 GPI&amp;#039;s set, (we only use 2 inputs via the joystick port) ... one input fires a macro cart to stop the log while the other fires a macro cart to start the log.&lt;br /&gt;
&lt;br /&gt;
A: Well the user has permission for that group which appears to be game. I have tried to as su cat /dev/input/event1 2 3 4 5 6 7 8 9 and see nothing however cat /dev/js0 or cat /dev/input/js0 show activity on closures, but either of those devices placed in local gpio config don&amp;#039;t work when using rdgpimon. Thanks for all the help and suggestions, I got it working. Even thought yast saw the joystick port and all tested well fot some reason Rivendell didn&amp;#039;t until I deleted the SB audio card and reinstalled it.&lt;br /&gt;
&lt;br /&gt;
Followup: After all the experimenting and problems I had with the Sound Blaster card in my previous posts of &amp;quot;GPI Hell&amp;quot; and &amp;quot;audio pops and clicks&amp;quot; I have solved my problem very cheaply so I thought I would share.&lt;br /&gt;
&lt;br /&gt;
I purchased a $19 usb joystick, dismantled it and retrieved the 1.5 inch by 2 inch circuit board from inside and now have 11 gpi inputs.&lt;br /&gt;
&lt;br /&gt;
Rivendell saw the interface as /dev/input/event6 on my box and all works well. Doesn&amp;#039;t do anything of course for outputs, but if all you need is inputs, what a cheap solution. Spent a couple of extra bucks on a little bud box to mount the board. :) The board contains a uart with a bcd input so if you wanted to extend the matrix you could go way beyond 11 GPIs. -- Tim Camp&lt;br /&gt;
&lt;br /&gt;
Retrieved from &amp;quot;[[Joystick_port_as_GPI|http://wiki.rivendellaudio.org/index.php?title=Joystick_port_as_GPI&amp;amp;oldid=79]]&amp;quot;&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;WaybackImport</name></author>
	</entry>
</feed>