Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Bluetooth Headphones
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Bluetooth Headphones
10th Jan, 2020, 10:01 AM (This post was last modified: 10th Jan, 2020 10:25 AM by deHakkelaar.)
Post: #3
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
RE: Bluetooth Headphones
Only need to run PA with xbian user privies:

Terminal
xbian@avr ~ $ ps -o user,cmd -C kodi.bin
USER CMD
xbian /usr/local/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd

I believe in the past, I added something like below to /etc/rc.local to have PA started before the xbian user logs in:

Code:
sudo -u xbian '/usr/bin/pulseaudio --start'

Could change it into more specific one from @Nachteule:

Code:
sudo -u xbian '/usr/bin/pulseaudio --start --system --log-target=syslog'

And add the /usr/bin/pulseaudio command to the sudoers list of commands in below file:

Terminal
xbian@avr ~ $ sudo cat /etc/sudoers.d/xbian
xbian ALL=(ALL) NOPASSWD: /sbin/initctl, /usr/local/sbin/xbian-config, /sbin/halt, /sbin/reboot, /usr/bin/splash, \
/usr/bin/renice, /sbin/start, /sbin/stop, /sbin/status, /bin/fuser, /sbin/restart, /usr/bin/pkill, /usr/sbin/btrfs-auto-snapshot, \
/bin/mount, /bin/umount, /bin/kill, /usr/local/sbin/splash-daemon, /bin/rm -fr /run/splash/splash.pid, /bin/mkdir -p -m 777 /run/splash, \
/usr/bin/setterm, /usr/bin/pulseaudio

Defaults env_keep+=http_proxy
Defaults env_keep+=LD_LIBRARY_PATH
Defaults env_keep+=LD_PRELOAD

What I miss in the instructions thread is selecting BT profile.
It could be that your headset defaults to low quality output profile with a mic input when connected at first.
You want to have the a2dp profile/sink (if headset supports) to get best quality.
Below ones might be useful once headset connected:

Code:
pacmd list-cards

pactl list cards

pactl list cards short

pactl list sinks

pactl list sinks short

For my Bose BT speaker, I had to do below to get the a2dp profile/sink activated:

Code:
pacmd set-card-profile bluez_card.00_0C_8A_XX_XX_XX a2dp_sink

pacmd set-default-sink bluez_sink.00_0C_8A_XX_XX_XX.a2dp_sink

Test with below:

Code:
pacat --list-file-formats

pacat < /dev/urandom

pacat --file-format=wav <A_RANDOM_WAV_FILE>

EDIT: added sudoers.

There are only 10 types of people in the world: those who understand binary, and those who don't
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Messages In This Thread
Bluetooth Headphones - degeulars - 5th Jan, 2020, 02:55 AM
RE: Bluetooth Headphones - Nachteule - 8th Jan, 2020, 02:15 AM
RE: Bluetooth Headphones - deHakkelaar - 10th Jan, 2020 10:01 AM
RE: Bluetooth Headphones - namarang - 21st Feb, 2021, 06:43 AM
RE: Bluetooth Headphones - hohoda - 10th Feb, 2022, 02:47 PM
RE: Bluetooth Headphones - oliverparker - 25th May, 2022, 08:53 PM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  headphones 1mile 2 11,371 26th Mar, 2013 07:15 AM
Last Post: 1mile

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 25th May, 2025, 07:24 AM Powered By MyBB, © 2002-2025 MyBB Group.