Bluettoth Kernel Fehlermeldungen [gelöst]

Hast Du Probleme mit Hardware, die durch die anderen Foren nicht abgedeckt werden? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
Faber38
Beiträge: 380
Registriert: 21.03.2009 23:28:20
Wohnort: Elsdorf

Bluettoth Kernel Fehlermeldungen [gelöst]

Beitrag von Faber38 » 19.02.2017 12:52:52

Hallo,
Auf meinem Debian8 Rechner erscheint irgendwann im syslog folgendes

Code: Alles auswählen

Feb 19 08:22:42 server kernel: [85292.747661] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:24:07 server kernel: [85377.843308] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:24:33 server kernel: [85403.346384] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:25:32 server kernel: [85462.943046] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:25:58 server kernel: [85488.285971] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:26:58 server kernel: [85548.066574] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:27:23 server kernel: [85573.241706] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:28:23 server kernel: [85633.182317] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:28:51 server kernel: [85661.718131] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:29:48 server kernel: [85718.297821] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:30:15 server kernel: [85745.329323] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:31:13 server kernel: [85803.401452] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:31:38 server kernel: [85828.948541] Bluetooth: hci0 command 0x0419 tx timeout
starte ich nun den Bluetooth service neu... bekomme ich zwar diese Meldung weg.,jedoch Bluetooth arbeitet danach nicht mehr korrekt...
bisher half nur ein neustart..

Jetzt versuchge ich mittels "swatch" das syslog aus zulesen und nach Bluetooth zu durchsuchen.

swatch.conf:

Code: Alles auswählen

#
# Swatch Konfigurations Datei
#
# Zweck = in Log Dateien bestimmte Ereignisse finden
#         und dann bestimmte Aktionen ausführen.
# ------------------------------
#
################################
watchfor  /Bluetooth/
   exec "sh /opt/script/test"

/oipt/script/test:

Code: Alles auswählen

service rsyslog stop
cp /var/log/syslog /var/log/syslog_sic
cp /var/log/syslog /var/log/syslog_2
awk '! /Bluetooth/ {rint $0}' /var/log/syslog_2 > /var/log/syslog_3
cp /var/log/syslog_3 /var/log/syslog
wait 5
service rsyslog start
##################
# option wenn alles funktioniert
# shutdown -r now 
##################
exit
Die Auswertung funktioniert...nur beim zurück schreiben der syslog geht es nicht
kopiere ich im laufendem Betrieb die Syslog mittels

Code: Alles auswählen

cp /var/log/syslog_3 /var/log/syslog
geht es...

also per script kommt immer eine syslog ohne inhalt .
??

hat einer dafür eine Erklärung ?

Benutzeravatar
Faber38
Beiträge: 380
Registriert: 21.03.2009 23:28:20
Wohnort: Elsdorf

Re: Bluettoth Kernel Fehlermeldungen [gelöst]

Beitrag von Faber38 » 19.02.2017 13:16:42

awk war zu langsam...

habe im script noch zusätzlich ein "wait 5" eingebaut...
jetzt funktioniert alles..

Antworten