Hello Everybody!
I am trying to get sound through USB to work but am encountering some problems.
My environment:
- Version: 13.1-RELEASE-p2
- Device: Lenovo Thinkpad T460
- Bluetooth Adapter: Integrated in Intel Wireless 6280
- Headphones: Anker Soundcore P3
This is how I am trying to set things up. Commented-Out lines show what things I've found and tried - without success - in bug reports and other forum posts.
"headphones" is aliased to the BT_ADDR of my bluetooth headphones and they connect fine, however when trying to attach with virtual_oss I get the error that can be seen in the latter bit of the output. This will loop endlessly until Ctrl-C'ed.
Maybe someone has an Idea how this could be solved? I sadly don't have any other Bluetooth devices to test this with.
I am trying to get sound through USB to work but am encountering some problems.
My environment:
- Version: 13.1-RELEASE-p2
- Device: Lenovo Thinkpad T460
- Bluetooth Adapter: Integrated in Intel Wireless 6280
- Headphones: Anker Soundcore P3
This is how I am trying to set things up. Commented-Out lines show what things I've found and tried - without success - in bug reports and other forum posts.
Code:
#!/bin/sh
# service hcsecd stop
# rm /var/db/hcsecd.keys
service hcsecd onestart
service bluetooth restart ubt0
hccontrol -n ubt0hci create_connection headphones
# sysctl hw.snd.basename_clone=0
# trap "sysctl hw.snd.basename_clone=1" INT
virtual_oss -S -C 2 -c 2 -r 44100 -b 16 -s 1024 -R /dev/null -P /dev/bluetooth/headphones -T /dev/sndstat -d dsp4
"headphones" is aliased to the BT_ADDR of my bluetooth headphones and they connect fine, however when trying to attach with virtual_oss I get the error that can be seen in the latter bit of the output. This will loop endlessly until Ctrl-C'ed.
Code:
❯ doas bt-headphones
Password:
hcsecd already running? (pid=7998).
BD_ADDR: headphones
Connection handle: 256
Encryption mode: Disabled [0]
backend_bt: PSM=0x19
backend_bt: Could not connect to HC: 5
backend_bt: PSM=0x19
backend_bt: Could not connect to HC: 5
Maybe someone has an Idea how this could be solved? I sadly don't have any other Bluetooth devices to test this with.