-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure on macOS, M1 #40
Comments
I dont have an arm device to test. but it seems like the hidapi works diffrent in the m1. how did you install the hidapi? |
I use the “brew install hidapi” directly
…------------------ Original ------------------
From: Flo ***@***.***>
Date: Tue,Jan 10,2023 10:55 PM
To: flok/pydualsense ***@***.***>
Cc: SuperHacker UEFI ***@***.***>, Author ***@***.***>
Subject: Re: [flok/pydualsense] Failure on macOS, M1 (Issue #40)
I dont have an arm device to test. but it seems like the hidapi works diffrent in the m1.
how did you install the hidapi?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This is weird. Could you change the source and output the states list with a print ? |
I think I set the verbose to True it will print something.
Hidapi on m1 output data less then other platform |
Hi thank you for this issue . and also thank flok's great repo. I have tried this lib on my m3 device , it does not work , i find out the hidapi wont works well on the mac device ( hidapi_usb ) . |
It's seems that the arm chips of apple are recognized in python by a different platform (which makes sense). I have not implemented this platform type yet. As i don't have a mac arm device on hand my support is limited. First approach would be to test what the sys.platform prints out on mac arm chips and then implement that platform inside the hidapi.py in here: https://github.com/flok/hidapi-cffi/blob/master/hidapi.py#L5 (maybe no c code changes are required and only another or parameter for the linux / darwin branch is needed. If someone can test this on their machine and create PR i will gladly merge it and release a new version |
thank you for your reply , you did greate work on this repo , and i will tried a minumun adjust to make it works on mac device later. When I complete the implement. i will let you know . |
Maybe we need a study about HID device interaction method on MacOS
(I hypotheses newer macOS already intergrated dualsense driver officially including both USB and Bluetooth, so you can use dualsense to control some sys UI directly. Maybe there is a more special way to interact with dualsense on macOS rather than general HID method…)
By the way, I was use ```os.uname().sysname == "Darwin"``` to recognize macOS, I didn't tested ```os.name``` on M1 macOS...
I first created this issue 2 years ago, many 3rd part lib might be changed a lot...
|
after i have tried the adjustement in the hidapi.py. which is dependency
|
i noticed that in https://github.com/flok/hidapi-cffi , there is. the adjustment for support the macos , but it did not appear in this library, i am not sure what the step i should take . |
Thanks for the info. Seems like i received a PR several years ago but didn't create a new pypi release for it. I just created it and will also update the dependency inside pydualsense. After this it should also work on apple silicon pc. |
v0.7.3 with the hidapi-cffi changed is release. could you test it please? |
Thank you. Now it works , i have tried several function in my own project include:
There is still a limitation in macos, I believe it's the system drive issue , I can not playback on the speaker of the controller. The system wont detect the speaker's channel
|
I'm trying on my M1 Mac, and got error out of index. I guess some hid data were missing
The text was updated successfully, but these errors were encountered: