Linux mint bluetooth колонка

[РЕШЕНО] 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 ничего перезапускать не нужно. Звук должен появиться по всех приложениях.

  • Звук теперь идёт на новое устройство, а регулирование уровня звука осуществляется всё ещё на старом устройстве (т.е. на звуковой карте по умолчанию). Попробуем переставить регулятор на новое устройство: На самом деле, регулирование уровня звука на Bluetooth-устройстве с компьютера не всегда возможно. Вы можете увидеть следующее сообщение об ошибке: Оно говорит о том, что устройство не поддерживает регулировку уровня звука. В таком случае ничего не остаётся, кроме как на устройстве выставить звук на максимум вручную, а регулировку на компьютере осуществлять программным образом. Для этого существует плагин softvol : Созданный канал будет будет виден в alsamixer и других утилитах, связанных с ALSA. Можно вместо создания канала «Bluetooth» заместить один из существующих каналов, например «PCM». Можно попробовать заместить и «Master», но это чревато проблемами, лучше не надо. В приложениях можно настроить регулируемый по умолчанию канал, например в mplayer для этого есть опция —mixer-channel= .
  • Часть 2. Bluetooth + звуковая карта + ALSA

    Данная конфигурация исключает использование звукового устройства более чем одной программой единовременно. При попытке это сделать появится следующее сообщение об ошибке: Сведение звука от разных программ в одно устройство называется микшированием (mixing). На первый взгляд, микширование не самая необходимая вещь на свете — никто ведь не станет слушать два музыкальных трека одновременно. Звуки различных нотификаций тоже не очень нужны. Но просмотр видео в браузере через flash без микширования сулит юзеру страдания. Дело в том, что плагин от Adobe крайне неохотно «отпускает» звуковое устройство после нажатия паузы. Может пройти около 10 секунд, прежде чем устройство станет доступно другим программам. Само собой, если запустить видео в браузере при работающем mplayer , плагин будет работать без звука. Если закрыть mplayer, звук в браузере не появится до тех пор, пока вы не перезагрузите страницу с видео. Аналогичные эффекты возникают, если в роли mplayer выступает другое окно браузера с другим видео.

    Читайте также:  Сведение операционных систем linux

    Короче говоря, микширование необходимо. В давние времена звуковые карты обладали возможностью аппаратного микширования, но на подавляющем большинстве современных карт такой возможности нет, тем более на портативных 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

    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.
    .

    Читайте также:  Компьютер перезагружается после логотипа windows

    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

    Читайте также:  Chrome windows 10 google com

    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

    Источник

    Оцените статью