Page 1 of 1

[PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Tue Apr 17, 2018 11:25 am
by kaiba_seto2004
Update: It works now, please see post
Does anybody success in using xbox one s controller via bluetooth on ps4 ( paired with Rp3)? Rp3 runs Raspbian Stretch version, Gimx 7.2
About me, only 2 buttons work: view and home, nothing more. When I try jstest-gtk to test, all buttons work like a charm.
I have no idea and totally lost :D

Any advice and suggestions will be greatly appreciated :)
P/s: I also tried with armbian on orange pi zero, same result (use this image -gimxos viewtopic.php?f=11&t=2309)

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Tue Apr 17, 2018 2:28 pm
by Matlo
Hard to tell without any log!

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Tue Apr 17, 2018 7:41 pm
by kaiba_seto2004
So sorry about that.
Here is log

Code: Select all

global option -l with value `log.txt'
global option -c with value `config.xml'
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
status flag is set
subpos flag is set
force_updates flag is set
GIMX 7.2 ARMv6
Debian GNU/Linux 9.2 (stretch)
Linux 4.13.13-sunxi #1 SMP Fri Nov 17 20:46:52 CET 2017 unknown
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 054c:09cc Sony Corp. 
Bus 003 Device 004: ID 214b:7000  
Bus 003 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 003 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 002: ID 214b:7000  
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
        |__ Port 1: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
        |__ Port 2: Dev 6, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
        |__ Port 3: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 2: Dev 5, If 2, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 2: Dev 5, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 2: Dev 5, If 3, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 2: Dev 5, If 1, Class=Audio, Driver=snd-usb-audio, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
GIMX adapter detected, controller type is: DS4.
found pass-through device 0x054c:0x09cc
registered joystick 0 with name "Sony Computer Entertainment Wireless Controller"
using default refresh period: 10.00ms
keyboard 0 has name 'Xbox Wireless Controller' and virtual id 0
joystick 0 has name 'Sony Computer Entertainment Wireless Controller' and virtual id 0
joystick 1 has name 'Xbox Wireless Controller' and virtual id 0
Dump of /root/.gimx/config/config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <controller id="1" dpi="0" type="DS4">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back="no" delay="0"/>
      <mouse_options_list/>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_0" label="">
          <device type="keyboard" id="0" name="Xbox Wireless Controller"/>
          <event type="button" id="BACK"/>
        </button>
        <button id="abs_axis_2" label="">
          <device type="keyboard" id="0" name="Xbox Wireless Controller"/>
          <event type="button" id="HOMEPAGE"/>
        </button>
      </button_map>
      <axis_map/>
      <joystick_corrections_list/>
    </configuration>
  </controller>
</root>
Press the PS button to activate the controller.
Exiting
It really works with 2 buttons like that, I can still log in :D

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Tue Apr 24, 2018 8:44 pm
by Matlo
I think this is a driver issue. Try this: https://ubuntuforums.org/showthread.php ... st13578643

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Wed Apr 25, 2018 4:15 pm
by kaiba_seto2004
Matlo wrote: Tue Apr 24, 2018 8:44 pm I think this is a driver issue. Try this: https://ubuntuforums.org/showthread.php ... st13578643
Thanks for your advice
But I used to tried that first, my xbox one s controller has already paired to Rp3 but when using detection only 2 buttons were regconized and device was keyboard !?!?
So I hope someone can try to use xbox one s controller on Rp3 to confirm.
Any references to SDL ?

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Sat Jun 09, 2018 4:41 pm
by kaiba_seto2004
Bump anyone? :)

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Sun Jun 10, 2018 3:21 am
by kaiba_seto2004
Good news everyone!
I think I can figure out how to use xbox one s controller on armbian, it relates to linux kernel header. So what I did is:
1. Install Advanced Linux Driver for Xbox One S Wireless Gamepad:
2. Install linux header 4.14.18-sunxi:
Now gimx-config recognizes all inputs from Xbox One S Controller.

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Sun Jun 10, 2018 2:54 pm
by Matlo
I had a look. Problem is that the Xbox One S controller (via bluetooth) is seen as a composite device (keyboard + joystick). When the keyboard device is grabbed the joystick device provides no more events. A quick work-around is to use "window events" instead of "physical events".

Re: [PS4][Rp3]Xbox one S Controller via bluetooth

Posted: Tue Jun 12, 2018 8:34 pm
by kaiba_seto2004
Sadly even with "windows event" no more buttons were registered :( I think update "xpadneo" driver is the only working now.