You are not logged in.

#1 2022-11-19 02:02:12

headkase
Member
Registered: 2011-12-06
Posts: 1,898

Gamepad kernel module is loaded but it doesn't work unless replugged

$ lsusb
...
Bus 003 Device 008: ID 0e6f:02d8 Logic3 PDP Wired Controller for Xbox Series X - Blue Camo
...
$ lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ ...
    |__ Port 4: Dev 8, If 0, Class=Vendor Specific Class, Driver=xpad, 12M
    |__ ...
$ cat /etc/modules-load.d/gamepad.conf 
xpad

I have an Xbox Series X wired gamepad.  It uses the xpad kernel module.  The module loads on boot, but the ready light on the gamepad doesn't come on unless you unplug and replug it.  And the gamepad doesn't work until that light is on.

I've tried to load the modules during boot, and the module does get loaded but the device just doesn't get initialized properly.

Any suggestions would be appreciated.

Offline

#2 2022-11-20 16:08:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,895

Re: Gamepad kernel module is loaded but it doesn't work unless replugged

Moved, by request


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2022-11-20 16:10:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,895

Re: Gamepad kernel module is loaded but it doesn't work unless replugged

Anything interesting in the journal regarding this?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2022-11-20 16:19:31

headkase
Member
Registered: 2011-12-06
Posts: 1,898

Re: Gamepad kernel module is loaded but it doesn't work unless replugged

Output of : journalctl -b 1:

https://gist.github.com/headkase/5bc969 … 14d3d04e63

Honestly though I don't know what I'm looking for in there ewaller.

Offline

#5 2022-11-20 16:23:20

headkase
Member
Registered: 2011-12-06
Posts: 1,898

Re: Gamepad kernel module is loaded but it doesn't work unless replugged

https://gist.github.com/headkase/ef8e10 … 86c2cc8f7a

And the above gist is with xpad in modules-load, I removed that and forgot I did for the previous gist.  If it doesn't work you always undo it right, forgot I did that so I redid the module load of xpad for this journal listing. wink

Last edited by headkase (2022-11-20 16:26:50)

Offline

#6 2022-11-20 16:47:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,895

Re: Gamepad kernel module is loaded but it doesn't work unless replugged

I was looking for stuff a little earlier in the log -- like when the system attempts to initially enumerate the USB bus devices.  Your log has (at least) a 20 minute gap at the beginning.
Can you please power down, ensure the controller is attached, powerup, login, and post a link to the output of journalctl -b


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2022-11-20 17:32:04

headkase
Member
Registered: 2011-12-06
Posts: 1,898

Re: Gamepad kernel module is loaded but it doesn't work unless replugged

Here is journalctl -b as non-root:

https://gist.github.com/headkase/884eae … 56e2818948

And here is sudo journalctl -b:

https://gist.github.com/headkase/9bb917 … b17c9cf2c2

in /etc/modules-load.d, the config file with "xpad" is there for the boot.

Offline

#8 2022-11-24 22:12:29

headkase
Member
Registered: 2011-12-06
Posts: 1,898

Re: Gamepad kernel module is loaded but it doesn't work unless replugged

There is some new information.

On some boots the ready light appears on the gamepad.  Not all boots just some boots which makes me think there is some kind of race-condition where the correct order sometimes happens.  If I can figure out all the modules needed I'll put them all in /etc/modules-load.d/ and if that works call it a day.  I'm not sure how to find out the module chain, I'd appreciate pointers.

Offline

Board footer

Powered by FluxBB