RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    PS3 Shanwan in Bookworm

    Scheduled Pinned Locked Moved Help and Support
    ps3 blue toothsixaxis
    10 Posts 2 Posters 754 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      txutxifel
      last edited by

      Hi
      I cant use my PS3 Shanwan controller in Bookworm with sixaxis + customhidsony. It never pairs.

      I checked and driver is well installled:

      Usage: lsmod
      pi@retropie:~ $ modinfo hid-sony
      filename:       /lib/modules/6.1.21-v8+/updates/dkms/hid-sony.ko.xz
      license:        GPL
      ....
      
      

      I can see sixad service if i connect the controller via usb. But if I disconnect it, it disappear. There is no service after that to start sixaxis-helper.

      with ps3controller driver it works ok

      Also (with the same doogle) I tried to pair with my PC (linux too) an export /var/lib/bluethooth/[mac doogle]/ folder. It worked for me in the past and it allow to me to pair the bluetooth devices automatically.

      PS. Sorry, but English is not my main language.

      I previosly had it working in Bullseye...

      T 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        Bookworm support is still in beta, though in this case I'm not sure an updated customhidsonly would help. What's the output of cat /proc/bus/input/devices when the controller is connected via USB ?

        I can see sixad service if i connect the controller via usb. But if I disconnect it, it disappear. There is no service after that to start sixaxis-helper.

        That's normal, the service is started on-demand, only when a PS3 device is connected (USB or paired Bluetooth).

        1 Reply Last reply Reply Quote 0
        • T
          txutxifel @txutxifel
          last edited by txutxifel

          @txutxifel

          
          cat /proc/bus/input/devices
          
          I: Bus=0003 Vendor=054c Product=0268 Version=8110
          N: Name="SHANWAN PS3 GamePad Motion Sensors"
          P: Phys=usb-0000:01:00.0-1.3.2/input0
          S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/0003:054C:0268.0013/input/input36
          U: Uniq=05:b4:81:52:63:25
          H: Handlers=event5 
          B: PROP=40
          B: EV=9
          B: ABS=7
          
          I: Bus=0003 Vendor=054c Product=0268 Version=8110
          N: Name="SHANWAN PS3 GamePad"
          P: Phys=usb-0000:01:00.0-1.3.2/input0
          S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/0003:054C:0268.0013/input/input35
          U: Uniq=05:b4:81:52:63:25
          H: Handlers=event6 js0 
          B: PROP=0
          B: EV=20001b
          B: KEY=f00000000 0 0 0 7fdb000000000000 0 0 0 0
          B: ABS=3f
          B: MSC=10
          B: FF=107030000 0
          
          

          Yes, I understand thas is on-demant to no have a bluetooth conflict, but I wanted to explain that sixaxis service no start if i have switched on the controller via bluetooth.

          I can see "SHANWAN PS3 GamePad", -> maybe have name changed?

          I think controller worked in first days in bookworm (I checked everything). ¿Maybe is something with last updates like new kernel?

          Thanks for answering

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @txutxifel
            last edited by

            @txutxifel said in PS3 Shanwan in Bookworm:

            Yes, I understand thas is on-demant to no have a bluetooth conflict, but I wanted to explain that sixaxis service no start if i have switched on the controller via bluetooth.

            Since you said the controller is not pairing, I think that's normal - there's no 'input' device created and thus no service is started.

            I think controller worked in first days in bookworm (I checked everything). ¿Maybe is something with last updates like new kernel?

            Bookworm has always had kernel 6.1, but several (2-3 ?) updates since it was launched, maybe something was changed, but it may be something else - maybe the bluez updates are causing this, see https://retropie.org.uk/forum/topic/34926/.

            T mituM 2 Replies Last reply Reply Quote 0
            • T
              txutxifel @mitu
              last edited by

              @mitu

              These are bluez packages. It seen same versión:

              pi@retropie:~ $ sudo apt-cache madison bluez
              [sudo] contraseña para pi:
                  bluez | 5.66-1+rpt1+deb12u1 | http://archive.raspberrypi.org/debian bookworm/main arm64 Packages
                  bluez | 5.66-1+deb12u1 | http://security.debian.org/debian-security bookworm-security/main arm64 Packages
                  bluez |     5.66-1 | http://deb.debian.org/debian bookworm/main arm64 Packagespi@retropie:~
              

              However, i dont think its a bluez problem. Pairing works with ps3controller, so its a sixaxis problem, no?

              Can i configure a service manally to my controllers (with mac) in order to getting working?

              Thanks!

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @txutxifel
                last edited by mitu

                @txutxifel said in PS3 Shanwan in Bookworm:

                However, i dont think its a bluez problem. Pairing works with ps3controller, so its a sixaxis problem, no?

                PS3Controller is disabling the BT stack and overriding it. It works, but other BT controllers/devices will not work anymore.

                Can i configure a service manally to my controllers (with mac) in order to getting working?

                I don't know. A succesfull connection doesn't need an additional service.

                T 1 Reply Last reply Reply Quote 0
                • T
                  txutxifel @mitu
                  last edited by

                  @mitu

                  Hi,

                  I understand. i am in a dead end!

                  So:

                  • Do you need any test?
                  • Should I wait for help in the forum?
                  • Should a create a issue in github?

                  Thanks

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @txutxifel
                    last edited by mitu

                    @txutxifel said in PS3 Shanwan in Bookworm:

                    I understand. i am in a dead end!

                    Why ? You said that ps3controller driver works - can't you use that ?

                    Do you need any test?

                    Not right now. Once support for Bookworm gains more ground, maybe a test for these controllers would be helpful.

                    Should I wait for help in the forum?

                    Yes.

                    Should a create a issue in github?

                    No, you already have a topic opened here.

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      txutxifel @mitu
                      last edited by

                      @mitu

                      No, (about ps3controller), because I have another bluetooth devices (ps4 controllers). If I enable It, ps4 controller fail.

                      Ok, I will wait.

                      Thanks.

                      1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @mitu
                        last edited by mitu

                        I've taken a look at this and it seems the issue is the Bluez updates due to CVE-2023-45866 (as I said initially).
                        This will likely affect any (old) gamepad which doesn't encrypt the comunication with the host. The workaround is suggested in the linked Ubuntu bug report:

                        Set ClassicBondedOnly=false in /etc/bluetooth/input.conf
                        Run sudo systemctl restart bluetooth or reboot

                        Possibly other gamepads affected - the Wii U Pro Controller (haven't tested it yet).

                        NB: this issue is not restricted to Raspberry Pi, it affects any platform where Bluez was patched for CVE-2023-45866.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.