- [РЕШЕНО] Bluetooth и Linux Mint 17.1 XFCE
- Есть табак, да нечем нюхать
- воскресенье, 15 июня 2014 г.
- Звук на Linux по Bluetooth
- Часть 1. Bluetooth + ALSA
- Часть 2. Bluetooth + звуковая карта + ALSA
- Linux Mint Forums
- Bluetooth audio not working
- Bluetooth audio not working
- Re: Bluetooth audio not working
- Re: Bluetooth audio not working
- Re: Bluetooth audio not working
- Re: Bluetooth audio not working
- No sound from bluetooth headset, but it’s detected
- 8 Answers 8
- Linux Mint Forums
- Bluetooth Audio
- Bluetooth Audio
- Re: Bluetooth Audio
- Re: Bluetooth Audio
- Re: Bluetooth Audio
- Re: Bluetooth Audio
- Re: Bluetooth Audio
- Re: Bluetooth Audio
[РЕШЕНО] Bluetooth и Linux Mint 17.1 XFCE
#1 — 30 января 2016 в 20:50 |
В общем проблема известная, вот правду говорят — работает — НЕ ТРОГАЙ!
Надоел мне МАТЕ, слишком много всяких мелочей на протяжении года использования начали напрягать, стал поглядывать назад на XFCE. До этого стояла моя школьная сборка на 17.1 МАТЕ, но мне захотелось 17.3 XFCE да еще 64 бит. Сказано — сделано, установил, настроил, все, думаю, работает, но не тут-то было. С завидной периодичностью компьютер зависал при запущенном Chrome, заменил ядро, но это проблему не решило только периоды стали длиннее. Кроме того bluetooth стал настолько нестабильным, что можно считать что его нет (использую bluetooth-наушники). Перелопатил кучу чтива в интернете и выяснил, что с этим проблемы не только у меня и решил вернуться на 17.1 но на XFCE, но проблемы не закончились (видно на МАТЕ-версии работа bluetooth лучше реализована), Chrome работает прекрасно и стабильно, а вот с наушниками я «танцую».
================================================================
В принципе, они (наушники) работают, вернее bluetooth работает но только после того как я в терминале выполняю запуск модулей
pactl load-module module-bluetooth-discover
но ведь это не очень хорошо, должно работать без моего участия, подключил — и наслаждаешься.
Что я пробовал:
1. Прописал в автозагрузку в «Сеансы и запуск» как описано здесь, результат 0.
2. Пробовал сделать как описано тут
and comment out (with an # at the beginning of the line) the following line:
now edit the file:
and after the lines:
if [ x”$SESSION_MANAGER” != x ] ; then
/usr/bin/pactl load-module module-x11-xsmp “display=$DISPLAY session_manager=$SESSION_MANAGER” > /dev/null
fi
add the following line:
/usr/bin/pactl load-module module-bluetooth-discover
This way the Pulse audio’s Bluetooth modules will not be downloaded at boot time but after x11 is started.
результат — один раз что-то получилось, только при условии, что наушники были включены во время загрузки ноутбука, а потом обнаружил, что все мои изменения пропали и содержимое файла остается как до изменений.
3. Создавал файл в /etc/xdg/autostart/ *.desktop , результат 0.
Вопрос: куда эту команду можно еще «впихнуть»?
Источник
Есть табак, да нечем нюхать
воскресенье, 15 июня 2014 г.
Звук на Linux по Bluetooth
Часть 1. Bluetooth + ALSA
/.asoundrc , по желанию. В простейшем варианте содержимое этого файла будет выглядеть так: После создания /etc/asound.conf ничего перезапускать не нужно. Звук должен появиться по всех приложениях.
Часть 2. Bluetooth + звуковая карта + ALSA
Данная конфигурация исключает использование звукового устройства более чем одной программой единовременно. При попытке это сделать появится следующее сообщение об ошибке: Сведение звука от разных программ в одно устройство называется микшированием (mixing). На первый взгляд, микширование не самая необходимая вещь на свете — никто ведь не станет слушать два музыкальных трека одновременно. Звуки различных нотификаций тоже не очень нужны. Но просмотр видео в браузере через flash без микширования сулит юзеру страдания. Дело в том, что плагин от Adobe крайне неохотно «отпускает» звуковое устройство после нажатия паузы. Может пройти около 10 секунд, прежде чем устройство станет доступно другим программам. Само собой, если запустить видео в браузере при работающем mplayer , плагин будет работать без звука. Если закрыть mplayer, звук в браузере не появится до тех пор, пока вы не перезагрузите страницу с видео. Аналогичные эффекты возникают, если в роли mplayer выступает другое окно браузера с другим видео.
Короче говоря, микширование необходимо. В давние времена звуковые карты обладали возможностью аппаратного микширования, но на подавляющем большинстве современных карт такой возможности нет, тем более на портативных Bluetooth-устройствах. Поэтому драйверы звука обзавелись поддержкой программного микширования. В ALSA соответствующий плагин называется Dmix:
Устройство wire_dmix даёт возможность запускать сколько угодно mplayer -ов с ключом
—ao=alsa:device=wire_dmix , и звук от всех будет микшироваться. Но попробуем сделать то же самое с Bluetooth-устройством: При попытке проиграть что-либо на устройство bt_dmix выводится следующая ошибка: Это ошибку не обойти. Попытка навесить dmix на устройство both вместо bt ничего не даст. Dmix работает только со звуковыми картами, а с Bluetooth он не работает, и вряд ли будет.
Выход — признать, что звуковой сервер Pulseaudio — не бесполезная прослойка, и использовать его. Микширование на Pulseaudio универсально для любых устройств, в т.ч. для работающих под управлением ALSA.
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
Bluetooth audio not working
Bluetooth audio not working
Post by dimi » Fri Jan 04, 2013 7:44 am
I have trouble connecting my LMDE laptop to my car stereo via bluetooth.
The car stereo shows up in my Bluetooth devices, but I cannot connect. And when I try to connect from my car stereo, my laptop shows up but it cannot connect either.
I can’t remember how, but before on my laptop it did say it was connected to the car stereo, I must have been able to pair them before, but even then I wasn’t able to play audio via the car stereo and on the stereo it said no bluetooth audio device was connected. My car stereo is a JVC KD-X50BT.
Re: Bluetooth audio not working
Post by dimi » Thu Feb 07, 2013 2:51 pm
Re: Bluetooth audio not working
Post by hunternet93 » Sun Feb 17, 2013 7:39 pm
Connect your headset with the bluetooth applet, then click the applet, select your headset, and click the «Open sound preferences» item. Your headset should show up as disabled in the devices menu, select «High Fidelity Playback» from the Profile menu to enable it. Then under Output select it as the default output. For some reason the «Test speakers» button didn’t make any sound for me, but audio worked from everything else. Now I can wander about my room and still get sound from my computer! Hope this helps someone else. I used this post to figure this out: http://www.funzt.info/?p=783
EDIT: Missed a step. It’s there now.
Re: Bluetooth audio not working
Post by krige » Fri Feb 21, 2014 7:06 am
I did not need to edit the /etc/bluetooth.d/audio.conf file (the file doesn’t actually exist).
The audio comes very badly from the headphones though, and it is probably due to the fact that it’s currently working in «Telephony Duplex (HSP/HFP)» mode. The other mode, «High Fidelity Playback (A2DP)», appears in the list, I can select it but it doesn’t seem to be «activated»: if I close the Sound Settings panel and open it again, the «Telephony Duplex (HSP/HFP)» mode appears selected again.
Re: Bluetooth audio not working
Post by ergoman » Thu Apr 17, 2014 10:55 pm
^^ This solution worked for me to get A2DP working
Источник
No sound from bluetooth headset, but it’s detected
I have an bluetooth headset connected to my computer, the buttons play/pause/volume are working fine, but I have no sound in the headset, but in the speaker of the computer.
In fact, I played with the sound settings of my headset in the sound settings of Ubuntu, and after choosing «switch off», the headset did «disappear» from the settings.
My question is: how can I make it appear there again, to be able to hear the sound via the headset? Thank you all for your help!
8 Answers 8
For some more settings I would advice to install pavucontrol. It saved me some troubles diagnosing sound issues. It also will list any possible output where Ubuntu sound sometimes forgets to show outputs that should be available (though it keeps getting better: HDMI used to not show up; 1 update after 12.10 release it started showing up.
You too will be able to find your headset and control it from here.
If I recall correctly after I used pavucontrol to activate my hdmi ubuntu control picked it up too (but that might have been caused by an update too). Otherwise do not use Ubuntu sound settings but switch to this program since it also has far more options.
Command line install
Try this script: a2dp.py
Terminating the PulseAudio daemon with pulseaudio -k did the trick. Headset started appearing.
Kill an already running PulseAudio daemon of the calling user (Equivalent to sending a SIGTERM).
With the latest Ubuntu version (15.10) the bluetooth headphone are recognized but not available into pavucontrol. For enable it after some test I found the simple solution!
Install bluetooth package then reboot the bluetooth service and now the headphone are visible.
sudo apt-get install bluetooth
sudo systemctl restart bluetooth
I am relatively new to the Linux world, but have had no major issues converting from Windows. Please be patient with my explanation because I wrote it with a brand new person to Linux in mind. I have fallen in love with Linux and wish for other «newbies» to do the same 🙂
For someone converting from windows. powerful «sudo» commands that are entered without understanding of their meaning. may quickly lead to a fresh re-install of one’s favorite flavor of Linux. I speak from experience. If you are new to Linux, especially switching from Windows, it is important to know that not all hardware is compatible and to make it even more interesting, Linux “distros” are also not equal. I am currently using Linux Mint 17.1 KDE, which is more or less a derivative of Canonical’s Ubuntu. For example, if you didn’t know, most HP printers are recognized immediately and effortlessly within Linux because of the the wonderful HPLIP opensource project. Just connect and turn on your HP printer, then go to printer settings within Ubuntu or Linux mint 17.1 and simply add your HP printer (which should be already listed).
A little research first will definitely save a huge headache later. 🙂
I tried using my Insignia Bluetooth Receiver in the past, but had no luck on Mint or Ubuntu, while my newly bought Kensington Bluetooth 4.0 dongle #K33956AM was recognized and paired seamlessly with my other devices. It was able to list the exact device name along with the MAC address. Unfortunately, I had NO SOUND. 🙁 I double checked it was not my system. My computer played the music file normally though my built-in analog stereo hardware. 🙁
I read what the awesome and helpful people stated above, but went though the graphical interface instead of using the terminal (I’ve used windows for the past 20 years, what can I say. LOL) I went to System Settings/Multimedia/Audio and Video Settings and discovered my Analog stereo hardware received priority over my Bluetooth hardware. I first attempted to change the priority of the devices within the «Audio Playback Device Preference for ‘Music’ Category» but this did not fix my sound.
THEN I DISCOVERED THE SOLUTION TO MY PROBLEM. I changed the priority of devices in the «Audio Playback Device Preference for ‘Video’ Category» and BINGO. 🙂 🙂 🙂 This worked perfectly. For some reason the video setting also controls the music. I changed all pertinent settings to make my Bluetooth have priority and have not had any further issues since that point. Hope this helps. 🙂
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
Bluetooth Audio
Bluetooth Audio
Post by tsmvp » Mon Jul 29, 2019 1:51 am
Linux Mint newbie here. Even though I have used Linux in the past, that was a very, very long time ago, back in the day when LibreOffice was called StarOffice and was a paid product. LOL. Bluetooth was not even a thing. So after years of using Windows, I decided to give Mint a try and fell in love. Amazing. All I need is there with the exception of a few apps (took care of that using CrossOver).
Hardware wise my Dell XPS 13 worked amazingly well out-of-the-box with Linux Mint 19.1. Touchscreen, etc. All work.
Bluetooth is the only issue so far. No matter what, I cannot get audio to work. Mouse/Keyboard working fine.
I tried several things (reading posts around here) and at one stage I got the headphones to pair but sound was stuttering like crazy, unusable.
Trying to fix that I am sure I broke something and now no matter what the headphones do not pair. The system does see the headphones and attempts to pair but never completes.
Any brave soul willing to help me? I can run whatever command to get the output for hardware, packages installed, etc.
I just want to fix this last bump on the road so I can fully enjoy Mint.
Re: Bluetooth Audio
Post by Destry » Tue Jul 30, 2019 3:57 am
Re: Bluetooth Audio
Post by wallyUSA » Tue Jul 30, 2019 9:08 pm
. I tried several things (reading posts around here) and at one stage I got the headphones to pair but sound was stuttering like crazy, unusable.
Trying to fix that I am sure I broke something and now no matter what the headphones do not pair. The system does see the headphones and attempts to pair but never completes.
.
I had the same problem with my Dell XPS 13 9343, using W10. Headphones paired but would never connect or make any sound. My guess is it requires a special driver. Sorry, this does not help but it seems to be a problem even with Windows 10 on the Dell XPS 13.
UPDATE — 31 July:
My XPS was still under warranty so what Dell did to fix it is, they replaced the BT/WiFi chip. Now it is working for W10 and VB/Mint 19.
Hope you find a easier solution. Let us know.
Re: Bluetooth Audio
Post by MrEen » Tue Jul 30, 2019 9:29 pm
Hi tsmvp, and welcome to the forum.
You (and others) may have better luck if you swap out Blueberry for Blueman as your Bluetooth Manager. That has been enough to fix quite a few people that had these issues. You can do this with the Software Manager, Synaptic Package Manager or the following terminal commands:
That last command will throw an error if the module is already loaded showing the following: Failure: Module initialization failed
Let’s us know if that was of any help. If it wasn’t, please include the output of inxi -Fxz in your next reply.
With that system, you might want to upgrade to the 5.x kernel. No idea if that’ll make any difference for your BT issues, but you’ll probably have better system support overall.
To all: In a day or two Mint 19.2 will be officially released. There will be an upgraded version of Blueberry included in that release, that may or may not fix your BT issues.
Good luck to all.
Re: Bluetooth Audio
Post by phd21 » Tue Jul 30, 2019 11:30 pm
Welcome to the wonderful world of Linux Mint and its excellent forum!
I just read your post and the good replies to it. Here are my thoughts on this as well.
It would help to know more about your system setup. If you run » inxi -Fxzd » and » lsusb » from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.
It may very well be that the Bluetooth driver is not installed or needs to be installed or configured or unblocked (if blacklisted). Some laptop combination WiFi and Bluetooth cards do not work well in Linux. You may even need to get another small USB Bluetooth 4.x adapter (recommend CSR), if you cannot get your existing BlueTooth working.
To see if anything is blocked (blacklisted)
My low-cost USB Bluetooth adapter (CSR v4.0) works well in Linux.
Hope this helps .
Re: Bluetooth Audio
Post by deepakdeshp » Wed Jul 31, 2019 1:18 am
If I have helped you solve a problem, please add [ SOLVED] t o your first post title , it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak
Mint 20.1 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20.1 Cinnamon AMD Ryzen3500U/8gb
Re: Bluetooth Audio
Post by tsmvp » Wed Jul 31, 2019 8:23 pm
Hi tsmvp, and welcome to the forum.
You (and others) may have better luck if you swap out Blueberry for Blueman as your Bluetooth Manager. That has been enough to fix quite a few people that had these issues. You can do this with the Software Manager, Synaptic Package Manager or the following terminal commands:
That last command will throw an error if the module is already loaded showing the following: Failure: Module initialization failed
Let’s us know if that was of any help. If it wasn’t, please include the output of inxi -Fxz in your next reply.
With that system, you might want to upgrade to the 5.x kernel. No idea if that’ll make any difference for your BT issues, but you’ll probably have better system support overall.
To all: In a day or two Mint 19.2 will be officially released. There will be an upgraded version of Blueberry included in that release, that may or may not fix your BT issues.
Good luck to all.
First of all thank you all for jumping in, trying to help. Really appreciated.
Couple comments regarding what I have done so far and the results:
1. Under Windows 10, it always worked. No issues there.
2. I tried removing blueberry and loading blueman. It removed and installed the other one successfully. I then ran the pactl command and it returned a number (24). Then I tried launching the Bluetooth Manager, deleting the headphones and adding them back. I was able to get them connected and I do see them now under ‘Sound’. They are listed as my Output Device, with the AD2P Sink profile. When I click ‘Test Sound’ I can hear the left and right sides but the sound does stutter. If I click ‘Sounds’ and play the login.oga sound, the stuttering is pretty bad. When setting it up, it gives me three options: Headset, Audio Sink and Handsfree. Not sure which one I must select and what exactly the difference is.
We are very close I think! The output of the inxi -Fxz is:
System:
Host: CR-Mint1 Kernel: 4.15.0-55-generic x86_64 bits: 64 compiler: gcc
v: 7.4.0 Desktop: Cinnamon 4.0.10 Distro: Linux Mint 19.1 Tessa
base: Ubuntu 18.04 bionic
Machine:
Type: Laptop System: Dell product: XPS 13 9350 v: N/A serial:
Mobo: Dell model: 0VM5NC v: A00 serial: UEFI: Dell v: 1.10.1
date: 01/22/2019
Battery:
ID-1: BAT0 charge: 13.4 Wh condition: 50.8/57.5 Wh (88%)
model: SMP DELL JHXPY53 status: Charging
CPU:
Topology: Dual Core model: Intel Core i7-6500U bits: 64 type: MT MCP
arch: Skylake rev: 3 L2 cache: 4096 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20736
Speed: 500 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 500 2: 500
3: 500 4: 500
Graphics:
Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Dell driver: i915
v: kernel bus ID: 00:02.0
Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa
resolution: 3200×1800
60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
v: 4.5 Mesa 19.2.0-devel (git-7f75b2b 2019-07-31 bionic-oibaf-ppa)
direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell
driver: snd_hda_intel v: kernel bus ID: 00:1f.3
Sound Server: ALSA v: k4.15.0-55-generic
Network:
Device-1: Broadcom and subsidiaries BCM4350 802.11ac Wireless Network
Adapter
vendor: Dell driver: brcmfmac v: kernel port: f040 bus ID: 3a:00.0
IF: wlp58s0 state: down mac:
Drives:
Local Storage: total: 476.94 GiB used: 100.23 GiB (21.0%)
ID-1: /dev/nvme0n1 vendor: Samsung model: PM951 NVMe 512GB
size: 476.94 GiB
Partition:
ID-1: / size: 28.04 GiB used: 11.64 GiB (41.5%) fs: ext4
dev: /dev/nvme0n1p2
ID-2: /home size: 432.29 GiB used: 88.58 GiB (20.5%) fs: ext4
dev: /dev/nvme0n1p4
ID-3: swap-1 size: 7.63 GiB used: 0 KiB (0.0%) fs: swap
dev: /dev/nvme0n1p3
Sensors:
System Temperatures: cpu: 53.5 C mobo: 27.8 C
Fan Speeds (RPM): N/A
Info:
Processes: 260 Uptime: 23h 04m Memory: 15.53 GiB used: 3.48 GiB (22.4%)
Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20
inxi: 3.0.27
Источник