Mac M1 with CfClient 2021.6.1 non-working XB1 controller

Post here to get support
Post Reply
elSkov
Beginner
Posts: 6
Joined: Thu Nov 26, 2020 11:33 am

Mac M1 with CfClient 2021.6.1 non-working XB1 controller

Post by elSkov »

Hi
I have just received a MBP M1 (MacOS Monterey) and followed the instructions to install cfclient using PyPi.
It all works well and I can connect to my CF and do self tests and so on.
But, I cannot get my Xbox One controller to work. My OS discovers the controller and when I start cfclient it also discovers my controller:
INFO:cfclient.utils.input:Selected MUX: Normal
INFO:cfclient.ui.main:Role of Xbox One Series X Controller is Device
INFO:cfclient.utils.input.mux:Adding device Xbox One Series X Controller to MUX Normal

But when I try to configure/calibrate the controller nothing happens.

Does anyone have an idea of what to do?
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Mac M1 with CfClient 2021.6.1 non-working XB1 controller

Post by kimberly »

Hi!

I'm not able to help you with this myself as I don't have a M1 available, but @arnaud has seen this before on our test m1 macbook: https://github.com/bitcraze/crazyflie-c ... issues/546

No real solution yet.. but just letting you know that there are some indeed some known USB trouble with the M1.

Arnaud will be back from holiday next week so I'll keep this forum post as unread for him.
elSkov
Beginner
Posts: 6
Joined: Thu Nov 26, 2020 11:33 am

Re: Mac M1 with CfClient 2021.6.1 non-working XB1 controller

Post by elSkov »

Hi
That's interesting.

I don't see any problems with the Radio dongle, but yes, it could be related.
I'm kinda hung up with work for a while, but if/when I find the time, I can try and dig down into the input code and try and see if I can get a closer look at the problem
elSkov
Beginner
Posts: 6
Joined: Thu Nov 26, 2020 11:33 am

Re: Mac M1 with CfClient 2021.6.1 non-working XB1 controller

Post by elSkov »

Hi Kimberley
Ok, so I got a bit annoyed by it and played around.
Basically, I found that if you change line 76 in setup.py to:
platform_requires.extend(['pysdl2~=0.9.6', 'pysdl2-dll==2.0.16'])
(Bumping the pysdl2-dll requirement to the latest version)
it now works (running under Rosetta 2)
I can fly my CF and after a quick check, all readings looks good. I haven't tested it against other areas of the code, but I guess it's a start.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Mac M1 with CfClient 2021.6.1 non-working XB1 controller

Post by arnaud »

Hi,

Thanks for checking further and finding the solution! I will double check the problem and the fix later when I have access to the Mac and push the fix.
Post Reply