Bluetooth joystick not working

I am trying to get a ps3 bluetooth joystick to work using https://github.com/falkTX/qtsixa.git I have tested in the docker container image and could get it to work within this container on my PC. However once I deploy the container to an up board (using balena push ) I cannot get it to work.

Bluetooth seems to be working as I can run hciconfig and a device will show up. However when I run sixad -s to connect with the joystick it does not work and I obtain the following error:
modprobe: FATAL: Module uinput not found in directory /lib/modules/4.14.76-yocto-standard I can reproduce this error by running modprobe uinput. The /lib/modules/4.14.76-yocto-standard directory exists and contains files and folders though.

Is there a way to fix this?

Hi,

It seems like you are missing a kernel module uinput, we have this generic project (https://github.com/balenalabs/kernel-module-build) that will allow you to build kernel modules out of tree that you need.

Hope this helps.

Best regards,

I found this project, but I wasn’t sure if it was the solution I was looking for. So to get it straight I need to:

  • Include the files from this folder in my project (excluding the example_module folder and
    Dockerfile.template)
  • Update my dockerfile to run the commands in template.
    • Make sure to base on my own image
    • What do these lines do? Shoul I keep them?
      COPY . /usr/src/app
      WORKDIR /usr/src/app
      ENV VERSION '2.29.0+rev1.prod'
      
  • Exchange the example_module with the source code for uintput. (this: https://gitlab.freedesktop.org/libevdev/libevdev ?)

Correct?

Hi, I asked our devices team whether this needs to be enabled with a kernel config instead and the module become available in a next OS release. That will save you the time to configure that to be build out of tree. We will get back to you on this.
Thanks,
Zahari

Hi. We have instead enabled the uinput module from meta-balena: https://github.com/balena-os/meta-balena/pull/1802
So this will be available in a next release based on 2.46.2 or newer

1 Like