Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 17/12/2021, à 22:21

stéphan13

[RESOLU] Bluetooth HS après désinstal par erreur de bluez

Bonjour,
je suis sous Ubuntu 21.04 avec une install assez fraîche sur un PC qu'on m'a donné récemment . Pas de dual boot -> juste Ubuntu .

stephan@stephan-G11CD:~$ uname -a
Linux stephan-G11CD 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Du coté de mon bluetooth tout marchait très bien mais j'ai par erreur fait un

sudo apt-get purge bluez .

Cette commande n'avais  jamais aboutie ; le terminal c'était frisé sur le message 'suppression du paquet' .

dès lors je me suis rendu compte de mon erreur . J'ai donc ré-installé bluez . A noter qu'il m'avait fallu auparavant faire un

stephan@stephan-G11CD:~$ sudo dpkg --configure -a

A partir de cet instant mon bluetooth ne fonctionne plus -> La liste de mes périphériques apparaît mais impossible de m'y connecter . Si j'en supprime un, il ne ré-aparait pas dans la liste des périphériques non configurés .

J'ai parcouru divers fils de discussions sur le forum, j'ai essayé diverses actions telles que :

sudo apt-get reinstall bluez bluez-cups bluez-obexd gir1.2-gnomebluetooth-1.0:amd64 libbluetooth3:amd64 libgnome-bluetooth13:amd64
sudo rfkill unblock bluetooth
sudo systemctl stop bluetooth
sudo systemctl restart bluetooth

Sinon voici :

stephan@stephan-G11CD:~$ uname -a; lspci -nnk | grep -iA3 net; lsusb; dmesg | grep -i bluetooth; dmesg | grep -i firmware; lsmod | grep bluetooth
Linux stephan-G11CD 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]
	Subsystem: AzureWave RTL8821AE 802.11ac PCIe Wireless Network Adapter [1a3b:2161]
	Kernel driver in use: rtl8821ae
	Kernel modules: rtl8821ae
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 11)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:861d]
	Kernel driver in use: r8169
	Kernel modules: r8169
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0c45:636b Microdia USB 2.0 Hub
Bus 003 Device 004: ID f201:1400 PixArt HP USB Optical Mouse
Bus 003 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 002: ID 03f0:094a HP, Inc Optical Mouse [672662-001]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 13d3:3414 IMC Networks Bluetooth Radio 
Bus 001 Device 002: ID 03f0:354a HP, Inc HP USB Slim Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[    1.653352] usb 1-7: Product: Bluetooth Radio 
[    3.112342] Bluetooth: Core ver 2.22
[    3.112359] Bluetooth: HCI device and connection manager initialized
[    3.112362] Bluetooth: HCI socket layer initialized
[    3.112364] Bluetooth: L2CAP socket layer initialized
[    3.112366] Bluetooth: SCO socket layer initialized
[    3.179221] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000a lmp_ver=06 lmp_subver=8821
[    3.180237] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    3.180240] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821a_fw.bin
[    3.181605] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821a_config.bin
[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2
[    3.181629] Bluetooth: hci0: RTL: cfg_sz -2, total sz 17428
[    3.976270] Bluetooth: hci0: RTL: fw version 0x0e2fa041
[    5.805307] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.805310] Bluetooth: BNEP filters: protocol multicast
[    5.805312] Bluetooth: BNEP socket layer initialized
[   43.196854] Bluetooth: RFCOMM TTY layer initialized
[   43.196863] Bluetooth: RFCOMM socket layer initialized
[   43.196867] Bluetooth: RFCOMM ver 1.11
[  531.980674] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[ 1123.386869] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[ 2141.544057] Bluetooth: hci1: BCM: chip id 63
[ 2141.545061] Bluetooth: hci1: BCM: features 0x07
[ 2141.561063] Bluetooth: hci1: BCM20702A
[ 2141.561067] Bluetooth: hci1: BCM20702A1 (001.002.014) build 0000
[ 2141.562520] Bluetooth: hci1: BCM: firmware Patch file not found, tried:
[ 2141.562524] Bluetooth: hci1: BCM: 'brcm/BCM20702A1-0b05-17cb.hcd'
[ 2141.562525] Bluetooth: hci1: BCM: 'brcm/BCM-0b05-17cb.hcd'
[ 2404.829365] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[    0.167167] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.225324] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    3.137341] nouveau 0000:01:00.0: pmu: firmware unavailable
[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2
[    3.198279] rtl8821ae: Using firmware rtlwifi/rtl8821aefw_29.bin
[    3.198285] rtl8821ae: Using firmware rtlwifi/rtl8821aefw_wowlan.bin
[ 2141.562520] Bluetooth: hci1: BCM: firmware Patch file not found, tried:
bluetooth             638976  39 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic           16384  2 bluetooth
stephan@stephan-G11CD:~$ dpkg -l | grep blue
ii  bluez                                      5.53-0ubuntu3.4                       amd64        Bluetooth tools and daemons
ii  bluez-cups                                 5.53-0ubuntu3.4                       amd64        Bluetooth printer driver for CUPS
ii  bluez-obexd                                5.53-0ubuntu3.4                       amd64        bluez obex daemon
ii  gir1.2-gnomebluetooth-1.0:amd64            3.34.3-0ubuntu1                       amd64        Introspection data for GnomeBluetooth
ii  libbluetooth3:amd64                        5.53-0ubuntu3.4                       amd64        Library to use the BlueZ Linux Bluetooth stack
stephan@stephan-G11CD:~$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-12-17 20:48:06 CET; 19min ago
       Docs: man:bluetoothd(8)
   Main PID: 6507 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 38367)
     Memory: 640.0K
     CGroup: /system.slice/bluetooth.service
             └─6507 /usr/lib/bluetooth/bluetoothd

déc. 17 20:48:06 stephan-G11CD systemd[1]: Stopped Bluetooth service.
déc. 17 20:48:06 stephan-G11CD systemd[1]: Starting Bluetooth service...
déc. 17 20:48:06 stephan-G11CD bluetoothd[6507]: Bluetooth daemon 5.53
déc. 17 20:48:06 stephan-G11CD systemd[1]: Started Bluetooth service.
déc. 17 20:48:06 stephan-G11CD bluetoothd[6507]: Starting SDP server
déc. 17 20:48:06 stephan-G11CD bluetoothd[6507]: Bluetooth management interface 1.19 initialized
ii  libgnome-bluetooth13:amd64                 3.34.3-0ubuntu1                       amd64        GNOME Bluetooth tools - support library
stephan@stephan-G11CD:~$ rfkill list all
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Voila, un petit coup de mains serait le bienvenu pour réparer ma bourde .

Merci d'avance,
Stéphan

Dernière modification par stéphan13 (Le 19/12/2021, à 09:09)


Stéphan

Hors ligne

#2 Le 17/12/2021, à 22:45

xubu1957

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Bonjour,

Vu >  la réponse de Saturnin51.

Montre :

bootctl

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#3 Le 18/12/2021, à 06:35

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Bonjour,

ça fonctionnait avant que je désinstalle bluez mais voilà :

stephan@stephan-G11CD:~$ bootctl
Failed to read "/boot/efi/EFI/systemd": Permission non accordée
Failed to open "/boot/efi/loader/loader.conf": Permission non accordée
System:
     Firmware: n/a (n/a)
  Secure Boot: disabled
   Setup Mode: user

Current Boot Loader:
      Product: n/a
     Features: ✗ Boot counting
               ✗ Menu timeout control
               ✗ One-shot menu timeout control
               ✗ Default entry control
               ✗ One-shot entry control
               ✗ Support for XBOOTLDR partition
               ✗ Support for passing random seed to OS
               ✗ Boot loader sets ESP partition information
          ESP: n/a
         File: └─n/a

Random Seed:
 Passed to OS: no
 System Token: not set
       Exists: no

Available Boot Loaders on ESP:
          ESP: /boot/efi (/dev/disk/by-partuuid/fde35d18-41e1-48b2-91e6-46e5645e131b)

Boot Loaders Listed in EFI Variables:
        Title: ubuntu
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/fde35d18-41e1-48b2-91e6-46e5645e131b
         File: └─/EFI/UBUNTU/SHIMX64.EFI

Boot Loader Entries:
        $BOOT: /boot/efi (/dev/disk/by-partuuid/fde35d18-41e1-48b2-91e6-46e5645e131b)

Stéphan

Hors ligne

#4 Le 18/12/2021, à 07:36

xubu1957

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Bonjour,

Merci de montrer, pour les permissions :

nany a écrit :
echo -e "\nNombre d'éléments de /home/moi ne m'appartenant pas : $(sudo find ~ \( ! -user $USER -o ! -group $USER \) | wc -l)"

Montre aussi d'éventuels paquets cassés :

dpkg -l | grep -v ^ii

Dernière modification par xubu1957 (Le 18/12/2021, à 07:47)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#5 Le 18/12/2021, à 10:25

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

stephan@stephan-G11CD:~$ echo -e "\nNombre d'éléments de /home/moi ne m'appartenant pas : $(sudo find ~ \( ! -user $USER -o ! -group $USER \) | wc -l)"

Nombre d'éléments de /home/moi ne m'appartenant pas : 4

je comprend donc bien qu'il y a des éléments dans mon ~ qui ne m’appartiennent pas . Du coup :

stephan@stephan-G11CD:~$ find ~ ! -user $USER
/home/stephan/.local/share/shotwell
/home/stephan/.local/share/shotwell/data
/home/stephan/.local/share/shotwell/data/photo.db
/home/stephan/.local/share/shotwell/data/photo.db.bak

ce sont des dossiers qui sont sur mon NAS avec un point de montage spécifique dans mon fstab :

Voici la ligne correspondante dans mon fstab

#montage du dossier local de shotwell sur le NAS
//192.168.0.197/dropbox/Les_aires/Applications/shotwell /home/stephan/.local/share/shotwell cifs _netdev,credentials=/root/.smbcredentials,gid=100,uid=1000,auto,rw,exec,vers=1.0 0 2

Voici la ligne correspondante avec la commande mount

//192.168.0.197/dropbox/Les_aires/Applications/shotwell on /home/stephan/.local/share/shotwell type cifs (rw,relatime,vers=1.0,cache=strict,username=stephan,uid=1000,noforceuid,gid=100,noforcegid,addr=192.168.0.197,soft,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=1048576,bsize=1048576,echo_interval=60,actimeo=1,_netdev)

J'ai essayé ça :

stephan@stephan-G11CD:~$ sudo chown -Rc $USER:$USER /home/$USER
chown: modification du propriétaire de '/home/stephan/.local/share/shotwell/data/photo.db': Permission non accordée
chown: modification du propriétaire de '/home/stephan/.local/share/shotwell/data/photo.db.bak': Permission non accordée
chown: modification du propriétaire de '/home/stephan/.local/share/shotwell/data': Permission non accordée
chown: modification du propriétaire de '/home/stephan/.local/share/shotwell': Permission non accordée

pour info (je n'ai gardé qu'un échantillon du contenu du dossier) . Mon dossier shotwell appartient à 1031 ...

stephan@stephan-G11CD:~/.local/share$ ls -la
-rw-rw-r--  1 stephan stephan    184 oct.   2  2020 session_migration-ubuntu
drwxrwxrwx  3    1031 users        0 oct.  11  2020 shotwell
drwxrwxr-x  3 stephan stephan   4096 sept. 27  2020 shotwellback

Sinon, pour en revenir à nos moutons :


stephan@stephan-G11CD:~$ dpkg -l | grep -v ^ii
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                                        Version                               Architecture Description
+++-==========================================-=====================================-============-======================================================================================================
rc  irda-utils                                 0.9.18-15ubuntu1                      amd64        IrDA management and handling utilities
rc  linux-image-5.11.0-27-generic              5.11.0-27.29~20.04.1                  amd64        Signed kernel image generic
rc  linux-image-5.11.0-40-generic              5.11.0-40.44~20.04.2                  amd64        Signed kernel image generic
rc  linux-modules-5.11.0-27-generic            5.11.0-27.29~20.04.1                  amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc  linux-modules-5.11.0-40-generic            5.11.0-40.44~20.04.2                  amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.11.0-27-generic      5.11.0-27.29~20.04.1                  amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.11.0-40-generic      5.11.0-40.44~20.04.2                  amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc  setserial                                  2.17-52                               amd64        controls configuration of serial ports

Stéphan

Hors ligne

#6 Le 18/12/2021, à 10:36

xubu1957

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Pour nettoyer :

Le 11/02/2017, moko138 a écrit :

Pour supprimer tous ces fichiers de configuration devenus sans objets et marqués "rc", et uniquement ces fichiers, exécute :

dpkg -l | awk '/^rc/{print $2}' | xargs -r sudo dpkg -P

Pour info, les précisions de nany, pour la commande de nettoyage et une possibilité d'automatisation.

_ _ _

Pour corriger :

sudo find ~ -xdev \( ! -user $USER -o ! -group $USER \) -exec chown -ch $USER:$USER "{}" \;

les explications


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#7 Le 18/12/2021, à 11:23

iznobe

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Bonjour , ca me parait louche cette histoire , on dirait que le pilote pour tacarte bluetooth a été viré aussi , vu ca :

[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2

en tout cas , il ne fonctionne plus correctement .


que donne :

history | grep -E "blue | 8821"

Dernière modification par iznobe (Le 18/12/2021, à 12:55)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#8 Le 18/12/2021, à 12:05

FrancisFDZ

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Bonjour,
La purge non désirée de bluz a supprimé certaines parties, mais comme elle n'a pas abouti il en est resté quelques séquelles.Il vaudrait peut-être mieux
refaire cette opération jusqu'à son terme normal et réinstaller ensuite.
Dans un premier temps, postes la réponse de

 sudo apt-get purge bluz 

, on pourrait y voir ce qui bloque l'opération.
La réponse à

sudo dpkg --configure -a

pourra aussi être utile
Une fois qu'on aura repéré ce qui bloque, on pourra tenter une réinstallation sur des bases saines0


-- On peut avoir des raisons de se plaindre et n'avoir pas raison de se plaindre --
[Victor Hugo]

Hors ligne

#9 Le 18/12/2021, à 13:32

xubu1957

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Dans ce fil récent :

dpkg -l | grep blue
ii  bluez                                      5.53-0ubuntu3.4                       amd64        Bluetooth tools and daemons
ii  bluez-cups                                 5.53-0ubuntu3.4                       amd64        Bluetooth printer driver for CUPS
ii  bluez-obexd                                5.53-0ubuntu3.4                       amd64        bluez obex daemon
ii  gir1.2-gnomebluetooth-1.0:amd64            3.34.3-0ubuntu1                       amd64        Introspection data for GnomeBluetooth
ii  gnome-bluetooth                            3.34.3-0ubuntu1                       amd64        GNOME Bluetooth tools
ii  libbluetooth3:amd64                        5.53-0ubuntu3.4                       amd64        Library to use the BlueZ Linux Bluetooth stack
ii  libgnome-bluetooth13:amd64                 3.34.3-0ubuntu1                       amd64        GNOME Bluetooth tools - support library
ii  pulseaudio-module-bluetooth                1:13.99.1-1ubuntu3.13                 amd64        Bluetooth module for PulseAudio sound server

sont présents aussi :

ii  gnome-bluetooth                            3.34.3-0ubuntu1                       amd64        GNOME Bluetooth tools
ii  libgnome-bluetooth13:amd64                 3.34.3-0ubuntu1                       amd64        GNOME Bluetooth tools - support library
ii  pulseaudio-module-bluetooth                1:13.99.1-1ubuntu3.13                 amd64        Bluetooth module for PulseAudio sound server

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#10 Le 18/12/2021, à 13:36

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

xubu1957 a écrit :

Pour nettoyer :

Le 11/02/2017, moko138 a écrit :

Pour supprimer tous ces fichiers de configuration devenus sans objets et marqués "rc", et uniquement ces fichiers, exécute :

dpkg -l | awk '/^rc/{print $2}' | xargs -r sudo dpkg -P

Pour info, les précisions de nany, pour la commande de nettoyage et une possibilité d'automatisation.

stephan@stephan-G11CD:~$ dpkg -l | awk '/^rc/{print $2}' | xargs -r sudo dpkg -P
[sudo] Mot de passe de stephan : 
(Lecture de la base de données... 223571 fichiers et répertoires déjà installés.)
Purge des fichiers de configuration de irda-utils (0.9.18-15ubuntu1) ...
Purge des fichiers de configuration de linux-image-5.11.0-27-generic (5.11.0-27.29~20.04.1) ...
Purge des fichiers de configuration de linux-image-5.11.0-40-generic (5.11.0-40.44~20.04.2) ...
Purge des fichiers de configuration de linux-modules-5.11.0-27-generic (5.11.0-27.29~20.04.1) ...
Purge des fichiers de configuration de linux-modules-5.11.0-40-generic (5.11.0-40.44~20.04.2) ...
Purge des fichiers de configuration de linux-modules-extra-5.11.0-27-generic (5.11.0-27.29~20.04.1) ...
Purge des fichiers de configuration de linux-modules-extra-5.11.0-40-generic (5.11.0-40.44~20.04.2) ...
Purge des fichiers de configuration de setserial (2.17-52) ...
Traitement des actions différées (« triggers ») pour systemd (245.4-4ubuntu3.13) ...


stephan@stephan-G11CD:~$ dpkg -l | grep -v ^ii
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                                        Version                               Architecture Description
+++-==========================================-=====================================-============-======================================================================================================
xubu1957 a écrit :

Pour corriger :

sudo find ~ -xdev \( ! -user $USER -o ! -group $USER \) -exec chown -ch $USER:$USER "{}" \;

les explications

stephan@stephan-G11CD:~/.local/share$ sudo find ~ -xdev \( ! -user $USER -o ! -group $USER \) -exec chown -ch $USER:$USER "{}" \;
chown: modification du propriétaire de '/home/stephan/.local/share/shotwell': Permission non accordée

du coup je le fait en SU ?
ET merci pour les liens qui vont bien avec smile


Stéphan

Hors ligne

#11 Le 18/12/2021, à 13:39

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

iznobe a écrit :

Bonjour , ca me parait louche cette histoire , on dirait que le pilote pour ta carte bluetooth a été viré aussi , vu ca :

[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2

en tout cas , il ne fonctionne plus correctement .


que donne :

history | grep -E "blue | 8821"
stephan@stephan-G11CD:~$ history | grep -E "blue | 8821"
  532  history | grep -E "blue | 8821"

Stéphan

Hors ligne

#12 Le 18/12/2021, à 13:42

iznobe

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

stéphan13 a écrit :
stephan@stephan-G11CD:~/.local/share$ sudo find ~ -xdev \( ! -user $USER -o ! -group $USER \) -exec chown -ch $USER:$USER "{}" \;
chown: modification du propriétaire de '/home/stephan/.local/share/shotwell': Permission non accordée

du coup je le fait en SU ?

heu non  !
ces fichiers sont ceux d' un partage que tu montes toi meme via le fstab avec un autre utilisateur si j' ai bien compris .

Dernière modification par iznobe (Le 18/12/2021, à 13:44)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#13 Le 18/12/2021, à 13:42

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

FrancisFDZ a écrit :

Bonjour,
La purge non désirée de bluz a supprimé certaines parties, mais comme elle n'a pas abouti il en est resté quelques séquelles.Il vaudrait peut-être mieux
refaire cette opération jusqu'à son terme normal et réinstaller ensuite.
Dans un premier temps, postes la réponse de

 sudo apt-get purge bluez 

, on pourrait y voir ce qui bloque l'opération.
La réponse à

sudo dpkg --configure -a

pourra aussi être utile
Une fois qu'on aura repéré ce qui bloque, on pourra tenter une réinstallation sur des bases saines0

Du coup cette fois c'est allé au bout sans erreur :

stephan@stephan-G11CD:~$ sudo apt-get purge bluez
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les paquets suivants seront ENLEVÉS :
  bluez*
0 mis à jour, 0 nouvellement installés, 1 à enlever et 5 non mis à jour.
Après cette opération, 4910 ko d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
(Lecture de la base de données... 223564 fichiers et répertoires déjà installés.)
Suppression de bluez (5.53-0ubuntu3.4) ...
Traitement des actions différées (« triggers ») pour dbus (1.12.16-2ubuntu2.1) ...
Traitement des actions différées (« triggers ») pour man-db (2.9.1-1) ...
(Lecture de la base de données... 223512 fichiers et répertoires déjà installés.)
Purge des fichiers de configuration de bluez (5.53-0ubuntu3.4) ...
dpkg: avertissement: lors de la suppression de bluez, le répertoire « /var/lib/bluetooth » n'était pas vide, donc il n'a pas été supprimé
Traitement des actions différées (« triggers ») pour dbus (1.12.16-2ubuntu2.1) ...
Traitement des actions différées (« triggers ») pour systemd (245.4-4ubuntu3.13) ...

Du coup :

stephan@stephan-G11CD:~$ sudo dpkg --configure -a
stephan@stephan-G11CD:~$ 

Stéphan

Hors ligne

#14 Le 18/12/2021, à 13:43

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

iznobe a écrit :
stéphan13 a écrit :
stephan@stephan-G11CD:~/.local/share$ sudo find ~ -xdev \( ! -user $USER -o ! -group $USER \) -exec chown -ch $USER:$USER "{}" \;
chown: modification du propriétaire de '/home/stephan/.local/share/shotwell': Permission non accordée

du coup je le fait en SU ?

heu non  !


C'est bien ce que je pensait wink


Stéphan

Hors ligne

#15 Le 18/12/2021, à 13:46

iznobe

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

ce sont des fichiers que tu montes toi-meme via le fstab avec un autre groupe ou utilisateur si j' ai bien compris .
il est donc normal de les laisser de coté , c ' est l' exception qui confirme la regle , dirons nous tongue puisque tu les montes dans ton home .

Dernière modification par iznobe (Le 18/12/2021, à 13:48)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#16 Le 18/12/2021, à 13:50

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Du coup j'ai renstallé bluez

stephan@stephan-G11CD:~$ sudo apt-get install bluez
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les NOUVEAUX paquets suivants seront installés :
  bluez
0 mis à jour, 1 nouvellement installés, 0 à enlever et 5 non mis à jour.
Il est nécessaire de prendre 0 o/980 ko dans les archives.
Après cette opération, 4910 ko d'espace disque supplémentaires seront utilisés.
Sélection du paquet bluez précédemment désélectionné.
(Lecture de la base de données... 223505 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../bluez_5.53-0ubuntu3.4_amd64.deb ...
Dépaquetage de bluez (5.53-0ubuntu3.4) ...
Paramétrage de bluez (5.53-0ubuntu3.4) ...
Created symlink /etc/systemd/system/dbus-org.bluez.service → /lib/systemd/system/bluetooth.service.
Created symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service → /lib/systemd/system/bluetooth.service.
Traitement des actions différées (« triggers ») pour systemd (245.4-4ubuntu3.13) ...
Traitement des actions différées (« triggers ») pour man-db (2.9.1-1) ...
Traitement des actions différées (« triggers ») pour dbus (1.12.16-2ubuntu2.1) ...

Les nouveau périphériques sont vus mais impossible de de s'y connecter . Pour être précis lors de l'association le statut passe en 'connecté' mais ça ne dure pas plus d'une seconde ...

Stéphan


Stéphan

Hors ligne

#17 Le 18/12/2021, à 13:51

iznobe

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

tu as toujours cette erreur :

[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2

avec le retour de :

dmesg | grep -i bluetooth;

Dernière modification par iznobe (Le 18/12/2021, à 13:54)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#18 Le 18/12/2021, à 13:52

xubu1957

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Et en essayant la méthode de Nuliel ?


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#19 Le 18/12/2021, à 13:52

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

iznobe a écrit :

ce sont des fichiers que tu montes toi-meme via le fstab avec un autre groupe ou utilisateur si j' ai bien compris .
il est donc normal de les laisser de coté , c ' est l' exception qui confirme la regle , dirons nous tongue puisque tu les montes dans ton home .

Je vais me pencher sur ça, revoir la ligne de mon fstab et je reviendrais mettre à jour ce post smile . Merci .


Stéphan

Hors ligne

#20 Le 18/12/2021, à 13:57

iznobe

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

stéphan13 a écrit :

Voici la ligne correspondante dans mon fstab

#montage du dossier local de shotwell sur le NAS
//192.168.0.197/dropbox/Les_aires/Applications/shotwell /home/stephan/.local/share/shotwell cifs _netdev,credentials=/root/.smbcredentials,gid=100,uid=1000,auto,rw,exec,vers=1.0 0 2

ca ne devrait pas plutot etre dans cette ligne :

gid=1000

?

Dernière modification par iznobe (Le 18/12/2021, à 13:57)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#21 Le 18/12/2021, à 13:57

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

iznobe a écrit :

tu as toujours cette erreur :

[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2

avec le retour de :

dmesg | grep -i bluetooth;

oui

stephan@stephan-G11CD:~$ uname -a; lspci -nnk | grep -iA3 net; lsusb; dmesg | grep -i bluetooth; dmesg | grep -i firmware; lsmod | grep bluetooth
Linux stephan-G11CD 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]
	Subsystem: AzureWave RTL8821AE 802.11ac PCIe Wireless Network Adapter [1a3b:2161]
	Kernel driver in use: rtl8821ae
	Kernel modules: rtl8821ae
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 11)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:861d]
	Kernel driver in use: r8169
	Kernel modules: r8169
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0c45:636b Microdia USB 2.0 Hub
Bus 003 Device 004: ID f201:1400 PixArt HP USB Optical Mouse
Bus 003 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 002: ID 03f0:094a HP, Inc Optical Mouse [672662-001]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 13d3:3414 IMC Networks Bluetooth Radio 
Bus 001 Device 002: ID 03f0:354a HP, Inc HP USB Slim Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[    1.653352] usb 1-7: Product: Bluetooth Radio 
[    3.112342] Bluetooth: Core ver 2.22
[    3.112359] Bluetooth: HCI device and connection manager initialized
[    3.112362] Bluetooth: HCI socket layer initialized
[    3.112364] Bluetooth: L2CAP socket layer initialized
[    3.112366] Bluetooth: SCO socket layer initialized
[    3.179221] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000a lmp_ver=06 lmp_subver=8821
[    3.180237] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    3.180240] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821a_fw.bin
[    3.181605] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821a_config.bin
[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2
[    3.181629] Bluetooth: hci0: RTL: cfg_sz -2, total sz 17428
[    3.976270] Bluetooth: hci0: RTL: fw version 0x0e2fa041
[    5.805307] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.805310] Bluetooth: BNEP filters: protocol multicast
[    5.805312] Bluetooth: BNEP socket layer initialized
[   43.196854] Bluetooth: RFCOMM TTY layer initialized
[   43.196863] Bluetooth: RFCOMM socket layer initialized
[   43.196867] Bluetooth: RFCOMM ver 1.11
[  531.980674] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[ 1123.386869] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[ 2141.544057] Bluetooth: hci1: BCM: chip id 63
[ 2141.545061] Bluetooth: hci1: BCM: features 0x07
[ 2141.561063] Bluetooth: hci1: BCM20702A
[ 2141.561067] Bluetooth: hci1: BCM20702A1 (001.002.014) build 0000
[ 2141.562520] Bluetooth: hci1: BCM: firmware Patch file not found, tried:
[ 2141.562524] Bluetooth: hci1: BCM: 'brcm/BCM20702A1-0b05-17cb.hcd'
[ 2141.562525] Bluetooth: hci1: BCM: 'brcm/BCM-0b05-17cb.hcd'
[ 2404.829365] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[    0.167167] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.225324] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    3.137341] nouveau 0000:01:00.0: pmu: firmware unavailable
[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2
[    3.198279] rtl8821ae: Using firmware rtlwifi/rtl8821aefw_29.bin
[    3.198285] rtl8821ae: Using firmware rtlwifi/rtl8821aefw_wowlan.bin
[ 2141.562520] Bluetooth: hci1: BCM: firmware Patch file not found, tried:
bluetooth             638976  39 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic           16384  2 bluetooth
stephan@stephan-G11CD:~$ dmesg | grep -i bluetooth;
[    1.653352] usb 1-7: Product: Bluetooth Radio 
[    3.112342] Bluetooth: Core ver 2.22
[    3.112359] Bluetooth: HCI device and connection manager initialized
[    3.112362] Bluetooth: HCI socket layer initialized
[    3.112364] Bluetooth: L2CAP socket layer initialized
[    3.112366] Bluetooth: SCO socket layer initialized
[    3.179221] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000a lmp_ver=06 lmp_subver=8821
[    3.180237] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    3.180240] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821a_fw.bin
[    3.181605] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821a_config.bin
[    3.181623] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2
[    3.181629] Bluetooth: hci0: RTL: cfg_sz -2, total sz 17428
[    3.976270] Bluetooth: hci0: RTL: fw version 0x0e2fa041
[    5.805307] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.805310] Bluetooth: BNEP filters: protocol multicast
[    5.805312] Bluetooth: BNEP socket layer initialized
[   43.196854] Bluetooth: RFCOMM TTY layer initialized
[   43.196863] Bluetooth: RFCOMM socket layer initialized
[   43.196867] Bluetooth: RFCOMM ver 1.11
[  531.980674] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[ 1123.386869] Bluetooth: hci0: Ignoring error of Inquiry Cancel command
[ 2141.544057] Bluetooth: hci1: BCM: chip id 63
[ 2141.545061] Bluetooth: hci1: BCM: features 0x07
[ 2141.561063] Bluetooth: hci1: BCM20702A
[ 2141.561067] Bluetooth: hci1: BCM20702A1 (001.002.014) build 0000
[ 2141.562520] Bluetooth: hci1: BCM: firmware Patch file not found, tried:
[ 2141.562524] Bluetooth: hci1: BCM: 'brcm/BCM20702A1-0b05-17cb.hcd'
[ 2141.562525] Bluetooth: hci1: BCM: 'brcm/BCM-0b05-17cb.hcd'
[ 2404.829365] Bluetooth: hci0: Ignoring error of Inquiry Cancel command

Stéphan

Hors ligne

#22 Le 18/12/2021, à 14:08

xubu1957

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

Tente :

sudo apt install --reinstall bluez

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#23 Le 18/12/2021, à 14:10

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

xubu1957 a écrit :

Et en essayant la méthode de Nuliel ?

stephan@stephan-G11CD:~$ hcitool scan
Scanning ...
	08:DF:1F:A9:FA:C6	Bose Mini II SoundLink
	00:0C:8A:ED:EB:18	Bose OE SoundLink
stephan@stephan-G11CD:~$ bluetoothctl
Agent registered
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -36
[CHG] Device 08:DF:1F:A9:FA:C6 RSSI: -42
[CHG] Device 08:DF:1F:A9:FA:C6 RSSI: -38
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -34
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -32
[CHG] Device 08:DF:1F:A9:FA:C6 RSSI: -36
[CHG] Device 08:DF:1F:A9:FA:C6 RSSI: -38
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -32
[bluetooth]# agent on
Agent is already registered
[bluetooth]# power on
Changing power on succeeded
[CHG] Device 08:DF:1F:A9:FA:C6 RSSI: -36
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -34
[bluetooth]# scan on
Discovery started
[CHG] Device 08:DF:1F:A9:FA:C6 RSSI: -40
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -34
[CHG] Device 08:DF:1F:A9:FA:C6 RSSI: -32
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -36
[CHG] Device 00:0C:8A:ED:EB:18 RSSI: -36
[bluetooth]# pair 08:DF:1F:A9:FA:C6             Attempting to pair with 08:DF:1F:A9:FA:C6 Failed to pair: org.bluez.Error.AlreadyExists
[bluetooth]# connect 08:DF:1F:A9:FA:C6      Attempting to connect to 08:DF:1F:A9:FA:C6 Failed to connect: org.bluez.Error.Failed

[bluetooth]# quit

Stéphan

Hors ligne

#24 Le 18/12/2021, à 14:13

stéphan13

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

xubu1957 a écrit :

Tente :

sudo apt install --reinstall bluez
stephan@stephan-G11CD:~$ sudo apt install --reinstall bluez
[sudo] Mot de passe de stephan : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 5 non mis à jour.
Il est nécessaire de prendre 0 o/980 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
(Lecture de la base de données... 223564 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../bluez_5.53-0ubuntu3.4_amd64.deb ...
Dépaquetage de bluez (5.53-0ubuntu3.4) sur (5.53-0ubuntu3.4) ...
Paramétrage de bluez (5.53-0ubuntu3.4) ...
Traitement des actions différées (« triggers ») pour systemd (245.4-4ubuntu3.13) ...
Traitement des actions différées (« triggers ») pour man-db (2.9.1-1) ...
Traitement des actions différées (« triggers ») pour dbus (1.12.16-2ubuntu2.1) ...

Idem


Stéphan

Hors ligne

#25 Le 18/12/2021, à 14:35

xubu1957

Re : [RESOLU] Bluetooth HS après désinstal par erreur de bluez

5 non mis à jour

Montre :

sudo apt full-upgrade

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne