Article 5RXG9 Slackware(64) 14.2 - Someone had detailed tutorial how configure Bluetooh ?

Slackware(64) 14.2 - Someone had detailed tutorial how configure Bluetooh ?

by
inukaze
from LinuxQuestions.org on (#5RXG9)
Hi there again, like before i am trying to make a good configuration for Slackware(64) 14.2 using a new USB Doongle for connect Bluetooh

before i ask on this thread -> https://www.linuxquestions.org/quest...th-4175692230/

But i got the same situation.

I don't use "PulseAudio", "Avahi" and/or "SystemD", i don't understand why is the obsession of developers to put that 3 things like must be obligatory use on any GNU/Linux distro, when "Avahi" & "PulseAudio" are just optional components.

blueman can detect devices, but from the GUI i can't send/recieve files from bluetooh. because the option for send ever is disabled.

the weird is, if i use command-line with "blueman-sendto" i select file, the file is send correctly

trying to connect a bluetooth headphones N65S / N65BT, is trusted and paired, but i can't find the way to send audio from pc to headphones

The first thing i try was : Install the necesary packages :

Code:su -c 'echo -e "'"y\n"'" | slpkg -s slack --reinstall \
bluez bluez-firmware ; \
modprobe btusb ; ldconfig' root

su -c 'echo -e "'"y\n"'" | slpkg -s sbo --rebuild --reinstall \
pybluez bluez-alsa bluez-sixaxis blueman gnome-bluetooth ; \
ldconfig' root
Second i had create a file for "PIN" code :
Code:su -c 'editor /etc/bluetooth/pin' rootContent :
Quote:
1234
3 - Trying to enable the "send file" on "blueman-applet" on internet i saw an example to create the follow file

Code:su -c "editor /usr/bin/obex_thunar.sh" rootcontent :

Quote:
#!/bin/bash
[ ! -d "$HOME/Descargas/Bluetooh/" ] && mkdir "$HOME/Descargas/Bluetooh"
fusermount -u "$HOME/Descargas/Bluetooh"
obexfs -b $1 "$HOME/Descargas/Bluetooh"
thunar "$HOME/Descargas/Bluetooh"
Set permissions :
Code:su -c "chmod a+o+x /usr/bin/obex_thunar.sh" root
4 - On my searching i found this on some part of this forum :

Code:su -c 'editor /etc/udev/rules.d/50-start-bt-when-added.rules' rootContent
Quote:
# Al Detectar un dispositivo Bluetooth anadirlo a lista e iniciar el
# servicio.

SUBSYSTEM=="bluetooth", ACTION=="add", RUN+="/etc/rc.d/rc.bluetooth start"

# Opcionalmente detener el servicio bluetooh cuando un dispositivo es
# eliminado de la lista :
SUBSYSTEM=="bluetooth", ACTION=="remove", RUN+="/etc/rc.d/rc.bluetooth stop"
Code:su -c "mkdir -p /etc/alsa ; \
editor /etc/alsa/bluetooth.conf" rootQuote:
pcm.rawbluetooth {
@args [ ADDRESS ]
@args.ADDRESS {
type string
}
type bluetooth
device $ADDRESS
}

pcm.bluetooth {
@args [ ADDRESS ]
@args.ADDRESS {
type string
}
type plug
slave {
pcm {
type bluetooth
device $ADDRESS
}
}
}

Code:editor "$HOME/.asoundrc"content :

Quote:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1
pcm.btheadset {
type plug
slave {
pcm {
type bluetooth
device D0:6C:AA:6D:59:40
profile "auto"
}
}

hint {
show on
description "N65S"
}
}

ctl.btheadset {
type bluetooth
}
@hooks [
{
func load
files [
"/etc/alsa/bluetooth.conf"
]
errors false
}
]
pcm.btheadsetDmixed {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0666
slave {
pcm "btheadset"
period_time 0
period_size 2048
channels 4
}
bindings {
0 0
1 1
2 2
3 3
}
}
Restart

make a test with mplayer :

Code:mplayer -ao alsa:device=btheadset "$PWD/Test.mp4"output of mplayer :
Code:MPlayer 1.2.1-5.5.0 (C) 2000-2016 MPlayer Team

Playing /home/inukaze/Videos/Test.mp4.
libavformat version 56.40.101 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55c144b89660]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (vorbis), -aid 0, -alang und
VIDEO: [H264] 1152x864 24bpp 30.000 fps 2816.6 kbps (343.8 kbyte/s)
Clip info:
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
encoder: Lavf56.1.0
Load subtitles in /home/inukaze/Videos/
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 41.0 kbit/1.33% (ratio: 5120->384000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
[AO_ALSA] alsa-lib: dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_pcm_bluetooth.so
[AO_ALSA] Playback open error: No such device or address
Failed to initialize audio driver 'alsa:device=btheadset'
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 1152x864 => 1152x864 Planar YV12
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
V: 11.9 0/ 0 14% 111% 0.0% 0 0
well nothing i had try works for that 2 things
1 - send/recieve files from bluetooth devices
2 - send audio from pc to bluetooth headphones

after of 36 hours continues, i start to thing the developers of alsa really hate alsa, becuase just make much complex set up things should be easy.

i had read a lot of sites like :

https://forum.armbian.com/topic/6480...ot-pulseaudio/

https://www.linuxquestions.org/quest...pc-4175663681/

https://www.linuxquestions.org/quest...iphone-816003/

https://github.com/Arkq/bluez-alsa

https://www.linuxquestions.org/quest...e4-4175533364/

https://www.linuxquestions.org/quest...2/#post5095749

https://www.linuxquestions.org/linux...lackware_HOWTO

Well nothing looks like works, and i not going to install pulseaudio, is preferible install Windows before install PulseAudio / SystemD and/or Avahi, because make a GNU/Linux distros works too much similar to Windows ME + Vista + 8.1.latest?d=yIl2AUoC8zA latest?i=VuGygtfCks0:MDbwihZQZOg:F7zBnMy latest?i=VuGygtfCks0:MDbwihZQZOg:V_sGLiP latest?d=qj6IDK7rITs latest?i=VuGygtfCks0:MDbwihZQZOg:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments