• Bluetooth crash after suspend and resume


    I run Antergos + Gnome on a Samsung NP900X3L-KW1BR notebook. Blueman is installed. Sharing is activated in All Settings -> Sharing. bluez, bluez-libs, bluez-utils, gnome-bluetooth and pulseaudio-bluetooth are also installed.

    I have:

    [email protected] ~ $ inxi -n
    Resuming in non X mode: glxinfo not found. For package install advice run: inxi --recommends
    Network:   Card-1: Intel Wireless 8260 driver: iwlwifi
               IF: wlp1s0 state: up mac: 00:c2:c6:cf:a5:21
               Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
               IF: enp2s0 state: down mac: 98:83:89:6c:49:7a 
    

    and

    [email protected] ~ $ hciconfig -a hci0
    hci0:	Type: Primary  Bus: USB
    	BD Address: 00:C2:C6:CF:A5:25  ACL MTU: 1021:4  SCO MTU: 96:6
    	UP RUNNING PSCAN
    	RX bytes:4658494 acl:232535 sco:0 events:541 errors:0
    	TX bytes:13290 acl:182 sco:0 commands:219 errors:0
    	Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
    	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
    	Link policy: RSWITCH SNIFF
    	Link mode: SLAVE ACCEPT
    	Name: 'darwin5'
    	Class: 0x1c010c
    	Service Classes: Rendering, Capturing, Object Transfer
    	Device Class: Computer, Laptop
    	HCI Version: 4.2 (0x8)  Revision: 0x100
    	LMP Version: 4.2 (0x8)  Subversion: 0x100
    	Manufacturer: Intel Corp. (2)
    

    Bluetooth works fine, but after a few suspend to RAM and resume bluetooth stops working. This happens when the notebook resumes from a previous suspend to RAM. At this point I see:

    [email protected] ~ $ systemctl status bluetooth.service
    ● bluetooth.service - Bluetooth service
       Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
       Active: failed (Result: core-dump) since Fri 2017-02-03 07:21:04 BRT; 1min 12s ago
         Docs: man:bluetoothd(8)
      Process: 559 ExecStart=/usr/lib/bluetooth/bluetoothd (code=dumped, signal=SEGV)
     Main PID: 559 (code=dumped, signal=SEGV)
       Status: "Running"
    
    Feb 02 14:59:50 darwin5 bluetoothd[559]: Sap driver initialization failed.
    Feb 02 14:59:50 darwin5 bluetoothd[559]: sap-server: Operation not permitted (1)
    Feb 02 14:59:52 darwin5 bluetoothd[559]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource
    Feb 02 14:59:52 darwin5 bluetoothd[559]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink
    Feb 02 15:00:01 darwin5 bluetoothd[559]: Endpoint registered: sender=:1.76 path=/MediaEndpoint/A2DPSource
    Feb 02 15:00:01 darwin5 bluetoothd[559]: Endpoint registered: sender=:1.76 path=/MediaEndpoint/A2DPSink
    Feb 02 15:00:01 darwin5 bluetoothd[559]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
    Feb 03 07:21:04 darwin5 systemd[1]: bluetooth.service: Main process exited, code=dumped, status=11/SEGV
    Feb 03 07:21:04 darwin5 systemd[1]: bluetooth.service: Unit entered failed state.
    Feb 03 07:21:04 darwin5 systemd[1]: bluetooth.service: Failed with result 'core-dump'.
    

    Also:

    [email protected] ~ $ dmesg | grep luetooth
    [22613.854185] bluetooth hci0:3585: parent hci0 should not be sleeping
    [22615.271332] bluetoothd[559]: segfault at c9 ip 000000000048f97c sp 00007ffeb3c4d380 error 4 in bluetoothd[400000+ee000]
    

    I then restart bluetooth (sudo systemctl restart bluetooth.service). Bluetooth works again, but I no longer can transfer files to the computer via bluetooth. At this point I see:

    [email protected] ~ $ systemctl status bluetooth.service
    ● bluetooth.service - Bluetooth service
       Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
       Active: active (running) since Fri 2017-02-03 07:23:35 BRT; 38s ago
         Docs: man:bluetoothd(8)
     Main PID: 30810 (bluetoothd)
       Status: "Running"
        Tasks: 1 (limit: 4915)
       CGroup: /system.slice/bluetooth.service
               └─30810 /usr/lib/bluetooth/bluetoothd
    
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: bt_uhid_send: Invalid argument (22)
    Feb 03 07:23:41 darwin5 bluetoothd[30810]: Unable to register GATT service with handle 0x0008 for device E7:C9:99:62:6C:04
    

    I can only transfer files to the computer via bluetooth after a reboot.

    I tried the two suggestions listed in https://wiki.archlinux.org/index.php/bluetooth, namely: (i) enable [email protected] and (ii) uncomment the lines [Policy] and AutoEnable of /etc/bluetooth/main.conf. They did not help. Reinstalling bluez and blueman did not help either.

    The problem started happening a couple of weeks ago. I have no idea what caused it.

    Suggestions are welcome.

  • Is it possible to formulate a problem in fewer words?

  • In a nutshell… Sometimes bluetooth does not restart after a resume from suspend to RAM. I then restart the bluetooth service. After that, everything works fine except that I can no longer receive files over bluetooth. To be able to do so, I need to reboot.

  • I wrote earlier that after I restart the bluetooth service, I am unable to receive files over bluetooth. Today I discovered that the files are received and stored in ~/.cache/obexd but are not transferred to ~/Downloads . Would anyone know what is causing that?

  • It’s possible to install blueman package and finely tune all bluetooth setttings from within it, including the default folder for received files.

  • Bluetooth is a crap 😉
    I got 3 different Bluetooth sticks and commonly there working, but as you say after resume or if they are unplugged on running system they are not fully functional anymore, only a reboot solves this.
    Also i find out that blueman do not do a clue for it, but sometimes

    bluetoothctl
    

    does the trick with repairing…

    And yes i can confirm i can send files via bluetooth if the devices are paired…
    Files will be saved at ~./cache/obexd/ and no Info on recieving on the screen.

    [updates once a week] = [90% less problems]
    my#repo
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad @just 1) Blueman is installed. I set ~/Bluetooth as the folder where the received files are to be saved. Changing that to ~/Downloads (default) does no good. 2) After a bluetooth crash, I am unable to to connect to the bluetooth server using bluetoothctl:

    [email protected] ~ $ bluetoothctl
    Waiting to connect to bluetoothd...
    

    Today I experienced another crash. I suspended the notebook last night and upon resuming this morning bluetooth was dead:

    [email protected] ~ $ systemctl status bluetooth
    ● bluetooth.service - Bluetooth service
       Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
       Active: failed (Result: core-dump) since Sat 2017-02-11 08:14:12 BRT; 1min 53s ago
         Docs: man:bluetoothd(8)
      Process: 538 ExecStart=/usr/lib/bluetooth/bluetoothd (code=dumped, signal=SEGV)
     Main PID: 538 (code=dumped, signal=SEGV)
       Status: "Running"
    
    Feb 10 07:05:21 darwin5 bluetoothd[538]: sap-server: Operation not permitted (1)
    Feb 10 07:05:23 darwin5 bluetoothd[538]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource
    Feb 10 07:05:23 darwin5 bluetoothd[538]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink
    Feb 10 07:05:31 darwin5 bluetoothd[538]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSource
    Feb 10 07:05:31 darwin5 bluetoothd[538]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSink
    Feb 10 07:05:31 darwin5 bluetoothd[538]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
    Feb 10 08:32:49 darwin5 bluetoothd[538]: Unable to get io data for Object Push: getpeername: Transport endpoint is not connected (1
    Feb 11 08:14:12 darwin5 systemd[1]: bluetooth.service: Main process exited, code=dumped, status=11/SEGV
    Feb 11 08:14:12 darwin5 systemd[1]: bluetooth.service: Unit entered failed state.
    Feb 11 08:14:12 darwin5 systemd[1]: bluetooth.service: Failed with result 'core-dump'.
    

    I then started the bluetooth service as

    [email protected] ~ $ sudo systemctl start bluetooth
    [sudo] password for cribari: 
    

    After that I was able to use the paired devices (mouse etc.), but when I receive a file via bluetooth it is saved to ~/.cache/obexd but it is not transfered to ~/Bluetooth (or ~/Downloads).

    Suggestions are welcome.

  • sudo systemctl restart bluetooth
    

    or

    sudo systemctl stop bluetooth
    sudo systemctl start bluetooth
    

    because it was already started but failed…

    reminds my on power/resume problems with wifi… from WIKI:
    new AutoEnable feature introduced in BlueZ 5.35 by uncommenting [Policy] and AutoEnable=true lines in /etc/bluetooth/main.conf

    [updates once a week] = [90% less problems]
    my#repo
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad I’ve tried the AutoEnable feature in /etc/bluetooth/main.conf . It does no good since the bluetooth service crashes and is no longer available. The root of the problem are the bluetooth crashes. If I can get them to stop all problems will be solved, I believe. After the last crash, I did

    sudo coredumpctl list
    

    to identify the crash (it was number 538). Then

    [email protected] ~ $ sudo coredumpctl info 538
               PID: 538 (bluetoothd)
               UID: 0 (root)
               GID: 0 (root)
            Signal: 11 (SEGV)
         Timestamp: Sat 2017-02-11 08:14:12 BRT (22min ago)
      Command Line: /usr/lib/bluetooth/bluetoothd
        Executable: /usr/lib/bluetooth/bluetoothd
     Control Group: /system.slice/bluetooth.service
              Unit: bluetooth.service
             Slice: system.slice
           Boot ID: 5263ef4ea81247848a75a63a33ded894
        Machine ID: 638b8e9d5361483ebca581f844991150
          Hostname: darwin5
           Storage: /var/lib/systemd/coredump/core.bluetoothd.0.5263ef4ea81247848a75a63a33ded894.538.1486811652000000000000.lz4
           Message: Process 538 (bluetoothd) of user 0 dumped core.
                    
                    Stack trace of thread 538:
                    #0  0x0000000000000021 n/a (n/a)
    

    Would anyone what could be causing the bluetooth crashes after some suspend to RAM and resume?

suspend41 bluetooth38 crash22 resume4 Posts 9Views 1558
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.