WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bluetooth bug in TC-13.1  (Read 2255 times)

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Bluetooth bug in TC-13.1
« on: June 14, 2023, 09:51:54 PM »
Hello,

I'm trying to load bluetooth software to link TC 13.1 with bluetooth devices.  Blueman.tcz fails to download startup-notification.tcz file.  What to do now?

Could be possible to load bluetooth and blueman with no *-gir.tcz extensions?

Thank you.  :-)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: Bluetooth bug in TC-13.1
« Reply #1 on: June 15, 2023, 04:35:47 AM »
There was an error in the blueman dep file, it should have read libstartup-notification - fixed now.

The blueman app needs the *gir extensions.
« Last Edit: June 15, 2023, 04:43:53 AM by Juanito »

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Bluetooth bug in TC-13.1
« Reply #2 on: June 23, 2023, 08:32:56 AM »
After downloaded updated Bluetooth, it can not start.  Error shows me Can not connect to BlueZ manager, BlueZ daemon is not loaded.  The bluetooth device is ath9k, dmesg shows calltrace error to device.  After running sudo depmod ath9k the device appears to be loaded, but shows same error: BlueZ daemon is not loaded.  The bluetooth device runs using other Linux distro.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1251
Re: Bluetooth bug in TC-13.1
« Reply #3 on: June 23, 2023, 09:00:02 AM »
What are the error messages

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Bluetooth bug in TC-13.1
« Reply #4 on: June 23, 2023, 07:48:00 PM »
Can not connect to BlueZ manager, BlueZ daemon is not loaded.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1251
Re: Bluetooth bug in TC-13.1
« Reply #5 on: June 23, 2023, 08:58:16 PM »
You know it does not start automatically, right?  What happens when you try to load Bluetoothd?   There is an init.d script that will also start dbus if needed.

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Bluetooth bug in TC-13.1
« Reply #6 on: June 24, 2023, 08:17:43 PM »
sudo dbus    ; appears to run.
sudo bluez start    ; appears to run.

but blueman-manager remains with error.  :-(

sudo bluetoothd -n    ; bluetoothd[4280]: src/adapter.c:adapter_init() Failed to access management interface.

:-(

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1251
Re: Bluetooth bug in TC-13.1
« Reply #7 on: June 24, 2023, 10:23:11 PM »
You will have to research your adapter function in linux.  Does it need firmware?

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Bluetooth bug in TC-13.1
« Reply #8 on: June 25, 2023, 03:42:01 AM »
yes, Atheros (ath9k) firmware loaded before loading bluez5.tcz & blueman.tcz

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: Bluetooth bug in TC-13.1
« Reply #9 on: June 25, 2023, 06:13:14 AM »
Check the dbus and bluez daemons are running with:
Code: [Select]
/usr/local/etc/init.d/dbus status
/usr/local/etc/init.d/bluez status

..start the bluetooth daemon with:
Code: [Select]
sudo bluetoothd -nd
..start blueman in a separate terminal window with:
Code: [Select]
blueman-manager
..and look for error messages.

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Bluetooth bug in TC-13.1
« Reply #10 on: June 25, 2023, 06:44:56 PM »
dbus service started.
bluez service NOT STARTED after bluez start, runned with and without sudo.

bluetoothd daemon (bluetoothd -nd): 
bluetoothd[3744]: src/adapter.c:adapter_init() Failed to access management interface.
bluetoothd[3744]: src/main.c:main() Adapter handling initialization failed.

:-(

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1251
Re: Bluetooth bug in TC-13.1
« Reply #11 on: June 25, 2023, 07:07:20 PM »
Figure out why your adapter is not being recognized by the kernel.

I would guess that the driver is not really loaded, or there is missing firmware.  You need to look at dmesg.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: Bluetooth bug in TC-13.1
« Reply #12 on: June 27, 2023, 06:14:57 AM »
This is for intel hardware on Core-14.x, but you should see something analogous to this:
Code: [Select]
dmesg
...
Bluetooth: Core ver 2.22
NET: Registered PF_BLUETOOTH protocol family
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
usbcore: registered new interface driver btusb
Bluetooth: hci0: Legacy ROM 2.5 revision 8.0 build 2 week 3 2013
bluetooth hci0: Direct firmware load for intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq failed with error -2
bluetooth hci0: Falling back to sysfs fallback for: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
Bluetooth: hci0: Intel BT fw patch 0x37 completed & activated

Note the kernel initially tries to load firmware from the driver and then falls back to loading it from /usr/local/lib/firmware

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: Bluetooth bug in TC-13.1
« Reply #13 on: June 27, 2023, 06:26:44 AM »
..and blueman works - although it sometimes does not start first time.