* Georg Vollnhals -- Saturday 27 October 2007:
> 1. I made two rules-files

I wouldn't do that. Better have one single file with all local
modifications to the udev rules. (I have other rules in that file,
too). That's far handier to backup and maintain, though it's
certainly not the reason why it doesn't work for you.



> 2. I renamed js* to js0 and js1

That's ok.



> 3. I called the (already there and working) scripts in /etc/... and not
> in /usr/local/sbin/

dito


 
> Anything I did wrong with my modifications? Or are the new udev/rules
> settings overwritten later by another process?

Shouldn't be. That's why I chose number 91.



> there are already files in the udev folder related to joystick
> 
> 50-udev-default.rules:
> ...
> KERNEL=="js*",            NAME="input/%k", MODE="0644"

Yes, that adds the device nodes, and we only add to that (RUN+=).



> 60-persistent-input.rules:
> ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick"

No idea about that, but I have it, too, and it doesn't get in the
way. 91 comes after 60.  :-)

I'd put a debug message into the /etc/js[01] files, so that you
can see if and when they were run:

  echo woohoo > /dev/tty10    # written to the F10 console

and let udev read the new rules before you plug the js:

  # udevcontrol reload_rules

You can see in "dmesg" output and on the F10 console (Ctrl-Alt-F10)
if everything went well. I got an error when my script didn't have
a #!/bin/sh line on top.

It's not important to have the calibration script run by udev,
I just found the idea nice. Occasionally my js isn't recognized
at boot time, and I have to plug it in/out again. And so I don't
have to worry about calibration.

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to