[bluetooth] dysfonctionnement

Reconnaissance et configuration du matériel / kernel linux
aty879
Daikyu
Messages : 64
Inscription : dim. 14 août 2016, 14:47

[bluetooth] dysfonctionnement

Message par aty879 »

Bonjour,

Je viens vers vous car j'ai un soucis avec mon bluetooth. Il fonctionne pendant 1 à 2 minutes puis se coupe.
J'utilise le bluetooth pour connecter mon enceinte portable sony srs-x33.


hcitool me donne :
Devices:
hci0 54:27:1E:xx:xx:xx
quelques temps aprés :

hcitool me donne :
Devices:
(vide)
rfkill list me donne :
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
3: asus-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
12: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
informations matériels :
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
journalctl | grep blue me donne :
dbus[447]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.45" (uid=120 pid=585 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.3" (uid=0 pid=445 comm="/usr/lib/bluetooth/bluetoothd ")
bluetoothd[445]: Failed to obtain handles for "Service Changed" characteristic
bluetoothd[445]: Sap driver initialization failed.
bluetoothd[445]: sap-server: Operation not permitted (1)
bluetoothd[445]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
bluetoothd[445]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/A2DPSource
bluetoothd[445]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/A2DPSink
bluetoothd[445]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource
bluetoothd[445]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink
bluetoothd[445]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[445]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[445]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[445]: Failed to set mode: Blocked through rfkill (0x12)
avais vous eu déja ce problème ?
un problème de kernel ?

Merci d'avance de votre aide. :wink:
Avatar de l’utilisateur
Brezzius
Hankyu
Messages : 11
Inscription : sam. 18 juin 2016, 09:08

Re: [bluetooth] dysfonctionnement

Message par Brezzius »

Salut,
Première chose qui me vient à l'esprit : As-tu un fichier nommé bluetooth-auto-power@.service dans /etc/systemd/system/ ?

Si non, peux tu nous montrer le contenu de /etc/conf.d/bluetooth ?
aty879
Daikyu
Messages : 64
Inscription : dim. 14 août 2016, 14:47

Re: [bluetooth] dysfonctionnement

Message par aty879 »

Salut,

merci de m'apporter ton aide,
Brezzius a écrit : Première chose qui me vient à l'esprit : As-tu un fichier nommé bluetooth-auto-power@.service dans /etc/systemd/system/ ?
non aucun fichier nommé bluetooth-auto-power@.service
Brezzius a écrit : Si non, peux tu nous montrer le contenu de /etc/conf.d/bluetooth ?
je n'ai pas de fichier "bluetooth" dans /etc/conf.d/
aty879
Daikyu
Messages : 64
Inscription : dim. 14 août 2016, 14:47

Re: [bluetooth] dysfonctionnement

Message par aty879 »

ajout en plus de ma réponse précédente:

j'ai un fichier "bluetooth.conf" dans /etc/dbus-1/system.d/bluetooth.conf


<!-- This configuration file specifies the required security policies
for Bluetooth core daemon to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/db ... config.dtd">
<busconfig>

<!-- ../system.conf have denied everything, so we just punch some holes -->

<policy user="root">
<allow own="org.bluez"/>
<allow send_destination="org.bluez"/>
<allow send_interface="org.bluez.Agent1"/>
<allow send_interface="org.bluez.MediaEndpoint1"/>
<allow send_interface="org.bluez.MediaPlayer1"/>
<allow send_interface="org.bluez.ThermometerWatcher1"/>
<allow send_interface="org.bluez.AlertAgent1"/>
<allow send_interface="org.bluez.Profile1"/>
<allow send_interface="org.bluez.HeartRateWatcher1"/>
<allow send_interface="org.bluez.CyclingSpeedWatcher1"/>
<allow send_interface="org.bluez.GattCharacteristic1"/>
<allow send_interface="org.bluez.GattDescriptor1"/>
<allow send_interface="org.freedesktop.DBus.ObjectManager"/>
<allow send_interface="org.freedesktop.DBus.Properties"/>
</policy>

<policy at_console="true">
<allow send_destination="org.bluez"/>
</policy>

<!-- allow users of lp group (printing subsystem) to
communicate with bluetoothd -->
<policy group="lp">
<allow send_destination="org.bluez"/>
</policy>

<policy context="default">
<deny send_destination="org.bluez"/>
</policy>

</busconfig>
Avatar de l’utilisateur
Brezzius
Hankyu
Messages : 11
Inscription : sam. 18 juin 2016, 09:08

Re: [bluetooth] dysfonctionnement

Message par Brezzius »

Ok,

Lorsque ton bluetooth se coupe, tape la commande : bluetoothctl. Ta carte est-elle détecté ?
aty879
Daikyu
Messages : 64
Inscription : dim. 14 août 2016, 14:47

Re: [bluetooth] dysfonctionnement

Message par aty879 »

Salut,

j'ai continué les recherches de mon coté et j'ai crée un fichier "audio.conf" dans /etc/bluetooth/

contenu du fichier audio.conf

[General]
Enable=Source,Sink,Media,Socket
SCORouting = HCI
AutoConnect = true
[Headset]
HFP = true
MaxConnected = 1
[A2DP]
MaxConnected = 1
Brezzius a écrit :Ok,

Lorsque ton bluetooth se coupe, tape la commande : bluetoothctl. Ta carte est-elle détecté ?
pour le momment plus de coupure et j'ai bien ma carte bluetooth et mon périphérique de détecté.
bluetoothctl
[NEW] Controller 54:XX:XX:XX:XX:XX
[NEW] Device 8C:DE:XX:XX:XX:XX
Je laisse pour le moment mon post ouvert je vais attendre un moment avant de validé que ça fonctionne bien.
Je passerai mon post après en résolu avec un retour.

Merci
Avatar de l’utilisateur
Brezzius
Hankyu
Messages : 11
Inscription : sam. 18 juin 2016, 09:08

Re: [bluetooth] dysfonctionnement

Message par Brezzius »

Ok, pas de soucis.

Après, pour forcer l'activation de de ta carte, tu peux créer le fichier /etc/systemd/system/bluetooth-auto-power@.service :

Code : Tout sélectionner

[Unit]
Description=Bluetooth power keeper
Requires=sys-subsystem-bluetooth-devices-%i.device bluetooth.service
PartOf=sys-subsystem-bluetooth-devices-%i.device
After=bluetooth.service sys-subsystem-bluetooth-devices-%i.device suspend.target
Conflicts=shutdown.target systemd-sleep.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/%I org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:true
ExecStop=/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/%I org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:false

[Install]
WantedBy=bluetooth.target
Bonne continuation
aty879
Daikyu
Messages : 64
Inscription : dim. 14 août 2016, 14:47

Re: [bluetooth] dysfonctionnement

Message par aty879 »

Bonjour,

Je vous fait un retour de mon problème de bluetooth, donc ça fonctionne 1 fois sur 3 mais c'est mieux d'avant :)

quand je fais la commande "journalctl |grep blue" j'ai toujours les erreurs suivantes :
dbus[447]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.63" (uid=1000 pid=773 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.3" (uid=0 pid=449 comm="/usr/lib/bluetooth/bluetoothd ")
bluetoothd[449]: Failed to obtain handles for "Service Changed" characteristic
bluetoothd[449]: Sap driver initialization failed.
bluetoothd[449]: sap-server: Operation not permitted (1)
bluetoothd[449]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
bluetoothd[449]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSource
bluetoothd[449]: Endpoint registered: sender=:1.45 path=/MediaEndpoint/A2DPSink
bluetoothd[449]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/A2DPSource
bluetoothd[449]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/A2DPSink
bluetoothd[449]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[449]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[449]: Failed to set mode: Blocked through rfkill (0x12)
blueman-mechanism[1043]: Exiting
aty879
Daikyu
Messages : 64
Inscription : dim. 14 août 2016, 14:47

Re: [bluetooth] dysfonctionnement

Message par aty879 »

Bonsoir, je me permet de fait un UP de ce post car je rencontre toujours des disfonctionnements avec mon bluetooth

Arch linux (à jour) + kernel non LTS

error.log

Code : Tout sélectionner

kernel: Bluetooth: hci0 command 0x2007 tx timeout
kernel: Bluetooth: hci0 command 0x200f tx timeout
kernel: Bluetooth: hci0 command 0x2010 tx timeout
ET

Code : Tout sélectionner

bluetoothd[494]: Failed to set mode: Failed (0x03)
bluetoothd[494]: Failed to set mode: Failed (0x03)
bluetoothd[494]: Failed to set mode: Failed (0x03)
commande lspci

Code : Tout sélectionner

Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
Merci encore pour votre aide, car je ne trouve toujours pas la solution :roll:
Répondre