Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st July 2009, 08:05 AM
Fuzzie Offline
Registered User
 
Join Date: Jun 2008
Posts: 9
Thumbs up Sixaxis/Dualshock 3 Controller as mouse in Xorg

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
Reply With Quote
  #2  
Old 11th December 2011, 01:05 AM
gerein Offline
Registered User
 
Join Date: Dec 2011
Location: Baltimore
Posts: 2
linuxfirefox
Re: Sixaxis/Dualshock 3 Controller as mouse in Xorg

Fedora 16 does not include HAL. It uses apparently an older version of Xorg that uses config files. I was tring to manually switch the above fdi xml file to a config file by trying to see the difference given these file on this page http://how-to.tcwebadmin.com/linux-s...hal-fedora-13/

But to no avail, I failed. How can I transpose the above xml into one of the xorg config files?
Reply With Quote
Reply

Tags
controller, mouse, sixaxis or dualshock, xorg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
no xorg.conf, how to fix mouse? Fittersman Alpha, Beta & Snapshots Discussions (Fedora 10 Only) 1 6th November 2008 04:21 PM
[FC9]How To Connect Your Sixaxis over Bluetooth On A Non-PS3 Host uncholowapo Guides & Solutions (No Questions) 0 15th September 2008 04:27 AM
Sixaxis via BT on non-PS3 host Eddd Hardware & Laptops 7 10th August 2008 08:25 AM
Need to map mouse buttons, but no xorg mouse entry? (FC7) Zef_ Hardware & Laptops 1 23rd September 2007 07:33 PM
No mouse in X11/xorg captgadget Hardware & Laptops 1 3rd July 2007 04:47 AM


Current GMT-time: 06:57 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat