web-dev-qa-db-fra.com

Bluetooth sur Lenovo Ideapad S20-30

Aujourd'hui, j'ai installé Ubuntu sur mon Lenovo S20-30 et la plupart des choses fonctionnent mais je ne peux pas utiliser le bluetooth. Dans les préférences du système, je peux changer le commutateur Bluetooth sur "on" mais quand je reviens au volet, il est à nouveau "off". De plus, le symbole Bluetooth est manquant dans la barre de menus, la case dans le volet pref est également cochée.

Étant donné que je suis complètement nouveau dans le monde Linux, je ne sais pas de quelles informations supplémentaires vous avez besoin pour un diagnostic, mais voici quelques-unes qui peuvent peut-être vous aider:

$ dmesg | grep Bluetooth
[   14.677429] Bluetooth: Core ver 2.19
[   14.677466] Bluetooth: HCI device and connection manager initialized
[   14.677477] Bluetooth: HCI socket layer initialized
[   14.677481] Bluetooth: L2CAP socket layer initialized
[   14.677497] Bluetooth: SCO socket layer initialized
[   14.723428] Bluetooth: RFCOMM TTY layer initialized
[   14.723443] Bluetooth: RFCOMM socket layer initialized
[   14.723451] Bluetooth: RFCOMM ver 1.11
[   15.038890] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.038895] Bluetooth: BNEP filters: protocol multicast
[   15.038905] Bluetooth: BNEP socket layer initialized

et

$ Sudo rfkill list
0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: ideapad_bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
2: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
3: brcmwl-0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

et

$ Sudo lsmod | grep bluetooth
bluetooth             446409  10 bnep,rfcomm
6lowpan_iphc           18702  1 bluetooth

et

$ uname -a; lsusb
Linux tobis-lenovo 3.16.0-31-generic #43~14.04.1-Ubuntu SMP Tue Mar 10 20:13:38 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 105b:e065  
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 002: ID 5986:054a Acer, Inc 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

formulaire de sortie du script de Jeremy31:

$ dmesg | tail -15
[   18.881813] cfg80211:   (5470000 KHz - 5725000 KHz @ 40000 KHz), (N/A, 2698 mBm), (0 s)
[   18.881816] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   22.074707] init: plymouth-upstart-bridge main process ended, respawning
[   22.100053] init: plymouth-upstart-bridge main process ended, respawning
[   45.348105] audit_printk_skb: 135 callbacks suppressed
[   45.348111] audit: type=1400 audit(1427026413.699:72): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2333 comm="apparmor_parser"
[   45.348126] audit: type=1400 audit(1427026413.699:73): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2333 comm="apparmor_parser"
[   45.349128] audit: type=1400 audit(1427026413.699:74): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2333 comm="apparmor_parser"
[  154.979500] systemd-hostnamed[2562]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 1063.242591] systemd-hostnamed[8556]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 2549.195081] systemd-hostnamed[16264]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 2712.987102] usbcore: registered new interface driver btusb
[ 2713.065862] bluetooth hci0: Direct firmware load failed with error -2
[ 2713.065868] bluetooth hci0: Falling back to user helper
[ 2713.141987] Bluetooth: hci0: BCM: patch brcm/BCM43142A0-105b-e065.hcd not found
1
Tobi

Ok celui-ci n'est pas encore correctement pris en charge dans le noyau mais une solution assez facile

Sudo apt-get install build-essential linux-headers-generic
wget https://www.dropbox.com/s/0rmgeve2ibrh1u1/bluetooth-3.16-2.tar.gz
wget https://www.dropbox.com/s/f503f6r686riiow/fw-105b_e065.hcd
tar -zxf bluetooth-3.16-2.tar.gz
cd bluetooth-3.16-2
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
Sudo modprobe -r btusb && Sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
Sudo modprobe btusb

Ensuite, je dois voir ce qu'il attend pour voir le fichier du firmware nommé, alors ajoutez le résultat de dmesg | tail -15 pour que je puisse modifier cette réponse

Maintenant que nous savons ce que le firmware doit être nommé cd ~ et Sudo cp fw-105b_e065.hcd /lib/firmware/brcm/BCM43142A0-105b-e065.hcd puis

Sudo modprobe -r btusb
Sudo modprobe btusb
echo btusb | Sudo tee -a /etc/modules

Et le dmesg | tail les résultats devraient changer et le bluetooth devrait fonctionner correctement

Après une mise à jour du noyau, le bluetooth cessera probablement de fonctionner, alors vous devez

cd bluetooth-3.16-2
make -C /lib/modules/$(uname -r)/build M=$PWD clean
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
Sudo modprobe -r btusb && Sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
Sudo modprobe btusb

Et vous devriez aller jusqu'à la prochaine mise à jour

1
Jeremy31