Skip to main content
Topic: Bluetooth PS3 controllers not connecting (Read 304 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Bluetooth PS3 controllers not connecting

Hi again everybody, I have something wrong with my bluetooth but I don't know how to figure out what, so I've come here in search of some help.  It tries to connect but fails, the bars in blueman flicker but do not fully light up... I'm a noob and just use the GUI, I haven't a clue how to solve this. I've never had it not work before.

Its trying to connect, but failing. The connectivity bars flash. I'm sorry I don't know how else to describe this issue. I have all the relevant bluez packages as far as I know.

in bluetoothctl it shows this when trying to connect stuff:

Code: [Select]
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no
[CHG] Device 00:24:33:5B:78:CD Connected: yes
[CHG] Device 00:24:33:5B:78:CD Connected: no

It'd appear my bluetooth headphones will however connect & remain connected, but not my ps3 controllers... I must be missing a package that has to do with controllers?  I have hidapi and some other related packages but I have no idea what else I might be missing... I have eudev / evdev packages, xf86-input stuff, not sure what else there could be...

Re: Bluetooth PS3 controllers not connecting

Reply #1
I've tried blueberry, same problem as in blueman... Not really sure what could be the issue! I'm officially stumped I think.
I greatly appreciate any help, so I can play my emulator games again. thank you.

my dmesg is spammed with a zillion lines of this:

Code: [Select]

[  829.550375] evbug: Event. Dev: input14, Type: 2, Code: 1, Value: -10
[  829.550376] evbug: Event. Dev: input14, Type: 0, Code: 0, Value: 0
[  829.558371] evbug: Event. Dev: input14, Type: 2, Code: 0, Value: 21
[  829.558372] evbug: Event. Dev: input14, Type: 2, Code: 1, Value: -13
[  829.558373] evbug: Event. Dev: input14, Type: 0, Code: 0, Value: 0
[  829.566373] evbug: Event. Dev: input14, Type: 2, Code: 0, Value: 16
[  829.566374] evbug: Event. Dev: input14, Type: 2, Code: 1, Value: -11
[  829.566375] evbug: Event. Dev: input14, Type: 0, Code: 0, Value: 0
[  829.574389] evbug: Event. Dev: input14, Type: 2, Code: 0, Value: 13
[  829.574392] evbug: Event. Dev: input14, Type: 2, Code: 1, Value: -10
[  829.574393] evbug: Event. Dev: input14, Type: 0, Code: 0, Value: 0
[  829.582404] evbug: Event. Dev: input14, Type: 2, Code: 0, Value: 11
[  829.582407] evbug: Event. Dev: input14, Type: 2, Code: 1, Value: -10



Re: Bluetooth PS3 controllers not connecting

Reply #3
I tried that long ago, I didn't figure declaring that because its such an obvious thing... Any other ideas?


this is what my dmesg looks like pre trying to connect controllers. It gets spammed with evbug error stuff that you'll see at the bottom and just takes up the entirety of dmesg if I try to connect one.
https://pastebin.com/QQzmS2MV

Re: Bluetooth PS3 controllers not connecting

Reply #4
So I am getting the same problem on another PC now too... This certainly isn't good. I will have to use another distro in the meantime I guess... Kinda depressing I can't just use Artix.

Re: Bluetooth PS3 controllers not connecting

Reply #5
Code: [Select]
aur/bluez-ps3 5.45-1 (8) (0.23)
    Daemons for the bluetooth protocol stack. Patched to support PS3 controllers, including Gasia/Shanwan
    clones
aur/sixpair 1.8-4 (42) (0.22)
    Associate PS3 Sixaxis controller to system bluetoothd via USB

Re: Bluetooth PS3 controllers not connecting

Reply #6
I tried using bluez-ps3 but it fails to compile unfortunately, and doesn't actually say why, just gives a log and I have no idea where it is. I've tried this on a few different computers.... my problem must be that PS3 controllers were dropped by bluez-plugins?? Very odd... if anyone knows how I can make my controllers work again, I'd really appreciate it. Try to build the bluez-ps3 package and see what happens for yourself. thank you.

this bluez-ps3 package is 5.45, I know for sure that the ps3 controllers worked for 5.50 at some point. I'm honestly so lost I have no idea where to begin with this issue. I'm almost at the point of seeking someone I can pay to do this for me because I just really want to play games. bah.

and as for sixpair, it requires SysV if memory serves.

Re: Bluetooth PS3 controllers not connecting

Reply #7
Connecting via Bluetooth
Have you tried the following?

Install the bluez, bluez-plugins, and bluez-utils packages, which includes the sixaxis plugin.

Start bluetooth.service

plug the controller in via USB, and the plugin should program your PC's bluetooth address into the controller automatically

You can now disconnect your controller.

The next time you hit the PlayStation button it will connect without asking anything else.

Alternatively, you can hold the share button and the PlayStation button simultaneously (for a few seconds) to put the gamepad in pairing mode, and pair as you would normally.

GNOME's Settings also provides a graphical interface to pair sixaxis controllers when connected by wire.

Remember to disconnect the controller when you are done as the controller will stay on when connected and drain the battery.

Note: If the controller does not connect, make sure the bluetooth interface is turned on and the controllers have been trusted.

Re: Bluetooth PS3 controllers not connecting

Reply #8
Code: [Select]
pakku -S bluez-ps3

checking systemd user unit dir... configure: error: systemd user unit directory is required
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'bluez-ps3'
:: View and edit bluez-ps3/PKGBUILD? [y/N/s/a/?] y


build() {
  cd ${srcdir}/${_gitname}
  ./configure \
          --prefix=/usr \
          --mandir=/usr/share/man \
          --sysconfdir=/etc \
          --localstatedir=/var \
          --libexecdir=/usr/lib \
          --enable-sixaxis \
          --enable-systemd=no \             <<<<<<<< add this line, then save with CTRL O in nano or whatever editor you have set as default
          --enable-experimental
  make
}


next error, builds but fails in tests:
./test-driver: line 107: 16410 Aborted                 "[email protected]" > $log_file 2>&1
FAIL: unit/test-sdp
  CC       unit/test-avdtp.o
  CC       android/avdtp.o
  CCLD     unit/test-avdtp

Well that's one error closer!

Re: Bluetooth PS3 controllers not connecting

Reply #9
The first error is because the build tries to use pkgconfig for systemd to find the dir, so although it exists it isn't found.
Code: [Select]
There is a script called test-driver that runs the tests

  CC       unit/test-sdp.o
  CC       src/sdpd-database.o
  CC       src/sdpd-service.o
  CC       src/sdpd-request.o
  CCLD     unit/test-sdp
./test-driver: line 107: 12578 Aborted                 "[email protected]" > $log_file 2>&1
FAIL: unit/test-sdp

Running the test-sdp binary says this:
/bluez-ps3/src/bluez/unit$ ./test-sdp
bluetoothd[12653]: Bluetooth daemon 5.45

/TP/SERVER/SS/BV-01-C/UUID-16 - init
/TP/SERVER/SS/BV-01-C/UUID-16 - setup
/TP/SERVER/SS/BV-01-C/UUID-16 - setup complete
/TP/SERVER/SS/BV-01-C/UUID-16 - run
**
ERROR:unit/test-sdp.c:260:client_handler: assertion failed: ((size_t) len == rsp_pdu->raw_size + rsp_pdu->cont_len)
Aborted

The failing line is this:
        g_assert((size_t) len == rsp_pdu->raw_size + rsp_pdu->cont_len);

Adding this did not help:
          --enable-systemd=no \
          --enable-testing=no \
          --enable-test=no \
It still did the tests and failed.

It might be related to this:
https://bugzilla.kernel.org/show_bug.cgi?id=202213

Re: Bluetooth PS3 controllers not connecting

Reply #10
Schpankme I know how it works, I've used it before... Theres an actual problem with the package, it can't just be me on more than one computer...

And ######  my thoughts exactly, I use --disable-systemd


I have the same problems on Void Linux GLIBC! What gives with that?! I really don't think its just me... I think something must be wrong with bluez-plugins or hidapi or something, the controllers in blueman come up as "unknown" and "uncategorized"

Re: Bluetooth PS3 controllers not connecting

Reply #11
When was the last time it worked, on Artix?  If you can pin point that and look carefully through the pacman.log you can find what upgrade broke it and return to an earlier pkg version.  I suppose all bluez-things must be of the same edition/batch/family.
Report it upstream and expect a fix on a future edition.  I don't see there is much else you can do about it.


Re: Bluetooth PS3 controllers not connecting

Reply #12
It might be possible to build it with an older version of gcc. But I can see no others in the repos I have enabled, there used to be some. I tried with an old discontinued gcc-5 binary I still had for testing stuff:
Code: [Select]
build() {
  cd ${srcdir}/${_gitname}
  export CC=/usr/bin/gcc-5
  ./configure \
          --prefix=/usr \
          --mandir=/usr/share/man \
          --sysconfdir=/etc \
          --localstatedir=/var \
          --libexecdir=/usr/lib \
          --enable-sixaxis \
          --enable-systemd=no \
          --enable-experimental
  make
}

But that didn't work, although the export line did what it should, I think it's too old a version. I left gcc7 building from the AUR, it's quite a big package to build, but ran out of space on this partition, as it only had 6 or 7 GB free.  ;D  Looking at Arch versions they are using GCC8, we are on 9:
https://www.archlinux.org/packages/core/x86_64/gcc/
That's in the "core" repo which is not visible in Artix.
The disable / enable syntax is part of GNU build tools I think.

Re: Bluetooth PS3 controllers not connecting

Reply #13
Was curious
I can get it to build, with "--enable-systemd=no",  with the following changes to the PKGBUILD
Whether it will work is another matter and I have no way to test it.

Code: [Select]
--- PKGBUILD	2019-06-08 12:37:57.543275168 +0100
+++ PKGBUILD.new 2019-06-08 12:37:43.869941773 +0100
@@ -37,22 +37,17 @@
           --localstatedir=/var \
           --libexecdir=/usr/lib \
           --enable-sixaxis \
+          --enable-systemd=no \
           --enable-experimental
   make
 }
 
-check() {
-  cd ${srcdir}/${_gitname}
-  make check
-}
 
 package() {
   cd ${srcdir}/${_gitname}
   make DESTDIR=${pkgdir} \
        install-libexecPROGRAMS \
        install-dbussessionbusDATA \
-       install-systemdsystemunitDATA \
-       install-systemduserunitDATA \
        install-dbussystembusDATA \
        install-dbusDATA \
        install-pluginLTLIBRARIES \
@@ -69,6 +64,5 @@
   install -dm755 ${pkgdir}/usr/lib/modprobe.d
   install -Dm644 ${srcdir}/bluetooth.modprobe ${pkgdir}/usr/lib/modprobe.d/bluetooth-usb.conf
  
-  # fix obex file transfer - https://bugs.archlinux.org/task/45816
-  ln -fs /usr/lib/systemd/user/obex.service ${pkgdir}/usr/lib/systemd/user/dbus-org.bluez.obex.service
+
 }