maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   audio stopped playing from car audio after upgrade (https://talk.maemo.org/showthread.php?t=95752)

impeham 2015-07-19 09:08

audio stopped playing from car audio after upgrade
 
I am facing a strange issue on my n900 device connection using bluetooth to my car's audio system. i suspect that one/more of the following packages might be the cause for that:

before upgrade versions:
ii bluez 4.60-0maemo1.6+0m5 Bluetooth tools and daemons
ii bootmenu 1.13 Fanoush's Boot Menu
ii getbootstate 1.0.39+0m5 Determines runlevel on maemo system
ii gstreamer0.10-dsp 0.7.0-0maemo2.4+0m5 GStreamer plug-in for TI's OMAP DSP.
ii libbluetooth3 4.60-0maemo1.6+0m5 Library to use the BlueZ Linux Bluetooth sta


after upgrade versions:
ii bluez 4.99-2maemo1+0cssu1 Bluetooth tools and daemons
ii bootmenu 1.14 Fanoush's Boot Menu
ii getbootstate 2.0 Determines runlevel on maemo system
ii gstreamer0.10-dsp 0.10.1-2+0cssu1 GStreamer plug-in for TI's OMAP DSP.
ii libbluetooth3 4.99-2maemo1+0cssu1 Library to use the BlueZ Linux Bluetooth sta

after these updates, the sound playback got better - there are no more glitches during music playback i used to have before however, the following issue occurs:

The audio system finds the n900 and connects to it (i can control next/previous on the n900 from the audio system's screen), bu there is no sound playing from it (and not from the n900 either).
if i disconnect the n900 from the audio system's menu and reconnect - it starts to work again, until it starts to download the phone book and then it stops again (and does not play even when the download finishes).
i tried an old n900 without these updates and it seems to work fine - playback is heard from the audio system right after the connection establishes.

Any idea?

sicelo 2015-07-19 21:16

Re: audio stopped playing from car audio after upgrade
 
tried to redo the pairing from scratch? perhaps if your audio system allows "reset" of stored/paired devices, i'd do that too

impeham 2015-07-20 05:35

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by sicelo (Post 1477241)
tried to redo the pairing from scratch? perhaps if your audio system allows "reset" of stored/paired devices, i'd do that too

yes i did - few times - same behavior...

Halftux 2015-07-20 13:45

Re: audio stopped playing from car audio after upgrade
 
Compare on both N900 with "hciconifg --all"
  • class
  • service classes
  • device classes

Is there any difference?

impeham 2015-07-20 19:36

Re: audio stopped playing from car audio after upgrade
 
Halftux thanks - i'll check that.

i was trying to downgrade the bluetooth packages and got this error:

[root ~]# apt-get install --reinstall bluez=4.60-0maemo1.6+0m5 libbluetooth3=4.60-0maemo1.6+0m5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be DOWNGRADED:
bluez libbluetooth3
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 2 not upgraded.
Need to get 454kB of archives.
After this operation, 672kB disk space will be freed.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libbluetooth3 bluez
Install these packages without verification [y/N]? y
Err https://downloads.maemo.nokia.com ./ libbluetooth3 4.60-0maemo1.6+0m5
Couldn't resolve host 'downloads.maemo.nokia.com'
Err https://downloads.maemo.nokia.com ./ bluez 4.60-0maemo1.6+0m5
Couldn't resolve host 'downloads.maemo.nokia.com'
Failed to fetch https://downloads.maemo.nokia.com/fr...+0m5_armel.deb Couldn't resolve host 'downloads.maemo.nokia.com'

impeham 2015-07-20 20:46

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by Halftux (Post 1477337)
Compare on both N900 with "hciconifg --all"
  • class
  • service classes
  • device classes

Is there any difference?

differences i see for hciconifg --all:

working BT device:
------------------------
hci0: Type: BR/EDR Bus: UART
UP RUNNING PSCAN
Link policy: RSWITCH HOLD SNIFF PARK
Class: 0x58020c
Service Classes: Capturing, Object Transfer, Telephony
HCI Ver: 2.1 (0x4) HCI Rev: 0xc0 LMP Ver: 2.1 (0x4) LMP Subver: 0x410b

Non working BT device:
-------------------------------
hci0: Type: UART
UP RUNNING PSCAN ISCAN
Link policy: RSWITCH SNIFF
Class: 0x00020c
Service Classes: Unspecified
HCI Version: 2.1 (0x4) Revision: 0xc0
LMP Version: 2.1 (0x4) Subversion: 0x410b

sicelo 2015-07-20 20:58

Re: audio stopped playing from car audio after upgrade
 
the kernel guys will look into it :) have alerted them

Halftux 2015-07-20 22:37

Re: audio stopped playing from car audio after upgrade
 
Try to change the class to
Quote:

Class: 0x58020c
in /etc/bluetooth/main.conf
The number stands for:
service class: capturing, object transfer, telephony
device class: phone / smart phone
and see maybe it works better.


You can also calculate some different numbers http://bluetooth-pentest.narod.ru/so...generator.html

impeham 2015-07-21 07:31

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by Halftux (Post 1477424)
Try to change the class to

in /etc/bluetooth/main.conf
The number stands for:
service class: capturing, object transfer, telephony
device class: phone / smart phone
and see maybe it works better.


You can also calculate some different numbers http://bluetooth-pentest.narod.ru/so...generator.html

Tried it. Actually I even tried to replace the entire file and also the entire content of the "/var/lib/bluetooth" folder with the older device and it didn't change the behavior.


Thing is - the n900 DOES connect to the audio system, but once the phone book download starts the audio playback stops and never works again until I actually disconnect the N900 from the audio systems BT menu and reconnects it only with audio mode (phone mode stays off). Only then the sound is really heard from the system itself.

freemangordon 2015-07-21 09:24

Re: audio stopped playing from car audio after upgrade
 
isn't bluez 4.99-2maemo1+0cssu1 in cssu-devel repo?

impeham 2015-07-21 20:48

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by freemangordon (Post 1477449)
isn't bluez 4.99-2maemo1+0cssu1 in cssu-devel repo?

didn't find these packages there...

Android_808 2015-07-21 22:37

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by freemangordon (Post 1477449)
isn't bluez 4.99-2maemo1+0cssu1 in cssu-devel repo?

yep, recently added.
http://maemo.merlin1991.at/cssu/comm.../free/b/bluez/

I'm on latest thumb (10.1, waiting on 11 :p ), our version is 4.60-0maemo1.6+m5.

impeham 2015-07-22 06:32

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by Android_808 (Post 1477507)
yep, recently added.
http://maemo.merlin1991.at/cssu/comm.../free/b/bluez/

I'm on latest thumb (10.1, waiting on 11 :p ), our version is 4.60-0maemo1.6+m5.

that is the version i had before (4.60) - where can i get it to try and revert back?

Thanks.

Android_808 2015-07-22 06:44

Re: audio stopped playing from car audio after upgrade
 
you could try downloading from mirror, or just update add mirror to HAM

http://talk.maemo.org/showpost.php?p...&postcount=112

iirc, there may have been an issue with missing class name/id a while back when luf was testing pbab etc. unfortunately i can't test either version my end at the moment as current car only does pbab, not audio streaming.

impeham 2015-07-23 07:36

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by impeham (Post 1477513)
that is the version i had before (4.60) - where can i get it to try and revert back?

Thanks.

thanks - finally found that the package that caused the problem is "bluez=4.99-2maemo1+0cssu1". i reverted back to "bluez=4.60-0maemo1.6+0m5" and the audio playback through the audio system is back on first connection.

however - the problem with the music sometimes "glitches" is back (happens when mobilehotspot internet sharing is running). this "glitch" issue seemed to have been resolved with the 4.99 version so too bad for now...

sicelo 2015-09-15 11:34

Re: audio stopped playing from car audio after upgrade
 
Did the new bluez get fixed yet for this audio problem?

impeham 2015-09-16 07:37

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by sicelo (Post 1482567)
Did the new bluez get fixed yet for this audio problem?

no, but i found a workaround after a few tests:

it seems that someplayer is making troubles on music playing if mobilehotspot is being started (the internet sharing) when it is already active.

what i do now when my car mode starts, is first run mobilehotspot+activate sharing and only after the connection to 3G is made - someplayer is being launched.

sicelo 2015-09-16 08:33

Re: audio stopped playing from car audio after upgrade
 
ok. my N900 cannot connect to a bluetooth speaker here, while every other person's device can. actually, it connects, but fails to establish proper A2DP connection:

Code:

ep 15 13:09:27 fremantle kernel: [55856.641448] hci_h4p hci_h4p: firmware: requesting bcmfw.bin
Sep 15 13:09:28 fremantle bluetoothd[1102]: HCI dev 0 up
Sep 15 13:09:28 fremantle bluetoothd[1102]: Adapter /org/bluez/1102/hci0 has been enabled
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle wlancond[1949]: Got signal, powered: 1
Sep 15 13:09:28 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle bluetoothd[1102]: SIM.Phonebook.read failed with error 1001
Sep 15 13:09:28 fremantle bluetoothd[1102]: SIM.Phonebook.read failed with error 1001
Sep 15 13:09:28 fremantle bluetoothd[1102]: get_operator_name failed with code 1000
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle last message repeated 3 times
Sep 15 13:09:28 fremantle bluetoothd[1102]: Discovery session 0xa1918 with :1.63 activated
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:39 fremantle last message repeated 2 times
Sep 15 13:09:46 fremantle [1272]: Unable to call FindDevice: Does Not Exist
Sep 15 13:09:46 fremantle [1272]: Could not get general service support. Trying deprecated methods.
Sep 15 13:09:46 fremantle [1272]: Getting trust setting via Bluez failed, use GConf
Sep 15 13:09:46 fremantle bluetoothd[1102]: Stopping discovery
Sep 15 13:09:46 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:46 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:51 fremantle bluetoothd[1102]: input-headset driver probe failed for device 71:00:04:47:73:A1
Sep 15 13:09:46 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:51 fremantle bluetoothd[1102]: input-headset driver probe failed for device 71:00:04:47:73:A1
Sep 15 13:09:58 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:09:58 fremantle wlancond[1949]: State: connecting
Sep 15 13:09:58 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:09:59 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:09:59 fremantle wlancond[1949]: State: connected
Sep 15 13:09:59 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:09:59 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:10:00 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:10:01 fremantle wlancond[1949]: Received org.bluez.AudioSink.PropertyChanged
Sep 15 13:10:01 fremantle wlancond[1949]: State: connecting
Sep 15 13:10:01 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:10:01 fremantle kernel: [55890.194030] input: 71:00:04:47:73:A1 as /class/input/input4
Sep 15 13:10:01 fremantle bluetoothd[1102]: Unable to select SEP
Sep 15 13:10:01 fremantle ke_recv[1534]: device_added:2614: udi: /org/freedesktop/Hal/devices/computer_logicaldev_input_1
Sep 15 13:10:01 fremantle ke_recv[1534]: device_added:2686: /org/freedesktop/Hal/devices/computer_logicaldev_input_1 is not a storage or volume
Sep 15 13:10:03 fremantle wlancond[1949]: Received org.bluez.AudioSink.PropertyChanged
Sep 15 13:10:03 fremantle wlancond[1949]: State: disconnected
Sep 15 13:10:03 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:10:03 fremantle ke_recv[1534]: device_removed:2695: udi: /org/freedesktop/Hal/devices/computer_logicaldev_input_1
Sep 15 13:10:03 fremantle pulseaudio[883]: module-bluetooth-device.c: Couldn't connect to bluetooth audio service
Sep 15 13:10:03 fremantle pulseaudio[883]: module.c: Failed to load  module "module-bluetooth-device" (argument: "address="71:00:04:47:73:A1" path="/org/bluez/1102/hci0/dev_71_00_04_47_73_A1" sco_sink="sink.hw1" sco_source="source.hw1""): initialization failed.
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-util.c: Parameter file not valid: /var/lib/pulse-nokia/btmono.parameters
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-source-output.c: HWSO START UNCORKED: 0
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-sink-input.c: HWSI START UNCORKED: 0
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-source-output.c: HWSO START UNCORKED: 0
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-sink-input.c: HWSI START UNCORKED: 0


mr_pingu 2015-09-16 13:39

Re: audio stopped playing from car audio after upgrade
 
I experienced that problem sometime ago too. Some wireless speakers no problem, some just won't connect. While other phones (read apples and droids and WP's) actually do connect.

luf 2015-12-27 14:20

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by impeham (Post 1477639)
thanks - finally found that the package that caused the problem is "bluez=4.99-2maemo1+0cssu1". i reverted back to "bluez=4.60-0maemo1.6+0m5" and the audio playback through the audio system is back on first connection

Hi impeham,

can you please try to debug the problem a little bit more? I'm not sure I'll be able to reproduce it here as I have no such device with streaming support :(

What would be nice is to have bluetooth debug with both bluez version to compare the difference:

How to enable bluetoothd debug in /etc/event.d/bluetoothd:
EDIT: I connected my N900 with my computer and I play some songs using media player. In same time I received PBAP without any issue. Maybe patch from pali is the difference. I'll test it later.

BTW I'll be 2 weeks offline so please be patient.

Thanks,

Luf

luf 2015-12-27 17:56

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by mr_pingu (Post 1482692)
I experienced that problem sometime ago too. Some wireless speakers no problem, some just won't connect. While other phones (read apples and droids and WP's) actually do connect.

Hi,

is it related to bluez version 4.60 versus 4.99 ?

Thanks,

Luf

sicelo 2016-01-21 00:28

Re: audio stopped playing from car audio after upgrade
 
Quote:

Originally Posted by sicelo (Post 1482668)
ok. my N900 cannot connect to a bluetooth speaker here, while every other person's device can. actually, it connects, but fails to establish proper A2DP connection:

Code:

ep 15 13:09:27 fremantle kernel: [55856.641448] hci_h4p hci_h4p: firmware: requesting bcmfw.bin
Sep 15 13:09:28 fremantle bluetoothd[1102]: HCI dev 0 up
Sep 15 13:09:28 fremantle bluetoothd[1102]: Adapter /org/bluez/1102/hci0 has been enabled
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle wlancond[1949]: Got signal, powered: 1
Sep 15 13:09:28 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle bluetoothd[1102]: SIM.Phonebook.read failed with error 1001
Sep 15 13:09:28 fremantle bluetoothd[1102]: SIM.Phonebook.read failed with error 1001
Sep 15 13:09:28 fremantle bluetoothd[1102]: get_operator_name failed with code 1000
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:28 fremantle last message repeated 3 times
Sep 15 13:09:28 fremantle bluetoothd[1102]: Discovery session 0xa1918 with :1.63 activated
Sep 15 13:09:28 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:39 fremantle last message repeated 2 times
Sep 15 13:09:46 fremantle [1272]: Unable to call FindDevice: Does Not Exist
Sep 15 13:09:46 fremantle [1272]: Could not get general service support. Trying deprecated methods.
Sep 15 13:09:46 fremantle [1272]: Getting trust setting via Bluez failed, use GConf
Sep 15 13:09:46 fremantle bluetoothd[1102]: Stopping discovery
Sep 15 13:09:46 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:46 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:51 fremantle bluetoothd[1102]: input-headset driver probe failed for device 71:00:04:47:73:A1
Sep 15 13:09:46 fremantle wlancond[1949]: Received org.bluez.Adapter.PropertyChanged
Sep 15 13:09:51 fremantle bluetoothd[1102]: input-headset driver probe failed for device 71:00:04:47:73:A1
Sep 15 13:09:58 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:09:58 fremantle wlancond[1949]: State: connecting
Sep 15 13:09:58 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:09:59 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:09:59 fremantle wlancond[1949]: State: connected
Sep 15 13:09:59 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:09:59 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:10:00 fremantle wlancond[1949]: Received org.bluez.Headset.PropertyChanged
Sep 15 13:10:01 fremantle wlancond[1949]: Received org.bluez.AudioSink.PropertyChanged
Sep 15 13:10:01 fremantle wlancond[1949]: State: connecting
Sep 15 13:10:01 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:10:01 fremantle kernel: [55890.194030] input: 71:00:04:47:73:A1 as /class/input/input4
Sep 15 13:10:01 fremantle bluetoothd[1102]: Unable to select SEP
Sep 15 13:10:01 fremantle ke_recv[1534]: device_added:2614: udi: /org/freedesktop/Hal/devices/computer_logicaldev_input_1
Sep 15 13:10:01 fremantle ke_recv[1534]: device_added:2686: /org/freedesktop/Hal/devices/computer_logicaldev_input_1 is not a storage or volume
Sep 15 13:10:03 fremantle wlancond[1949]: Received org.bluez.AudioSink.PropertyChanged
Sep 15 13:10:03 fremantle wlancond[1949]: State: disconnected
Sep 15 13:10:03 fremantle wlancond[1949]: Setting coex state to 1
Sep 15 13:10:03 fremantle ke_recv[1534]: device_removed:2695: udi: /org/freedesktop/Hal/devices/computer_logicaldev_input_1
Sep 15 13:10:03 fremantle pulseaudio[883]: module-bluetooth-device.c: Couldn't connect to bluetooth audio service
Sep 15 13:10:03 fremantle pulseaudio[883]: module.c: Failed to load  module "module-bluetooth-device" (argument: "address="71:00:04:47:73:A1" path="/org/bluez/1102/hci0/dev_71_00_04_47_73_A1" sco_sink="sink.hw1" sco_source="source.hw1""): initialization failed.
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-util.c: Parameter file not valid: /var/lib/pulse-nokia/btmono.parameters
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-source-output.c: HWSO START UNCORKED: 0
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-sink-input.c: HWSI START UNCORKED: 0
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-source-output.c: HWSO START UNCORKED: 0
Sep 15 13:10:03 fremantle pulseaudio[883]: voice-hw-sink-input.c: HWSI START UNCORKED: 0


Update: after intense debug session with luf on IRC, it turns out this was PEBKAC :D I had removed Enable=Socket for some long-forgotten reason in my audio.conf.

A2DP working fine now.


All times are GMT. The time now is 07:37.

vBulletin® Version 3.8.8