Note! This should work on both USB or Bluetooth. However, I can't get bluetooth connection working myself so I will not provide a guide to connect Sixaxis to Bluetooth!
Installation
First you need to install the xorg joystick driver (it's not included in the "joystick" package!)
I'm not sure why it's not included in fedora repositories so i built them and put them on my personal repo.
Create a file called
fuzzie.repo in
/etc/yum.repos.d/ and add:
Code:
[fuzzie]
name=Fuzzie Repository for Fedora $releasever
baseurl=http://xrylite.uni.cc/fedora/releases/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://xrylite.uni.cc/fedora/RPM-GPG-KEY-fuzzie.gpg
Install:
Code:
yum install xorg-x11-drv-joystick
Configuring HAL to automatically configure controller
Create a file called
10-sixaxis.fdi in
/etc/hal/fdi/policy/ and add:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input">
<!-- Match on anything you like from lshal -->
<match key="input.product" string_outof="Sony Computer Entertainment Wireless Controller;Sony PLAYSTATION(R)3 Controller">
<!-- xorg-server<1.5 will only hotplug devices where these two capatilities
are set. This hack can confuse other hal clients. -->
<!--
<append key="info.capabilities" type="strlist">input.keys</append>
<append key="info.capabilities" type="strlist">input.mouse</append>
-->
<merge key="input.x11_driver" type="string">joystick</merge>
<!-- Arbitrary options can be passed to the driver using
the input.x11_options property since xorg-server-1.5. -->
<merge key="input.x11_options.MapButton15" type="string">button=1</merge>
<merge key="input.x11_options.MapButton2" type="string">button=2</merge>
<merge key="input.x11_options.MapButton16" type="string">button=3</merge>
<merge key="input.x11_options.MapButton11" type="string">key=Alt_L,Left</merge>
<merge key="input.x11_options.MapButton12" type="string">key=Alt_L,Right</merge>
<merge key="input.x11_options.MapAxis1" type="string">mode=relative axis=+1x deadzone=5000</merge>
<merge key="input.x11_options.MapAxis2" type="string">mode=relative axis=+1y deadzone=5000</merge>
<merge key="input.x11_options.MapAxis3" type="string">mode=relative axis=+1zx deadzone=5000</merge>
<merge key="input.x11_options.MapAxis4" type="string">mode=relative axis=+1zy deadzone=5000</merge>
<merge key="input.x11_options.MapAxis5" type="string">mode=accelerated axis=+1x deadzone=5000</merge>
<merge key="input.x11_options.MapAxis6" type="string">mode=accelerated axis=+1y deadzone=5000</merge>
</match>
</match>
</device>
</deviceinfo>
Restart HAL:
Code:
su -c 'service haldaemon restart'
Plug in your controller and press the Playstation button. Moving your left joystick should move the mouse and moving the right joystick should scroll, cross for click, square for right click, L for going back in history in browsers and R for going forward in history in browsers