LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2021, 04:51 PM   #1
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 271

Rep: Reputation: 26
Question Slackware(64) 14.2 - Someone had detailed tutorial how configure Bluetooh ?


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' root
Content :
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" root
content :

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' root
Content
Quote:
# Al Detectar un dispositivo Bluetooth añadirlo 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" root
Quote:
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect Bluetooh QuietComfort 35 in Slackware 14.2 qlands Slackware 3 12-11-2016 12:26 PM
Gsm antena / Gsm / Wifi / Bluetooh dangerous? level of energy, all you should know frenchn00b General 8 07-08-2009 03:06 PM
Micro. XP: Who can use bluetooh Handset with SKYPE VOIP (hearing + Mic) ? frenchn00b General 0 07-01-2009 04:10 PM
How to use whatever Bluetooh Phone Headset with windows XP? frenchn00b General 5 06-13-2009 11:05 PM
Looking for bluetooh mouse and keyboard that works well with linux swalker23 Linux - Hardware 5 10-17-2008 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration