xbox360controller icon indicating copy to clipboard operation
xbox360controller copied to clipboard

Rumble not working on aarch64

Open draftpunk opened this issue 3 years ago • 4 comments

Using an Xbox 360 controller, this library rumbles the controller without issue from my desktop Ubuntu 20.04 x86_64 system. But on another platform, Ubuntu 16.04 aarch64, the library claims the controller isn't supported.

File \"/usr/local/lib/python3.6/dist-packages/xbox360controller/controller.py\", line 406, in set_rumble\n raise RuntimeError('this device doesn\\'t support rumbling')\nRuntimeError: this device doesn't support rumbling\n

draftpunk avatar Aug 19 '20 21:08 draftpunk

That's simply what the driver tells us. What's the output of info() on both machines?

linusg avatar Aug 20 '20 05:08 linusg

They look the same aside from the rumble parameter.

x86_64 info():

Xbox 360 Wireless Receiver at index 0
Axes: 5
	axis_l
	axis_r
	hat
	trigger_l
	trigger_r
Buttons: 11
	button_a
	button_b
	button_x
	button_y
	button_trigger_l
	button_trigger_r
	button_select
	button_start
	button_mode
	button_thumb_l
	button_thumb_r
Rumble: yes
Driver version: 2.1.0 1.0.1

aarch64 info():

Xbox 360 Wireless Receiver at index 0
Axes: 5
	axis_l
	axis_r
	hat
	trigger_l
	trigger_r
Buttons: 11
	button_a
	button_b
	button_x
	button_y
	button_trigger_l
	button_trigger_r
	button_select
	button_start
	button_mode
	button_thumb_l
	button_thumb_r
Rumble: no
Driver version: 2.1.0 1.0.1

draftpunk avatar Aug 20 '20 16:08 draftpunk

Weird. Not really sure what's going on, gonna mark this as a bug for now. It'll be a while until I can try to reproduce (Raspberry Pi with 64bit OS is probably the closest I have), if you find any workaround please let me know.

linusg avatar Aug 20 '20 17:08 linusg

Hi, if it can help, I have the same issue on a Raspberry pi, the info are the followings:

  • OS: Raspbian GNU/Linux 10 (buster) armv7l
  • Host: Raspberry Pi 3 Model B Rev 1.2
  • Kernel: 5.4.79-v7+
  • I added th following udev rule to be able to use it : SUBSYSTEM=="leds", RUN+="/bin/chmod 666 /sys/class/leds/%k/brightness"
  • the version of the package is 1.1.2
  • ant he info() command spits out :
Microsoft X-Box 360 pad����������������������������������������� at index 0
Axes: 5
	axis_l
	axis_r
	hat
	trigger_l
	trigger_r
Buttons: 11
	button_a
	button_b
	button_x
	button_y
	button_trigger_l
	button_trigger_r
	button_select
	button_start
	button_mode
	button_thumb_l
	button_thumb_r
Rumble: no
Driver version: 2.1.0 1.0.1

AdrienGuimbal avatar Jan 07 '21 13:01 AdrienGuimbal