** Package changed: ubuntu => bluez (Ubuntu)
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/2079940
Title:
Bluetooth Speaker is Identified as Keyboard
Status in bluez package in Ubuntu:
New
Bug description:
I wanted to connect a bluetooth speaker to Ubuntu 24. Using blueman
interface (as well as bluetoothctl) the speaker would connect briefly
before disconnecting. This disconnection was unexpected.
==> /var/log/auth.log <==
2024-09-09T10:09:03.194971+09:30 webb systemd-logind[1272]: Watching system
buttons on /dev/input/event23 (LG SN5Y(3F) (AVRCP))
==> /var/log/kern.log <==
2024-09-09T10:09:03.165441+09:30 webb kernel: input: LG SN5Y(3F) (AVRCP) as
/devices/virtual/input/input29
==> /var/log/syslog <==
2024-09-09T10:09:03.165441+09:30 webb kernel: input: LG SN5Y(3F) (AVRCP) as
/devices/virtual/input/input29
==> /var/log/Xorg.0.log <==
[ 374.839] (II) config/udev: Adding input device LG SN5Y(3F) (AVRCP)
(/dev/input/event23)
[ 374.839] (**) LG SN5Y(3F) (AVRCP): Applying InputClass "libinput keyboard
catchall"
[ 374.839] (II) Using input driver 'libinput' for 'LG SN5Y(3F) (AVRCP)'
[ 374.839] (**) LG SN5Y(3F) (AVRCP): always reports core events
[ 374.839] (**) Option "Device" "/dev/input/event23"
[ 374.839] (II) event23 - LG SN5Y(3F) (AVRCP): is tagged by udev as:
Keyboard
[ 374.839] (II) event23 - LG SN5Y(3F) (AVRCP): device is a keyboard
[ 374.840] (II) event23 - LG SN5Y(3F) (AVRCP): device removed
[ 374.856] (**) Option "config_info"
"udev:/sys/devices/virtual/input/input29/event23"
[ 374.856] (II) XINPUT: Adding extended input device "LG SN5Y(3F) (AVRCP)"
(type: KEYBOARD, id 18)
[ 374.856] (**) Option "xkb_model" "pc105"
[ 374.856] (**) Option "xkb_layout" "us"
[ 374.856] (WW) Option "xkb_variant" requires a string value
[ 374.856] (WW) Option "xkb_options" requires a string value
[ 374.856] (II) event23 - LG SN5Y(3F) (AVRCP): is tagged by udev as:
Keyboard
[ 374.857] (II) event23 - LG SN5Y(3F) (AVRCP): device is a keyboard
==> /var/log/auth.log <==
2024-09-09T10:09:06.143829+09:30 webb dbus-daemon[1249]: [system] Rejected
send message, 0 matched rules; type="method_return", sender=":1.54" (uid=1000
pid=2223 comm="/usr/bin/wireplumber" label="unconfined") interface="(unset)"
member="(unset)" error name="(unset)" requested_reply="0" destination=":1.6"
(uid=0 pid=1247 comm="/usr/libexec/bluetooth/bluetoothd" label="unconfined")
==> /var/log/Xorg.0.log <==
[ 377.795] (II) event23 - LG SN5Y(3F) (AVRCP): device removed
[ 377.804] (II) config/udev: removing device LG SN5Y(3F) (AVRCP)
[ 377.805] (II) UnloadModule: "libinput"
Ubuntu was incorrectly identifying the device as keyboard when it was
a speaker. Forcing the device to be identified as Speaker fixes the
problem:
Create /etc/udev/rules.d/99-bluetooth-speaker.rules with the following
content:
ACTION=="add", SUBSYSTEM=="input", ATTRS{name}=="LG SN5Y(3F) (AVRCP)",
RUN+="/bin/sh -c 'echo 0 >/sys/\$devpath/authorized'"
And restart Udev and Bluetooth services
sudo systemctl restart bluetooth
sudo udevadm control --reload-rules && sudo udevadm trigger
Additional Information:
$ dpkg -l | grep bluetooth
ii blueman 2.3.5-3build1
amd64 Graphical bluetooth manager
ii libbluetooth3:amd64 5.72-0ubuntu5
amd64 Library to use the BlueZ Linux Bluetooth stack
ii libspa-0.2-bluetooth:amd64 1.0.5-1ubuntu1
amd64 libraries for the PipeWire multimedia server - bluetooth
plugins
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.1 LTS
Release: 24.04
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: libbluetooth3 5.72-0ubuntu5
ProcVersionSignature: Ubuntu 6.8.0-41.41-generic 6.8.12
Uname: Linux 6.8.0-41-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: XFCE
Date: Mon Sep 9 10:56:48 2024
InstallationDate: Installed on 2024-08-09 (31 days ago)
InstallationMedia: Xubuntu 24.04 LTS "Noble Numbat" - Release amd64
(20240424.2)
InterestingModules: rfcomm bnep btusb bluetooth
MachineType: ASUS System Product Name
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.8.0-41-generic
root=UUID=3b1737ee-43b3-4d7e-883c-d9a669b249ae ro quiet splash vt.handoff=7
SourcePackage: bluez
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/22/2024
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 3607
dmi.board.asset.tag: Default string
dmi.board.name: ROG STRIX B550-F GAMING (WI-FI)
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias:
dmi:bvnAmericanMegatrendsInc.:bvr3607:bd03/22/2024:br5.17:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXB550-FGAMING(WI-FI):rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: ASUS
hciconfig:
hci0: Type: Primary Bus: USB
BD Address: C8:E2:65:61:61:87 ACL MTU: 1021:4 SCO MTU: 96:6
UP RUNNING
RX bytes:109778 acl:240 sco:0 events:12099 errors:0
TX bytes:875544 acl:216 sco:0 commands:11779 errors:0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/2079940/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp