To connect the DualShock 3 controller (PS3) to an openSUSE machine, simply plug the USB cable in to a USB port with the controller connect to it then press the PS button.Once the controller starts flashing, you can immediately start using it.
Connecting a DualShock 3 controller to openSUSE via bluetooth is trickier than connecting it via a USB. Here are the necessary steps to connect DualShock 3 to openSUSE wireless:
- Install Sixpair from OBS
- Connect the DualShock 3 controller to your openSUSE box via a USB
- Open a terminal and type "sudo /usr/sbin/sixpair"
- Disconnect the USB cable, wait about 5 minutes and then press the PS button. Make sure that you have the bluetooth service running and that you have one frontend ready (BlueDevil or gnome-bluetooth)
- Open a terminal window and type "hcidump -t -X"
- Copy the MAC Bluetooth address of the controller from the output (should be right before of the controller's name)
- Open another terminal window and type "bluetoothctl"
- Type "trust" followed by the controller's MAC address
- If the previous step was successful, type "pair" followed by the controller's MAC address
- After successfully pairing, type "connect" followed by the controller's MAC address
- Wait for the controller to stop attempting to connect and then restart the bluetooth service by typing "sudo systemctl restart bluetooth.service"
- Open your bluetooth frontend of choice, press the PS button on the controller, and connect it to your box via the bluetooth frontend. The controller should now be fully operational.
Plug in and have fun (tested Leap 42.2 with SuperTuxCart)
The Xbox 360 controller does not use Bluetooth. It is a proprietary RF signal if you have the wireless controller.
Note: Requires a Bluetooth 4.0 receiver.
AntiMicro, which is available on OBScan map controller buttons to function like keyboard and mouse buttons. It's handy if you'd like to control your desktop with your controller. GNOME can be utilized properly with a controller if the keys are mapped properly, thanks to AntiMicro.
QtSixa is a frontend for Sixpair and Sixaxis. If you prefer to do things graphically, you can try QtSixa which can be installed from OBS. QtSixa is a rather old piece of software and might not work properly.