Joystick not working under WSL Ubuntu

Hi,

I’ve installed MAVProxy both for Windows 10 and for WSL Ubuntu on Windows 10.

Everything works OK when I load module joystick in MAVProxy under Windows.

However, when I try to do the same under WSL Ubuntu, I receive an error message: MAVProxy.modules.mavproxy_joystick: Failed to find matching joystick.
Loaded module joystick

I have tried to satisfy the dependencies, including: pygame pyyaml joystick cuav pyserial

python -m MAVProxy.modules.mavproxy_joystick.findjoy does not find a joystick.

Would be grateful for any help!

Thanks,

Pogo

EDIT:

I spoke too soon. I’m also have problems getting the joystick to work in Windows 10 native:

MAVProxy.modules.mavproxy_joystick: Initializing pygame
MAVProxy.modules.mavproxy_joystick: Initializing commands
MAVProxy.modules.mavproxy_joystick: Loading joystick definitions
MAVProxy.modules.mavproxy_joystick: Looking for joystick definitions in C:\Program Files (x86)\MAVProxy\MAVProxy\modules\mavproxy_joystick\joysticks
MAVProxy.modules.mavproxy_joystick: Found joystick (FrSky Taranis Joystick)
MAVProxy.modules.mavproxy_joystick: Failed to find matching joystick.
Loaded module joystick

Does anyone know why this happens?

So it seems that you can’t use a joystick with MAVProxy in Windows period. WSL, Cygwin, MSYS2 - nothing works?

Please do say if you know different!

Pogo

Seems to be an issue on the WSL side of things. Windows side works just fine.

I had ALSA errors about sound output that I fixed by setting SDL_AUDIODRIVER to ‘dsp’ (export SDL_AUDIODRIVER='dsp'). Not sure why those came up with findjoy and not when starting up MAVProxy. Still can’t see my USB devices in WSL.