Raspberry Pi 4 RT PREEMPT KERNEL Xbox one controller

More
23 May 2021 09:54 #209884 by rbobey1989
hello everyone here again, I'm having a problem with an Xbox one controller that I want to use to control the engines and activate subroutines in linuxcnc.

I mention I have raspbian os lite installed without kernel rt and everything works like a charm, the xpad module incorporated in the kernel is loaded correctly and with the joystick tool I can see the change of the buttons and axes in the terminal,

sudo apt-get install xpad (no need to load automatically)

sudo apt-get install joystick

jstest / dev / input / js0

Driver version is 2.1.0.
Joystick (Generic X-Box pad) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y) and
11 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: -32767 3: 0 4: 0 5: -32767 6: 0 7: 0
Buttons: 0: off 1: on 2: off 3: off 4: off 5: off 6: off 7: on 8: off 9: off 10: off

Now when I compile rt preemt kernel and install it, something happens, the led of the xbox one controller is paid it does not light up anymore;

jstest / dev / input / js0 (js1, js2, js3 .....)

jstest: No such file or directory

I have used this tutorial, to build the rt kernel;

gnipsel.com/linuxcnc/uspace/rpi4-rt.html

The truth is, no idea what can happen, any contribution will be of great help, greetings

Please Log in or Create an account to join the conversation.

More
23 May 2021 09:58 #209885 by BeagleBrainz
Did you configure the kernel to include the required modules ?

Please Log in or Create an account to join the conversation.

More
23 May 2021 10:01 #209886 by rbobey1989
I did not include any modules, I just followed the installation guide mentioned before, how do I do this?

Please Log in or Create an account to join the conversation.

More
23 May 2021 12:20 - 23 May 2021 12:26 #209897 by BeagleBrainz
You can try either
make menuconfig
Which may need Installing nurses dev files and libraries.
Or
make xconfig
Which may need installing qt dev files and libraries.

And look to see if the relevant modules have been included.

Your first job before reconfiguring your kernel would be to search for what modules are required first to suit the joystick.

I would also suggest you do a web search for more info in configuring & building a kernel. You also should info on what is needed to run the mentioned kernel config menus.
Be warned that it can be a confusing thing to do at first.
Last edit: 23 May 2021 12:26 by BeagleBrainz.

Please Log in or Create an account to join the conversation.

More
23 May 2021 12:23 - 23 May 2021 12:48 #209898 by rbobey1989
doing a search in menuconfig,
looking for XPAD I found this:

Symbol: JOYSTICK_PSXPAD_SPI [=m] │
│ Type : tristate │
│ Prompt: PlayStation 1/2 joypads via SPI interface │
│ Location: │
│ -> Device Drivers │
│ -> Input device support │
│ -> Generic input layer (needed for keyboard, mouse, ...) (INPUT [=y]) │
│ (1) -> Joysticks/Gamepads (INPUT_JOYSTICK [=y]) │
│ Defined at drivers/input/joystick/Kconfig:333 │
│ Depends on: !UML && INPUT [=y] && INPUT_JOYSTICK [=y] && SPI [=y] │
│ Selects: INPUT_POLLDEV [=m] │
│ │
│ │
│ Symbol: JOYSTICK_PSXPAD_SPI_FF [=y] │
│ Type : bool │
│ Prompt: PlayStation 1/2 joypads force feedback (rumble) support │
│ Location: │
│ -> Device Drivers │
│ -> Input device support │
│ -> Generic input layer (needed for keyboard, mouse, ...) (INPUT [=y]) │
│ -> Joysticks/Gamepads (INPUT_JOYSTICK [=y]) │
│ (2) -> PlayStation 1/2 joypads via SPI interface (JOYSTICK_PSXPAD_SPI [=m]) │
│ Defined at drivers/input/joystick/Kconfig:344 │
│ Depends on: !UML && INPUT [=y] && INPUT_JOYSTICK [=y] && JOYSTICK_PSXPAD_SPI [=m] │
│ Selects: INPUT_FF_MEMLESS [=m] │
│ │
│ │
│ Symbol: JOYSTICK_XPAD [=m] │
│ Type : tristate │
│ Prompt: X-Box gamepad support │
│ Location: │
│ -> Device Drivers │
│ -> Input device support │
│ -> Generic input layer (needed for keyboard, mouse, ...) (INPUT [=y]) │
│ (3) -> Joysticks/Gamepads (INPUT_JOYSTICK [=y]) │
│ Defined at drivers/input/joystick/Kconfig:280 │
│ Depends on: !UML && INPUT [=y] && INPUT_JOYSTICK [=y] && USB_ARCH_HAS_HCD [=y] │
│ Selects: USB [=y] |

