Tag Archives: mavericks

Connect a Dualshock 4 to Mac and play some games via Bluetooth

I struggled a bit today to get this combination working so I wanted to share my findings here. As you probably already know, it’s very easy to connect the PS4’s Dualshock controller to your Mac. All you have to do is:

  • Turn on Bluetooth on your Mac and go to Bluetooth preferences
  • If you have connected the Dualshock before, remove the Wireless Controller entry
  • Set the Dualshock to pairing mode by pressing the SHARE and PS-Button until the lightbar flashes white very fast
  • Click ‘Pair’ at the new Wireless Controller entry in the Bluetooth (the lightbar should change to a constant white light) – if you’re using an OSX version older than Mavericks, you might have to add the device manually

Unfortunately the controller mapping isn’t as easy at the moment; it doesn’t really work right out of the box. Apparently there are some plist files out there that make some games compatible but I didn’t have any of them to test it.

So to configure a custom mapping I used the really awesome app ControllerMate, where you can add keyboard mappings to the controller inputs. After you get used to some of the most important components it’s very straight forward to use und has a nice, clean interface.

To map the Dualshock 4, it’s very helpful to rename the default names of the buttons under ‘Controller Information’ -> ‘Wireless Controller (Game Pad)’ to a more fitting description in the ‘Custom Name’ column as you can see below. Here you can download my config file (not sure if it will work for you, would be very happy about some comments on this, ty!) Dualshock 4 ControllerMate config

Now switching back to ‘Programming Items’ takes you to the interface where you map the different elements of the controller to buttons on the keyboard. You might want to create a new Programming Page to save your mapping afterwards. Some of the most important components / Building Blocks (BB) I used yesterday for my Super Meat Boy setup were:

  • Button BB – Simple button press on the controller – used by dragging it from the palette window to the programming page – can be found quicker by just pressing the button on controller/keyboard
  • Hatswitch / Axis BB – D-Pad and vertical/horizontal stick events – output different values depending on direction of action – d-pad from 0-8 including all direction + diagonal and no press ‘8’ – sticks values from 0-255 (left/right or up/down)
  • Single Key BB – map action to a single key press (on the keyboard) – created in the context menu -> Create BB > Output > Single Key – to map a Button BB to this component just drag the bottom off/on switch to the top of the Single Key BB – when mapping Hatswitch or Axis we need another component between them and this one, because of the multiple values
  • Value Selector BB – select some values via checkboxes that activate the following mapping – created in the context menu -> Create BB > Calculations > Value Selector – used e.g. when mapping the D-Pad to connect all 3 actions of one direction to one of the arrow keys
  • Range BB – select a interval of values that activate the following mapping – created in the context menu -> Create BB > Calculations > Range – used e.g. when mapping the many values of a stick to one of the arrow keys – also very helpful to specify dead zones of the sticks where the mapped key shouldn’t be pressed (in my example dead zones of 115-145 worked pretty good)

My current setup for Super Meat Boy looks like this and can be downloaded here (again happy for feedback if sharing programming pages works proper):

Super Meat Boy Programming Page

To edit the configuration of the single BB, use the Properties Inspector Window (Window > Inspector Window > Properties / CMD + 1). For testing the current configuration you can just press the buttons of the controller and look for glowing ON switches to see if everything is working correctly.

The trial version of ControllerMate is limited to map 10 Single Key BB as far as I have seen, when adding another block, it looks like this.

ControllerMate Unregistered Warning

This is a very nice trial model imo as you can really test the functionality before buying it. It should also work for a good amount of games, where you don’t need more than 10 actions – remove the “duplicate” mapping of D-Pad AND sticks if you need more action button! If you want to map really complex controls or the whole controller you’ll have to register for the full version.

You can also save configurations of different games by exporting them (File -> Export Selection…) and delete the Programming Page in the App to get rid of the unregistered warning of other pages. This way you can store an infinite amount of configurations, even in the trial version.

