Skip to content
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

macOS/OSX Port #97

Open
ed1d1a8d opened this issue Feb 2, 2017 · 4 comments
Open

macOS/OSX Port #97

ed1d1a8d opened this issue Feb 2, 2017 · 4 comments

Comments

@ed1d1a8d
Copy link

ed1d1a8d commented Feb 2, 2017

I'm looking to port some of the drivers (specifically ones neeeded for deathadd2013) onto macOS Sierra. I built and installed using the linux instructions. But when running the daemon, I got the error:

Unable to claim USB interface (Permission denied)

From what Googling I could do, this seems to be an issue with system kexts recognizing the device and taking control away from razerd. I was wondering what the best solution to this would be -- somehow get ourselves an unsigned kext or disable system kexts (this might break other things)?

One idea I had was to perhaps write a version of razerd using HIDAPI as the backend instead of libusb. Quoting the libusb wiki:

While it is possible to use libusb with HID class devices it requires the original HID class driver to be replaced by a driver which supports libusb, and this leads to a quite poor user experience on any platform other than Linux. It is recommended to use ​HIDAPI instead. HIDAPI provides convenient cross-platform access to HID class devices and can do so without any kernel driver concerns across all supported platforms.

How feasible would this be? I am willing to do this myself, but would need some guidance on what exactly libusb is doing right now and where it is used.

@z3ntu
Copy link
Contributor

z3ntu commented Feb 2, 2017

Doesn't macOS have the official Razer Synapse?

@ed1d1a8d
Copy link
Author

ed1d1a8d commented Feb 2, 2017

Yes, but I was hoping to just use a driver without the whole cloud connection thing.

@mbuesch
Copy link
Owner

mbuesch commented Feb 2, 2017

But when running the daemon, I got the error:
Unable to claim USB interface (Permission denied)

Are you trying to run the razerd as root?

@ed1d1a8d
Copy link
Author

ed1d1a8d commented Feb 2, 2017

Yes I ran sudo razerd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants