I try to connect my Ubuntu 23.10 with an LG C2 TV to then output the sound from LG to Ubuntu; the same works fine with my iPhone which then plays some music through my Ubuntu attached speakers. I use bluetoothctl
:
devices Paired
Device 20:28:BC:81:F8:D9 [LG] webOS TV OLED55C22LB
connect 20:28:BC:81:F8:D9
Attempting to connect to 20:28:BC:81:F8:D9
[CHG] Device 20:28:BC:81:F8:D9 Connected: yes
Connection successful
[CHG] Device 20:28:BC:81:F8:D9 ServicesResolved: yes
but then I can't see in the LG's "Bluetooth Device" menu my Ubuntu as a speaker.
What should I do to solve this?
Actually, for iPhone to output audio to Bluetooth, I had first to specify that the Bluetooth connection's target (i.e. computer) is a speaker.
PS: I use pipewire, pipewire-pulse and wireplumber which work fine
info 20:28:BC:81:F8:D9
Device 20:28:BC:81:F8:D9 (public)
Name: LG TV[[LG] webOS TV OLED55C22LB
Alias: LG TV[[LG] webOS TV OLED55C22LB
Class: 0x0008243c (533564)
Icon: audio-card
Paired: yes
Bonded: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: LG Electronics (0000feb9-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v0046p1200d1436
ManufacturerData Key: 0x00c4 (196)
ManufacturerData Value:
02 34 15 13 17 fd 80 .4.....
https://askubuntu.com/q/1172000/1004020 seems to solve another problem.
– Adrian Feb 21 '24 at 12:30pactl
command finds no bluez source whilst the suggested alternativegdbus call
fails; additionally I use pipewire but not pulseaudio. But the most important is the fact that many say they do nothing to have audio running over Bluetooth through Ubuntu - this is what I also experience but sadly, only with my iPhone. – Adrian Feb 21 '24 at 20:34sudo hciconfig hci0 class 0x00240414
? – Daniel T Feb 23 '24 at 06:40sudo hciconfig hci0 class 0x00240414
and my TV is at least listing my PC allowing me to try connecting to it but the connection from the TV side fails while in bluetoothctl it shows[CHG] Device 20:28:BC:81:F8:D9 Connected: yes
; but after a while (probably when the TV gives up), it shows[CHG] Device 20:28:BC:81:F8:D9 Connected: no
again. – Adrian Feb 23 '24 at 16:52Class = 0x240414
in /etc/bluetooth/main.conf using https://askubuntu.com/questions/439088/how-to-change-bluetooth-device-class but it didn't work completely (only the name, if set, is changed as specified) - the class changed to another than '0x240414' but also different than the initial, not working one - in the end, the Bluetooth connection still works despite the fact that the class is not exactly the one set.hciconfig -a | grep -i 'class'
reportsDevice Class: Audio/Video, Loudspeaker
. – Adrian Feb 23 '24 at 19:28/etc/bluetooth/main.conf
to respect the service class0x24
part, and perhaps that could be a later edit – Daniel T Feb 25 '24 at 22:36