For now only the touchpad click is supported in ControllerMate so you can’t really use it for navigation or anything, but maybe that will change in the future. Also I really hope Sony or someone else is coming up with an official driver or other piece of software, that makes this manual mapping obsolete. In the meantime I think this is a really nice way to enjoy some games with the Dualshock 4 on the Mac. Thanks for reading and as always, I’d be happy about any kind of feedback (especially on the config files ;))

[FIXED] OSX Mavericks doesn’t recognise Intel SSD – after update from Lion

Update: Summary added so you don’t have to read my extensive rambling about the problem 😉 For more details read here.

  • After working fine in OSX Lion, the Mavericks update & boot-stick menu didn’t see my Intel SSD (Model: SSDA2M080G2GC – Series: 310) while inside the main bay
  • Booting old Lion install in safe mode + installing 10.9 while SSD in usb hard drive case, worked fine

(My) solution

  • Installing the newest Intel firmware (2CV102HD -> 2CV102M3) from usb-stick to the SSD, while inside the SATA bay of a windows laptop -> SSD works fine again inside the Macbook

Complete original story:
Last week I tried to update my early 2011 Macbook Pro running OSX Lion (10.7) to Mavericks (10.9), the newest (free) update of Apple’s “desktop” OS. The main hard drive was exchanged 2 years ago for an Intel 80GB SSD – Model: SSDA2M080G2GC – Series: 310. As it took me over a week and 10+ hours of wondering to finally finish the whole process, I decided to write about it, in case anybody else out there has the same problem!

After trying to install the update over my current OSX version (by downloading the installer file via Appstore and executing it), my Macbook just kept hanging at the loading screen and didn’t do anything. After finding some info about the launch options on a mac I tried some of them. In verbose mode [Command+V] I could at least get a first hint of the problem, as it showed “Still waiting for root device” every few seconds in an infinite loop. This error was again present, when I inserted my prior with Diskmaker X prepared USB-stick and booted from it. In this boot menu you have some options like installing a clean version of Mavericks, accessing a terminal command line and even the well-known Disk Utility can be started. Unfortunately in neither of these options my SSD was found!

The very odd thing at that time was, that I could still boot to my old Lion install in safe mode [Shift] and everything was running just fine. Knowing that, I could at least eliminate the possibility of a hardware damage (after reading some posts about dead hard drive cables in Macbooks). After formatting the hard drive in 3 different ways using a windows laptop and my usb hard drive case, the hard drive still didn’t show up. I only found the next oddity, namely the SSD was detected on my mac perfectly fine while inside the hard drive case. This way at least I could install a fresh version of Mavericks and run it (whilst loosing much of the performance boost).

I’ve used this workaround for almost a week know, until yesterday when I found this post pushing me in the right direction! I found the most recent firmware update for Intel SSDs but I couldn’t get a bootable stick running with my mac (don’t ask me how the guy from Diskmaker X is doing it :). According to the discussion in this guide‘s comment section, it’s got something to do with the Intel Hardware and the Efi-Bios – I couldn’t figure out how to do it. What I could do, following that guide, was preparing my USB-stick (partition as MBR and Free Space) for the before mentioned windows laptop. Here I could launch the intel update tool just fine and tried to update the SSD in my usb case – no luck, it couldn’t find the hard drive. I’ve read before somewhere that a firmware upgrade requires the hard drive to be connected by a proper SATA connector, so I tried putting the SSD inside the windows laptop and that FINALLY did do the trick! I could update my firmware from version 2CV102HD to 2CV102M3.

After applying that upgrade, thankfully the SSD was found again when inside the main bay of the Macbook and I could use it the way it’s supposed to be again. Enjoying a clean Mavericks install and all it’s improvements right now! Don’t forget to enable trim (if your drive needs it), when upgrading your hard drive to an SSD of your choice – Trim Enabler is probably the easiest way to do that.

As always thanks for reading and any kind of feedback is appreciated! Especially if you know a way to keep the windows laptop out of this! 😉