Sid Boyce wrote:
> Craig Benbow wrote:
>> I don't know what it is with this really but I was looking around for a
>> solution and it seems the problem may be cured with modprobe, this is
>> what I was doing when I stumbled on this:
>>
>> CraigsSuse:/usr/local/FlightGear/bin # fgjs
>> Found 0 joystick(s)
>> Can't find any joysticks ...
>> CraigsSuse:/usr/local/FlightGear/bin # modprobe joydev
>> CraigsSuse:/usr/local/FlightGear/bin # fgjs
>> Found 1 joystick(s)
>> Joystick #0 "CH PRODUCTS CH FLIGHT SIM YOKE USB " has 7 axes
>>
>> So I assume from this the joydev module never loads properly.  How do we
>> fix this?
>>
>> Craig
>>  
>>
> 
> In my kernels I have CONFIG_INPUT_JOYDEV=y, I shall try it as a module 
> on the next kernel I build. Having the module loaded, do the axes and 
> buttons work?
> Regards
> Sid.

There should be "/etc/init.d/joystick" which loads the joydev module in 
  the section shown here:-
  # load joystick drivers
function start () {
     # first load joydev module
     if [ -z 
"${JOYSTICK_MODULE_0}${JOYSTICK_MODULE_1}${JOYSTICK_MODULE_2}${JOYSTICK_MODULE_3}"
 
]; then
         rc_failed 5
         return
     fi

     /sbin/modprobe joydev
     for js in 0 1 2 3; do
         # configure joystick port (if necessary)
         eval jsport=\$JOYSTICK_CONTROL_PORT_$js
         if [ -n "$jsport" ]; then
             $alsactl set $js card:"Joystick Address" "port $jsport"
         fi
         # activate joystick (if necessary)
         eval jsctrl=\$JOYSTICK_CONTROL_$js
         if [ -n "$jsctrl" -a "$jsctrl" != no ]; then
             if [ "$jsctrl" = yes ]; then
                 jsctrl="Joystick"
             fi
             $alsactl set $js card:"$jsctrl" true
         fi
==========================================================
I have this file on 10.1 and 10.2Alpha4.
# chkconfig joystick
joystick  off

  then it can be set to  run at boot time by "chkconfig joystick on".
Regards
Sid.
-- 
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support 
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks


-------------------------------------------------------------------------
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