Hi Melchior,
first thank you for this big help, your hint is a big step forward
although not all is working here as it might:
..
> Same here with another USB joystick. I've solved that like this:
> jscal generated calibration script saved to /etc/jscal.sh:
>
>   # jscal -p /dev/input/js0 >/etc/jscal.sh && chmod 700 /etc/jscal.sh
>
>   
This was the first to solve. If I use the above command line (after
first calibrating the joystick with # jscal -c /dev/input/js0) only an
empty (0 bytes) jscal.sh was written to the right place.
When I splitted the command line into
# jscal -p /dev/input/js0 >/etc/jscal.sh
# chmod 700 /etc/jscal.sh
all the information was written (136 byte).
I compared the console-output of # jscal -p /dev/input/js0 and it is the
same dataset.  
> Advised udevd to run the calibration script whenever the js is detected,
> by changing this line in /etc/udev/rules.d/50-udev-default.rules:
>
>   -KERNEL=="js*", NAME="input/%k", MODE="0644"
>   +KERNEL=="js*", NAME="input/%k", MODE="0644", RUN+="/etc/jscal.sh"
>   
These are the changed lines of 50-udev-default.rules (only to show, I
got it right):
# KERNEL=="js*",        NAME="input/%k", MODE="0644"
KERNEL=="js*",             NAME="input/%k", MODE="0644",
RUN+="/etc/jscal.sh"

*but* this does not do anything! After reboot the joystick is not
calibrated, also if I un/plug it.

>>> What works is running ./jscal.sh manually.  :-)
My plan is to give jscal.sh user-right and put a link on my Desktop.
Then it is only one mouseclick and spares a lot of time.
Did not test it but this should work.

I don't know why these two things (writing jscal.sh with "&&" in the
command-line and starting jscal.sh from 50-udev-default.rules) do not work.
Anyhow, thank you once again, also with a only a part of your solution I
get it really more comfortable from now!

Regards
Georg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to