│ Symbol: JOYSTICK_XPAD_FF [=y] │
│ Type : bool │
│ Prompt: X-Box gamepad rumble support │
│ Location: │
│ -> Device Drivers │
│ -> Input device support │
│ -> Generic input layer (needed for keyboard, mouse, ...) (INPUT [=y]) │
│ -> Joysticks/Gamepads (INPUT_JOYSTICK [=y]) │
│ (4) -> X-Box gamepad support (JOYSTICK_XPAD [=m]) │
│ Defined at drivers/input/joystick/Kconfig:295 │
│ Depends on: !UML && INPUT_JOYSTICK [=y] && JOYSTICK_XPAD [=m] && INPUT [=y] │
│ Selects: INPUT_FF_MEMLESS [=m] │
│ │
│ │
│ Symbol: JOYSTICK_XPAD_LEDS [=y] │
│ Type : bool │
│ Prompt: LED Support for Xbox360 controller 'BigX' LED │
│ Location: │
│ -> Device Drivers │
│ -> Input device support │
│ -> Generic input layer (needed for keyboard, mouse, ...) (INPUT [=y]) │
│ -> Joysticks/Gamepads (INPUT_JOYSTICK [=y]) │
│ (5) -> X-Box gamepad support (JOYSTICK_XPAD [=m]) │
│ Defined at drivers/input/joystick/Kconfig:302 │
│ Depends on: !UML && INPUT [=y] && INPUT_JOYSTICK [=y] && JOYSTICK_XPAD [=m] && (LEDS_CLASS │

also the .config file contains all the corresponding modules activated, so from my perspective I have the modules loaded in the kernel configuration, I attach the kernel construction .config for more information
Last edit: 23 May 2021 12:48 by rbobey1989.

Please Log in or Create an account to join the conversation.

More
23 May 2021 12:33 #209899 by BeagleBrainz
Ok it looks like you maybe in luck.

What I would do is unplug the device wait a little bit then plug it back in. After that I’d run sudo dmesg and look at the end for any references to USB devices being connected and anything that looks like it mentions your pad.

Please Log in or Create an account to join the conversation.

More
23 May 2021 12:56 #209901 by rbobey1989
I have a question in the dependencies
Depends on:! UML && INPUT [= y] && INPUT_JOYSTICK [= y] && USB_ARCH_HAS_HCD [= y] │
│ Selects: USB [= y]

I can't find the UML configuration parameter, all the others are configured as required.

Please Log in or Create an account to join the conversation.

More
23 May 2021 13:12 #209904 by BeagleBrainz
UML is User Mode Linux , as far as I can tell, and may not be an option for a real time kernel.

Have you any results with dmesg ?

Please Log in or Create an account to join the conversation.

More
23 May 2021 13:44 #209906 by rbobey1989
building kernel right now, hopefully good results

Please Log in or Create an account to join the conversation.

More
23 May 2021 16:59 #209922 by rbobey1989
No luck in this procedure, sudo dmesg does not show anything like XPAD XBOX, also less / proc / bus / input / devices does not give any output for any device all blank, I feel frustrated today :( :( :( :(

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum