DEV Community

Cover image for Disable PS5 Controller button on MacOS
Marc Qualie
Marc Qualie

Posted on • Originally published at marcqualie.com

Disable PS5 Controller button on MacOS

I often use my PS5 controller on my Mac Studio with PS Remote Play to quickly login and check something or pick up a time-bound item without having to leave my work desk. This is great until you press the PS button and it opens the app switch menu, losing focus on the PS remote play window. To disable the PlayStation controller button default behaviour on MacOS, run the following command in the terminal:

defaults write com.apple.GameController bluetoothPrefsMenuLongPressAction -integer 0
Enter fullscreen mode Exit fullscreen mode

If you want to revert this for some reason, you can set the value to 1 instead.

defaults write com.apple.GameController bluetoothPrefsMenuLongPressAction -integer 1
Enter fullscreen mode Exit fullscreen mode

Based on the name I'm assuming this works with (and is designed for) to Xbox controller since you usually long press that button to trigger menus.

From my searching, this used ot be available in the System Preferences, but it seems to have been removed in recent versions of macOS. The above was last verified to work for me on MacOS Sonoma 14.3.

I hope this saves someone some pain.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay