Résolu le 4-03-23 Faire fonctionner bluetooth sur Asus X205TA

Postez ici toutes vos demandes d’assistance générale concernant le fonctionnement de Linux Mint, qui n'entrent pas dans les autres rubriques.
Répondre
alai42
Messages : 7
Enregistré le : sam. 25 févr. 2023 00:04

Faire fonctionner bluetooth sur Asus X205TA

Message par alai42 »

Asus X205TA Processeur Intel Atom Z3735 (Quad-Core 1.33 GHz)
Système d'exploitation 32 bits, processeur x64 RAM 2,00 Go
eMMC 32 Go
- Linux Mint 20.3 Xfce
noyau : uname -r
5.4.0-139-generic

*********************************************
Bonjour,

Le son du asus X205TA sature depuis peu, après avoir remplacé windows 8.1 par Linux Mint. Il faut peut-être actualiser le pilote, mais je n'ai pas de compétences en la matière. PulseEffects ne donne pas de résultats. Je tente l'utilisation de Bluetooth pour avoir un son de qualité.

J'ai installé Blueman à partir de la logithèque pour paramétrer Bluetooth. Je n'arrive pas à m'en servir.
L'enceinte Bluetooth n'est pas détectée alors que la connexion était parfaite avant que je remplace windows 8.1.

Une aide serait bienvenue, merci d'avance.

brcmfmac43340-sdio.bin
brcmfmac43340-sdio.bin
sont dans /lib/firmware/brcm/

***********************************************
sudo dmesg | grep -i bluetooth; sudo dmesg | grep -i firmware;

9.157438] Bluetooth: hci0: BCM43341B0 (002.001.014) build 0000
[ 9.172556] bluetooth hci0: Direct firmware load for brcm/BCM43341B0.hcd failed with error -2
[ 9.172576] Bluetooth: hci0: BCM: Patch brcm/BCM43341B0.hcd not found
[ 11.9
................
9.172556] bluetooth hci0: Direct firmware load for brcm/BCM43341B0.hcd failed with error -2
[ 9.879855] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-X205TA.txt failed with error -2
[ 10.071771] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43340/2 wl0: Oct 23 2017 08:41:23 version 6.10.190.70 (r674464) FWID 01-98d71006
ag@ag-X205TA:~$
*****************************************************

Il semblerait qu'il faut ajouter BCM43341B0.hcd dans brcm.
J'ai exécuté la commande "harryharryharry" pour x205ta bluetooth, elle est entrée en conflit avec Blueman/bluetooth. les icônes ne n'ont plus été activables. Peut-être que la ligne de commande n'est pas apropriée ?

Commande exécutée dans le terminal :
sudo wget https://raw.githubusercontent.com/harry ... 3341B0.hcd -O /lib/firmware/brcm/BCM43341B0.hcd

J'ai fait une nouvelle installation complète de Mint pour corriger le dysfonctionnement.

adresse du site"harryharryharry" : Distro-agnostic installation guide.

https://ubuntuforums.org/showthread.php?t=2379657

*************************************************

3. How to gain bluetooth connectivity
The internal bluetooth chip needs a file called /lib/firmware/brcm/BCM43341B0.hcd and a running bluetooth service and a running btattach command (for which you can also

*****************************************************

Que signifie le contenu du cadre sous "Create a file called /etc/systemd/system/btattach.service with the following contents:" ?
*****************************************************
[Unit]
Description=Btattach

[Service]
Type=simple
ExecStart=/usr/bin/btattach --bredr /dev/ttyS1 -P bcm
ExecStop=/usr/bin/killall btattach

[Install]
WantedBy=multi-user.target
*****************************************************

C'est à compiler ? comment procéder ?

Cette création conditionne les commandes suivantes : "# (re)start the services with ..."

Encore merci pour toute aide.
alai42
Messages : 7
Enregistré le : sam. 25 févr. 2023 00:04

Re: Faire fonctionner bluetooth sur Asus X205TA

Message par alai42 »

bonjour cyrille,

Merci pour cette méthodologie. J'ai exécuté la commande sudo nano /etc/systemd/system/btattach.service.

Avec nano,le fichier est créé avec une extension .save
J'ai efectué de nombreuses tentatives pour obtenir la seule extension btattach.service, sans succès.

btattach.service.save
(...)
ag@ag-X205TA:~$ sudo systemctl restart btattach
[sudo] Mot de passe de ag :
Failed to restart btattach.service: Unit btattach.service not found.
ag@ag-X205TA:~$
*************************************
sudo rename /etc/systemd/system/btattach.service.save => marche pas
*************************************
Est-ce qu'il y a possibilité avec une commande dans le terminal avec les droits d'administration
1/ de supprimer l'extension .save ?
2/ de lire le contenu du fichier pour vérifier s'il n'est pas corrompu ?

Merci d'avance,
Bonne journée


******************************************************
wget https://framagit.org/CyrilleBiot/wifi-i ... in/wifi.sh
sudo bash wifi.sh
(...)
Kernel :
Linux ag-X205TA 5.4.0-139-generic #156-Ubuntu SMP Fri Jan 20 17:27:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux


Kernel(s) installé(s) :
ii linux-image-5.4.0-139-generic 5.4.0-139.156 amd64 Signed kernel image generic
ii linux-image-5.4.0-91-generic 5.4.0-91.102 amd64 Signed kernel image generic
ii linux-image-generic 5.4.0.139.137 amd64 Generic Linux kernel image
*****************************************************************************************************************************
alai42
Messages : 7
Enregistré le : sam. 25 févr. 2023 00:04

Re: Faire fonctionner bluetooth sur Asus X205TA

Message par alai42 »

Bonjour Cyrill,

J'ai achevé d'appliquerles commandes des différentes étapes du tuto harryharryharry - 3. How to gain bluetooth connectivity.
https://ubuntuforums.org/showthread.php?t=2379657

*******************************************************
I/ btattach

Code : Tout sélectionner

ag@ag-X205TA:~$ sudo systemctl status btattach
........
● btattach.service - Btattach
     Loaded: loaded (/etc/systemd/system/btattach.service; disabled; vendor pre>
     Active: failed (Result: exit-code) since Mon 2023-02-27 14:04:12 CET; 1min>
    Process: 3642 ExecStart=/usr/bin/btattach --bredr /dev/ttyS1 -P bcm (code=e>
   Main PID: 3642 (code=exited, status=1/FAILURE)
*******************************************
if the service btattach failed but btattach is installed, try changing /dev/ttyS1 to /dev/ttyS4 and reload and restart the service)
sudo mv /dev/ttyS1 /dev/ttyS4 => fait
*******************************************

Code : Tout sélectionner

ag@ag-X205TA:~$ sudo systemctl enable btattach
[sudo] Mot de passe de ag :        

ag@ag-X205TA:~$ sudo systemctl enable bluetooth
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth

ag@ag-X205TA:~$ sudo systemctl status btattach
● btattach.service - Btattach
     Loaded: loaded (/etc/systemd/system/btattach.service; enabled; vendor pres>
     Active: failed (Result: exit-code) since Tue 2023-02-28 09:20:56 CET; 27mi>
   Main PID: 483 (code=exited, status=1/FAILURE)

févr. 28 09:20:56 ag-X205TA systemd[1]: Started Btattach.
févr. 28 09:20:56 ag-X205TA btattach[483]: Failed to flush serial port: Input/o>
févr. 28 09:20:56 ag-X205TA btattach[483]: No controller attached
févr. 28 09:20:56 ag-X205TA btattach[483]: Attaching Primary controller to /dev>
févr. 28 09:20:56 ag-X205TA systemd[1]: btattach.service: Main process exited, >
févr. 28 09:20:56 ag-X205TA systemd[1]: btattach.service: Failed with result 'e>
lines 1-11/11 (END)...skipping...
● btattach.service - Btattach
     Loaded: loaded (/etc/systemd/system/btattach.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-02-28 09:20:56 CET; 27min ago
   Main PID: 483 (code=exited, status=1/FAILURE)

févr. 28 09:20:56 ag-X205TA systemd[1]: Started Btattach.
févr. 28 09:20:56 ag-X205TA btattach[483]: Failed to flush serial port: Input/output error
févr. 28 09:20:56 ag-X205TA btattach[483]: No controller attached
févr. 28 09:20:56 ag-X205TA btattach[483]: Attaching Primary controller to /dev/ttyS1
févr. 28 09:20:56 ag-X205TA systemd[1]: btattach.service: Main process exited, code=exited, status=1/FAILURE
févr. 28 09:20:56 ag-X205TA systemd[1]: btattach.service: Failed with result 'exit-code'.

lines 1-11/11 (END)
II/ BCM43341B0.hcd

# Download the firmware file to the right location
sudo wget https://raw.githubusercontent.com/harry ... 3341B0.hcd -O /lib/firmware/brcm/BCM43341B0.hcd

Après exécution de la commande, il y a eu création d'un confit => les icônes blueman ne sont plus disponibles.
Suppression :

sudo rm /lib/firmware/brcm/BCM43341B0.hcd

-*- Ordinateur redémarré - L'icône Blueman s'affiche à nouveau.
*******************************************

Etape suivante :
BCM43341B0.hcd

https://github.com/Asus-T100/firmware/b ... 3341B0.hcd
j'ai téléchargé BCM43341B0.hcd Je l'ai placé dans "ag"
*******************************************
Commande

sudo cp /home/ag/BCM43341B0.hcd /lib/firmware/brcm/BCM43341B0.hcd

ag@ag-X205TA:~$ sudo cp /home/ag/BCM43341B0.hcd /lib/firmware/brcm/BCM43341B0.hcd
[sudo] Mot de passe de ag :
ag@ag-X205TA:~$

.... conflit avec blueman => suppression
sudo rm /lib/firmware/brcm/BCM43341B0.hcd
*******************************************
III/ HiFi.conf

Regarding audio, probably /usr/share/alsa/ucm/chtrt5645/HiFi.conf got updated (it is provided by the package libasound2-data). You can replace it with a version from my github:

Code : Tout sélectionner

sudo wget https://raw.githubusercontent.com/harryharryharry/x205ta-iso2usb-files/master/HiFi.conf -O /usr/share/alsa/ucm2/chtrt5645/HiFi.conf

ag@ag-X205TA:~$ sudo wget https://raw.githubusercontent.com/harryharryharry/x205ta-iso2usb-files/master/HiFi.conf -O /usr/share/alsa/ucm2/chtrt5645/HiFi.conf
[sudo] Mot de passe de ag :        
--2023-02-28 10:24:00--  https://raw.githubusercontent.com/harryharryharry/x205ta-iso2usb-files/master/HiFi.conf
Résolution de raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connexion à raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 11075 (11K) [text/plain]
Enregistre : «/usr/share/alsa/ucm2/chtrt5645/HiFi.conf»

/usr/share/alsa/ucm 100%[===================>]  10,82K  --.-KB/s    ds 0,002s  

2023-02-28 10:24:00 (5,25 MB/s) - «/usr/share/alsa/ucm2/chtrt5645/HiFi.conf» enregistré [11075/11075]
ag@ag-X205TA:~$ 
apt policy backport-iwlwifi-dkms

Code : Tout sélectionner

ag@ag-X205TA:~$ apt policy backport-iwlwifi-dkms
backport-iwlwifi-dkms:
  Installé : (aucun)
  Candidat : 8324-0ubuntu3~20.04.5
 Table de version :
     8324-0ubuntu3~20.04.5 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages
     8324-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal/universe i386 Packages
ag@ag-X205TA:~$ 
marche pas, pourtant :

Code : Tout sélectionner

ag@ag-X205TA:~$ apt policy backport-iwlwifi-dkms
backport-iwlwifi-dkms:
  Installé : 8324-0ubuntu3~20.04.5
  Candidat : 8324-0ubuntu3~20.04.5
 Table de version :
 *** 8324-0ubuntu3~20.04.5 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages
        100 /var/lib/dpkg/status
     8324-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal/universe i386 Packages
ag@ag-X205TA:~$ 
Il semblerait que Linux Mint n'aime pas trop le Bluetooth

Bonne journée
alai42
Messages : 7
Enregistré le : sam. 25 févr. 2023 00:04

Re: Faire fonctionner bluetooth sur Asus X205TA

Message par alai42 »

Pour le script wifi, il faut tout le retour
wget https://framagit.org/CyrilleBiot/wifi-i ... in/wifi.sh
sudo bash wifi.sh

Code : Tout sélectionner

ag@ag-X205TA:~$ sudo bash wifi.sh
[sudo] Mot de passe de ag :        
rfkill est installé. Continuons.
xclip est installé. Continuons.
Carte réseau : 
Prise en charge par le kernel :  
 
Présence firmware (ip _a) : 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 04:e6:76:91:76:6f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.00/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
       valid_lft 83638sec preferred_lft 83638sec
    inet6 fe80::29d9:32c2:b089:3f3f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever 

Firmware manquant :  
[    0.118982] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    9.708271] bluetooth hci0: Direct firmware load for brcm/BCM43341B0.hcd failed with error -2
[   10.050838] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-X205TA.txt failed with error -2 

Verrouillage soft / hard :  
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no 

IPBox : 
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 octets de 192.168.1.1 : icmp_seq=1 ttl=64 temps=7.92 ms
64 octets de 192.168.1.1 : icmp_seq=2 ttl=64 temps=7.79 ms
64 octets de 192.168.1.1 : icmp_seq=3 ttl=64 temps=104 ms

--- statistiques ping 192.168.1.1 ---
3 paquets transmis, 3 reçus, 0 % paquets perdus, temps 2004 ms
rtt min/moy/max/mdev = 7,786/39,915/104,043/45,345 ms

Ping vers la box : 
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 octets de 192.168.1.1 : icmp_seq=1 ttl=64 temps=7.92 ms
64 octets de 192.168.1.1 : icmp_seq=2 ttl=64 temps=7.79 ms
64 octets de 192.168.1.1 : icmp_seq=3 ttl=64 temps=104 ms

--- statistiques ping 192.168.1.1 ---
3 paquets transmis, 3 reçus, 0 % paquets perdus, temps 2004 ms
rtt min/moy/max/mdev = 7,786/39,915/104,043/45,345 ms

Kernel : 
Linux ag-X205TA 5.4.0-139-generic #156-Ubuntu SMP Fri Jan 20 17:27:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux  

Kernel(s) installé(s) : 
ii  linux-image-5.4.0-139-generic              5.4.0-139.156                       amd64        Signed kernel image generic
ii  linux-image-5.4.0-91-generic               5.4.0-91.102                        amd64        Signed kernel image generic
ii  linux-image-generic                        5.4.0.139.137                       amd64        Generic Linux kernel image  

ag@ag-X205TA:~$ 
Modifié en dernier par alai42 le ven. 10 mars 2023 10:16, modifié 1 fois.
alai42
Messages : 7
Enregistré le : sam. 25 févr. 2023 00:04

Re: Faire fonctionner bluetooth sur Asus X205TA

Message par alai42 »

Bonjour,
Jeme suis procuré une clé usb bluetooth pour détecter et faire fonctionner l'enceinte musicale.
Le son est parfait.
Bonne soirée
Répondre