On Sat, 2012-02-04 at 20:10 +1100, Gary Hodder wrote:
> On Fri, 2012-02-03 at 23:24 -0500, Alan Peterson wrote:
> > Hello all. I'm repeating something I saw Tim Camp do on the Wiki, using a 
> > USB gaming joystick as a Rivendell remote controller (Tim, chime in if you 
> > can help).
> > 
> > My CentOS box sees the joystick as /dev/js0. Under KDE's Control 
> > Center>Joystick, it reads all the buttons very clearly when actuated. I 
> > went in and created a new Rivendell Switcher entry MATRIX1 - USB JOYSTICK - 
> > LOCAL GPIO, wrote and assigned a couple of Macro carts to perform what I 
> > want (and confirmed they work using RUN CART), restarted the computer and 
> > the daemons, then gave it a go.
> > 
> > Nothing. No execution of events. RDGPIMON shows no activity when the 
> > joystick buttons are worked.
> > 
> > As in my past workings, I'm probably leaving out one important command or 
> > some key step to complete the process. CentOS sees the joystick, RD does 
> > not. What did I leave out?
> > 
> > Thx ahead of time.
> > 
> > -AP
> 
> 
> Hi Alan,
> 
> I'm not near a machine so going by memory and it needs someone to clean
> it up so you can better understand it.
> 
> The buttons on the joystick are the parts you are using and the device
> is /dev/input/event?. Can be event2 event3 event4 etc.
> Unplug joystick and look in /dev/input and see what events are there
> Plug joystick back in and see what event has been created
> Add this event? to gpio with full path restart rivendell daemons and it
> should work until you reboot.
> A reboot or the usb joystick being unplugged replugged will cause the
> event number to change.
> 
> Below is a catch all for event matching your joystick buttons and
> creates a device /dev/rivbutton1 that can be added to the gpio device.
> 
> Copy below to a file and call it 49-local.rules
> BUS=="usb", SYSFS{product}=="Generic   USB  Joystick  ",
> KERNEL=="event**", NAME="rivbutton1"
> 
> Sorry I forgotten where this file goes if Fred could please chime in
> here.
> 
Just remembered
/etc/udev/rules.d

> List your usb devices and copy your usb joystick device and replace my
> "Generic    USB  Joystick  " with yours and I think the spaces maybe
> important.
> 
> Another thing I noted was cheap joysticks are not shielded. The usb hub
> would occasionally disconnect then reconnect. I think this maybe the hub
> trying to protect itself from electrical interference.
> So build the button board into a good shielded box with good quality
> shielded cables including the usb cable.
> 
> Gary.
> 
> 
> 
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to