beltzak

Razer Synapse macOS Big Sur Howto

Dec 3rd, 2021 (edited)
149
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Razer Synapse Nightmare in a Hackintosh Big Sur 11.3.1 and 11.6.1
  2. # Razer Keyboard, Razer Tartarus V2 and Razer Mamba devices.
  3. # Next time going to other Brand devices. Sorry Razer your NO Support in macOS is too much too handle. So greedy.
  4.  
  5. # Install Razer Razer_Synapse_Mac_Driver_v1.87.dmg
  6. # Do not reboot yet
  7. # Open Terminal
  8.  
  9. # Commands in Terminal
  10. launchctl load /Library/LaunchAgents/com.razerzone.rzdeviceengine.plist
  11. launchctl load /Library/LaunchAgents/com.razer.rzupdater.plist
  12.  
  13. # Now you see Synapse Icon in Menu bar
  14. # Open Synapse after some seconds a Exclamation Icon shall appear in the bottom right corner
  15. # Update Synapse 187 to 188.20 It will take a while.
  16. # Now reboot with the Original Synapse 1.87 Installation window. (You save a reboot with this)
  17.  
  18. # Now in order to Synapse be able to discover your devices you need to unplug and plug your devices. This sucks. Thanks Razer.
  19. # Fixes: I found several fixes but some did not worked and others did.
  20. # Sources:
  21. # https://developer.apple.com/forums/thread/649829
  22. # https://gist.github.com/fcoclavero/431123c7708e42de63eb75264a44de02
  23.  
  24. # What worked for me. Synapse in Offline mode in order to not to interfere with my BetterTouchTool and Karabiner setups.
  25.  
  26. # Below you have how to reset the Razer devices you may have in your computer.
  27.  
  28. # How to Install Xcode command line tools
  29. # Commands in Terminal
  30. sudo rm -rf /Library/Developer/CommandLineTools
  31. sudo xcode-select --install
  32.  
  33. # How to install uhubctl
  34. brew tap mvp/uhubctl https://github.com/mvp/uhubctl
  35. brew install uhubctl
  36.  
  37. # How to use uhubctl
  38. # run uhubctl command alone to list the usb devices connected to the computer.
  39. # Commands in Terminal
  40. uhubctl
  41.  
  42. # Check the Options with uhubctl --help
  43. #
  44. # --action,   -a - action to off/on/cycle/toggle (0/1/2/3) for affected ports.
  45. # --ports,    -p - ports to operate on    [all hub ports].
  46. # --location, -l - limit hub by location  [all smart hubs].
  47. # --delay,    -d - delay for cycle action [2 sec].
  48.  
  49. # Example from website https://gist.github.com/fcoclavero/431123c7708e42de63eb75264a44de02
  50. # uhubctl -l 20-6 -p 3 -a cycle -d 2
  51.  
  52. # Create a shell script named "usb_reset.sh":
  53.  
  54. # Commands in Terminal - Copy and paste in a terminal if you feel lazy
  55. echo -e "#\!/bin/bash
  56. sleep 7
  57. uhubctl -l 20-4.1.1 -p 2 -a cycle -d 2  # Razer Tartarus Example
  58. uhubctl -l 20-4 -p 2 -a cycle -d 2  # Razer Mouse Example
  59. uhubctl -l 20-4 -p 3 -a cycle -d 2  # Razer Keyboard Example
  60. killall Terminal " > usb_reset_test.sh
  61.  
  62. #### NOW LAUNCH IT EVERY TIME YOU BOOT WITH YOUR USER ####
  63.  
  64. # Copy the script usb_reset.sh to /usr/local/bin/usr_reset
  65. # Commands in Terminal
  66. cp usb_reset.sh /usr/local/bin/usr_reset
  67. chmod +x /usr/local/bin/usr_reset
  68.  
  69. # Create a com.user.programtest.plist
  70.  
  71. vi com.user.programtest.plist
  72.  
  73. <?xml version="1.0" encoding="UTF-8"?>
  74. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  75. <plist version="1.0">
  76. <dict>
  77.   <key>Label</key>
  78.   <string>com.user.programtest</string>
  79.  
  80.   <key>ProgramArguments</key>
  81.   <array>
  82.     <string>/usr/local/bin/usr_reset</string>
  83.   </array>
  84.  
  85.   <key>Nice</key>
  86.   <integer>1</integer>
  87.  
  88.   <key>StartInterval</key>
  89.   <integer>60</integer>
  90.  
  91.   <key>RunAtLoad</key>
  92.   <true/>
  93.  
  94.   <key>StandardErrorPath</key>
  95.   <string>/tmp/usb_reset1.err</string>
  96.  
  97.   <key>StandardOutPath</key>
  98.   <string>/tmp/usb_reset1.out</string>
  99. </dict>
  100. </plist>
  101.  
  102. # Commands in Terminal
  103. cp com.user.usb_reset.plist ~/Library/LaunchAgents/
  104. chmod 644 ~/Library/LaunchAgents/com.user.usb_reset.plist
  105.  
  106. # Reboot and should have worked.
  107.  
  108.  
  109. # Need To Fix Karabiner Device not taking control before Synapse
  110.  
  111. VM Ware Fusion pasing USB Keyboard and Mouse to the Guest VM
  112. https://blog.rylander.io/2020/06/26/Passthrough-USB-Keyboard-and-Mouse-to-VM-using-ESXi-V7/
  113.  
RAW Paste Data