Melchior FRANZ schrieb: > * Georg Vollnhals -- Friday 26 October 2007: > >> Melchior Franz helped me out with a trick to set the saved calibration >> via a script on booting, [...] >> > > Nowadays I recommend to let udev do that: > > # echo 'KERNEL=="js*" RUN+="/usr/local/sbin/jscal.sh"' >> \ > /etc/udev/rules.d/91-local.rules > > ... whereby my /usr/local/sbin/jscal.sh sets the calibration > values from "jscal -p". This way it calibrates the js whenever > Linux recognizes the js, that's at startup and whenever the js > is plugged in. > > m. > > Hi Melchior,
I thought a little about your suggestion and after I understood what you are doing I tried it out with some little changes due to my local requierements but it did/does not work. Did I do anything right? As I have two joysticks (stick, pedals) and already two working scripts (made after your first help) I modified your last method a little and created two files in /etc/udev/rules.d: 91-local.rules: KERNEL=="js0" RUN+="/etc/jscal0.sh" 92-local.rules: KERNEL=="js1" RUN+="/etc/jscal1.sh" There are 3 changes against your suggestion: 1. I made two rules-files 2. I renamed js* to js0 and js1 3. I called the (already there and working) scripts in /etc/... and not in /usr/local/sbin/ This does not work. If I call the scripts after booting from a KDE link (/etc/jscal1.sh; /etc/jscal0.sh) all works fine. Anything I did wrong with my modifications? Or are the new udev/rules settings overwritten later by another process? Regards Georg BTW: there are already files in the udev folder related to joystick 50-udev-default.rules: ... KERNEL=="js*", NAME="input/%k", MODE="0644" ... 60-persistent-input.rules: ... # other devices ... ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick" ------------------------------------------------------------------------- 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