public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] udev rule for periodic polling of USB gamepad?
@ 2024-01-03 17:33 Nikos Chantziaras
  2024-01-03 17:53 ` Michael Cook
  0 siblings, 1 reply; 3+ messages in thread
From: Nikos Chantziaras @ 2024-01-03 17:33 UTC (permalink / raw
  To: gentoo-user

Is it possible to have a USB controller (8BitDo Pro 2) polled every 
second or so with a udev rule? Or through some other mechanism?

This controller has a quirk where it disconnects every 4 seconds or so 
and rubmbles when it does so. It also changes device number when this 
happens. It does this because it tries to auto-detects the kind of 
system it has been plugged into (like an XBox, Android, a Nintendo 
Switch, whatever.)

Support for this controller was added in kernel 6.3 or so, but the 
support is extremely half-assed because it doesn't deal with this 
specific quirk. Currently on 6.6.9 here but this was never fixed.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] udev rule for periodic polling of USB gamepad?
  2024-01-03 17:33 [gentoo-user] udev rule for periodic polling of USB gamepad? Nikos Chantziaras
@ 2024-01-03 17:53 ` Michael Cook
  2024-01-03 18:15   ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Cook @ 2024-01-03 17:53 UTC (permalink / raw
  To: gentoo-user

On 1/3/24 12:33, Nikos Chantziaras wrote:
> Is it possible to have a USB controller (8BitDo Pro 2) polled every 
> second or so with a udev rule? Or through some other mechanism?
>
> This controller has a quirk where it disconnects every 4 seconds or so 
> and rubmbles when it does so. It also changes device number when this 
> happens. It does this because it tries to auto-detects the kind of 
> system it has been plugged into (like an XBox, Android, a Nintendo 
> Switch, whatever.)
>
> Support for this controller was added in kernel 6.3 or so, but the 
> support is extremely half-assed because it doesn't deal with this 
> specific quirk. Currently on 6.6.9 here but this was never fixed.
>
>
I do not have this issue. I have the switch on the back of the 
controller set to the X position and just connect over bluethooth 
without any issues.


https://codeberg.org/fabiscafe/game-devices-udev I do have these udev 
rules installed, unsure if they fix the issue you're talking about.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-user] Re: udev rule for periodic polling of USB gamepad?
  2024-01-03 17:53 ` Michael Cook
@ 2024-01-03 18:15   ` Nikos Chantziaras
  0 siblings, 0 replies; 3+ messages in thread
From: Nikos Chantziaras @ 2024-01-03 18:15 UTC (permalink / raw
  To: gentoo-user

On 03/01/2024 19:53, Michael Cook wrote:
> On 1/3/24 12:33, Nikos Chantziaras wrote:
>> Is it possible to have a USB controller (8BitDo Pro 2) polled every 
>> second or so with a udev rule? Or through some other mechanism?
>>
>> This controller has a quirk where it disconnects every 4 seconds or so 
>> and rubmbles when it does so. [...]
>>
> I do not have this issue. I have the switch on the back of the 
> controller set to the X position and just connect over bluethooth 
> without any issues.

Mine does not have bluetooth. It's the "wired" version. It also doesn't 
have switch. Switching modes works by simply holding down one of the 
buttons when connecting. It auto detects X-Input when connecting it to a 
PC. Holding down the X button will unfortunately not prevent it from 
still doing auto-detection stuff when it doesn't get polled for several 
seconds.


> https://codeberg.org/fabiscafe/game-devices-udev I do have these udev 
> rules installed, unsure if they fix the issue you're talking about.

I have those too.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-03 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 17:33 [gentoo-user] udev rule for periodic polling of USB gamepad? Nikos Chantziaras
2024-01-03 17:53 ` Michael Cook
2024-01-03 18:15   ` [gentoo-user] " Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox