2015年12月23日 星期三

Broadcom BCM943142HM Bluetooth A2DP on Ubuntu15.10

Wifi:
Just install the restricted drivers

Bluetooth:(Alternative Link)
Method 1.
                a. Download Bluetooth hcd
                b. sudo cp "xxx.hcd" /lib/firmware/brcm/BCM.hcd
                c. sudo modprob -r btusb
                d. sudo modprob btusb
Method 2.
                a. Try to get BCMxxx.hex from windows OS(C:\windows\system\driver)
                b. git clone git://github.com/jessesung/hex2hcd.git
                c. cd hex2hcd
                d. make
                e. ./hex2hcd BCMxxx.hex BCM.hcd
                f. sudo cp "BCM.hcd" /lib/firmware/brcm/
                g. sudo modprob -r btusb
                h. sudo modprob btusb


PS: 12/24  測試A2DP(參考),Ubuntu建議安裝blueman, pavucontrol
由於我是使用Ubuntu gnome以及Pulseaudio因此其他DM我不確定是否也能使用步驟2,3
1. sudo apt-get install blueman, pavucontrol

2. sudo vim /var/lib/gdm/.config/pulse/client.conf (沒有的話直接新增)
    然後將以下內容貼上:
    autospawn = no                                                       
    daemon-binary = /bin/true

3. sudo chown gdm:gdm /var/lib/gdm/.config/pulse/client.conf
    (看你用哪種DM就試試看改成你使用的(把gdm改掉))

4. sudo vim /etc/pulse/default.pa
    新增:
    load-module module-switch-on-connect

完成後一定要重新開機,並且使用blueman來連線,使用pavucontrol改聲音設定


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
另一個解法(source):
Edit the file:
/etc/pulse/default.pa
and comment out (with an # at the beginning of the line) the following line:
#load-module module-bluetooth-discover
now edit the file:
/usr/bin/start-pulseaudio-x11
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.

沒有留言:

張貼留言