Notices


Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Jun 2010
#701
Originally Posted by f2thak View Post
----------------------------------------------------------
Use PS3 SixAxis Controller with N900
For Windows Users
----------------------------------------------------------

Windows 7 and Vista users may have problems using Home edition OS's, especially with 64-bit editions.
Being able to run XP mode helps a lot. If you cannot, go here.




Installation/Config:

1. Ensure you have a N900, a genuine PS3 SixAxis controller (DS3 will work) and a USB cable to plug controller into your PC

2. On your N900, install "sixaxis-support" from extras repo

3. on PC install libusb-win32-filter-bin-0.1.10.1 (32-Bit Machines ONLY)
use this version (you may try newest version but Im unsure if it works)
64 BIT USERS GO HERE WARNING: THIS CAN CAUSE PROBLEMS, DO SO AT YOUR OWN RISK

4. on PC install GlovePie
use this version (you may try newest version but Im unsure if it works)

5. on PC open file in notepad:
X:/*GlovePie Directory*/SixaxisScripts/n900.pie

6. go to this section:

sixaxis.BluetoothMAC = "xx:xx"

and replace the xx:xx with your phones Bluetooth address
(to find, go to: settings > general > about product)

7. connect SixAxis controller to PC

8. on PC, run GlovePie

9. Go to File > Open > X:/*GlovePie Directory*/SixaxisScripts/n900.pie

10. click the "Run >" button, wait a few seconds then press the controllers Connect button a few times

11. close GlovePie and disconnect controller





Usage:
  1. Activate Bluetooth on N900 (Visible: Yes)
  2. Press PS button on controller
  3. Wait for the SixAxis light to stop flashing
  4. To disconnect, turn off Bluetooth on phone





Connection Problems?:

add "input" back into the disabled modules in:

/etc/bluetooth/main.conf

stop/start bluetooth.
Note: doesn't work with "input" missing.





Create your own Custom button configuration:

To configure SixAxis buttons, on N900 edit:
/usr/share/hal/fdi/policy/20thirdparty/20-x11-sony-sixaxis.fdi

In this file, each group has the current set keys shown in descending order (top > bottom). in the section shown below, the top line is for the "select" button. to change the button, change the key number (key=??) which is highlighted in red. to find which key number to use, refer to "N900 X11 keycodes" below.

Code:
      <!-- Select=Z; Analog L; Analog R; Start=Enter; PS=Backspace -->
      <merge key="input.x11_options.MapButton1" type="string">key=52</merge>
      <merge key="input.x11_options.MapButton2" type="string">key=54</merge>
      <merge key="input.x11_options.MapButton3" type="string">key=55</merge>
      <merge key="input.x11_options.MapButton4" type="string">key=36</merge>
      <merge key="input.x11_options.MapButton17" type="string">key=22</merge>

N900 X11 keycodes (US layout):

The codes below relate to the N900 keyboard buttons.
Each line represents the lines of keys.
  • 37 = Ctrl/Sym
  • ?? = Fn
  • 50 = Shift
  • 43 = H
  • and so on...
Code:
37 24 25 26 27 28 29 30 31 32 33 48 22
?? 38 39 40 41 42 43 44 45 46 60 111 36
50 52 53 54 55 56 57 58  65  113 116 114

To determine controller buttons order:

pair controlller, then in xterm as root, type:

jstest /dev/input/js0





Re-connect SixAxis to PS3:

Connect controller to the PS3 with the USB cable and press the PS button to pair them. If this doesnt work, press the reset button on the controller and repeat:






Sources:

BIG THANKS to "smoku" for this!


.
noob here, i got my controller to work, but the part im having difficulty with is mapping the controller , can you please give me a detailed instruction on how to map /configure the controller , i tried the jstest /dev/input/js0 but its telling me its not found, help pls thanks
 
Posts: 45 | Thanked: 17 times | Joined on Mar 2010
#702
I'm not sure which package provides jstest, maybe someone will enlighten us. I have this strange problem where it seems to always been pulling the mouse down, so clicking on things doesn't work. I've disabled them in the config file by changing the type to 'none and it seems to be working fine now.

Has anyone else noticed that it nails scp transfers when it's running or is it just me?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <!-- Sixaxis configuration for Fake-Joystick Use (Keyboard) -->
    <match key="input.product" contains="PLAYSTATION(R)3 Controller">

     <merge key="input.x11_driver" type="string">joystick</merge>

     <match key="info.udi" contains="input_1">

      <!-- Main Axis. Left=Mouse; Right=Scroll -->
      <merge key="input.x11_options.MapAxis1" type="string">mode=none</merge>
      <merge key="input.x11_options.MapAxis2" type="string">mode=none</merge>
      <merge key="input.x11_options.MapAxis3" type="string">mode=none</merge>
      <merge key="input.x11_options.MapAxis4" type="string">mode=none</merge>
      <merge key="input.x11_options.MapAxis5" type="string">mode=none</merge>
      <merge key="input.x11_options.MapAxis6" type="string">mode=none</merge>
      <merge key="input.x11_options.MapAxis7" type="string">mode=none</merge>
      <merge key="input.x11_options.MapAxis8" type="string">mode=none</merge>
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#703
Originally Posted by Sonny_Jim View Post
I'm not sure which package provides jstest, maybe someone will enlighten us.
http://maemo.org/packages/view/joystick/
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
Posts: 30 | Thanked: 17 times | Joined on May 2010
#704
Hi, I bought a DS3 today, and after a couple hours I got the app running , and it even works as a mouse! . And I got a question:

Is there a way to map the mouse left click to a button? either of the stick buttons would be perfect, but one of the other buttons would be just as fine. That way it would be perfect for browsing, or any app that can use a mouse.
 
Posts: 150 | Thanked: 80 times | Joined on Dec 2009
#705
Originally Posted by acidboink View Post
noob here, i got my controller to work, but the part im having difficulty with is mapping the controller , can you please give me a detailed instruction on how to map /configure the controller , i tried the jstest /dev/input/js0 but its telling me its not found, help pls thanks
You need to edit the file /usr/share/hal/fdi/policy/20thirdparty/20-x11-sony-sixaxis.fdi

You can do this on your PC if you have SSH installed or try:

Code:
leafpad /usr/share/hal/fdi/policy/20thirdparty/20-x11-sony-sixaxis.fdi
 
Posts: 71 | Thanked: 1 time | Joined on Feb 2010
#706
Hi how do i edit etc/bluetooth.. I really dont understand it. I have managed everything but keep getting the flashing lights on the pad. I've read through this thread and spent ages trying to figure it out. If anybody would be kind enough to help me with a step by step I would really appreciate it thanks.
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#707
Just do a full backup of your data (using backup application), reflash the device, restore the data but not the applications, install sixaxis-support and try whether it is working.
Then you may use the app manager to restore the rest of applications one by one, finding the one that causes problems.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following User Says Thank You to smoku For This Useful Post:
Posts: 8 | Thanked: 0 times | Joined on Jun 2010
#708
Hiho,

I have been trying a lot to make a "PS(R) Controller" i.e. Snakebyte Premium Bluetooth Controller work with sixad. I got as far as it asked me repeatedly to allow connection, as reported by other users with genuine controllers.

I'd like to know why it HAS to be a genuine controller considering I got that far at all.

Is there something hardcoded that I would have to change so it resembles my model? It's just an HID after all which works great on either PS3 or PC. It ought to be possible to figure that out.

Here is the USB device info on the Snakebyte pad,
Code:
Device Descriptor:
bcdUSB:             0x0200
bDeviceClass:         0x00
bDeviceSubClass:      0x00
bDeviceProtocol:      0x00
bMaxPacketSize0:      0x40 (64)
idVendor:           0x054C (Sony Corporation)
idProduct:          0x0268
bcdDevice:          0x0100
iManufacturer:        0x01
iProduct:             0x02
iSerialNumber:        0x00
bNumConfigurations:   0x01

ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed:     Full
Device Address:       0x02
Open Pipes:              2

Endpoint Descriptor:
bEndpointAddress:     0x02  OUT
Transfer Type:   Interrupt
wMaxPacketSize:     0x0040 (64)
bInterval:            0x01

Endpoint Descriptor:
bEndpointAddress:     0x81  IN
Transfer Type:   Interrupt
wMaxPacketSize:     0x0040 (64)
bInterval:            0x01
maybe someone can point me to an idea?
 
Posts: 71 | Thanked: 1 time | Joined on Feb 2010
#709
thanks smoku its working fine now, I think the problem would most likely of been the other Bluetooth app 'Bluemaemo'
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#710
Originally Posted by kuru View Post
it asked me repeatedly to allow connection, as reported by other users with genuine controllers.
And this is wrong.
You shouldn't be asked. sixad should notice the connection attempt and intercept it.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:26.