-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Razer support broken on Sonoma - hidutil now requires sudo #3337
Comments
There is a way to grant password-less sudo access to
This is helpful for navigating VIM: https://phoenixnap.com/kb/how-to-vim-save-quit-exit For example, it looks like this on my machine: You will also need to modify the Lua file inside CommandPost to add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported by Ross Batten via phone call.
Currently CommandPost uses
hidutil
to disable the default keyboard layout for Razer devices.Essentially we remap the Razer device so that all the built-in buttons don't actually "type" anything. Then in our Objective-C Extension (
hs.razer
) we detect the button presses there.This has always worked fine in the past, but interestingly Ross is having issues on his machine.
He has a Mac Studio running Ventura - and it's all working fine there. However, he cloned his operating system to an external SSD, and when booting from the external SSD, things no longer work. Given that it's exactly the same hardware, same operating system, and same configuration, makes me think it's some kind of security issue. However, I tried disabling and re-enabling all the various permissions CommandPost needs and it didn't seem to make a difference.
Interestingly however, when looking into this, it seems that
hidutil
stopped working on macOS Sonoma 14.2, which was fixed in macOS Sonoma 14.3 - but now requiressudo
(see here).I'm currently running macOS 14.3, and it looks like it's broken on my machine.
For a Razer Orbweaver Chroma for example, we use the following Terminal command:
If I try this on macOS 14.3 I get the error:
Run as root to remap alphanumerics / special characters with UserKeyMapping
If I run with
sudo
, it works.However, Ross is currently running macOS Ventura - so I think this might not be his specific issue.
I'm not really sure what the solution is here, as we don't really want CommandPost to have root access.
For reference, here's the Lua code that triggers
hidutil
:The text was updated successfully, but these errors were encountered: