You are not logged in.

#1 2017-05-04 21:06:47

IceS2
Member
Registered: 2017-05-04
Posts: 39

Bluetooth headset stops working after being Idle

Hello guys! I configured my bluetooth headset to work with blueman and it connects automatically when I turn it on.
He works fine, but if i leave it Idle for a few minutes (without any sound playing) it stops working and it only comes back if I turn it off and on again.
Is there a way for it to stay alive all the time?

Thanks!

Offline

#2 2017-05-05 09:25:55

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Bluetooth headset stops working after being Idle

Is it still consider connected aa per blueman when it stops working? Also is it still listed in:

pacmd list-cards
pacmd list-sinks

In any case, comment out the line for loading module-suspend-on-idle in /etc/pulse/default.pa might help workaround it, though this should not be needed if the hardware/driver is working properly.

Offline

#3 2017-05-05 18:22:49

IceS2
Member
Registered: 2017-05-04
Posts: 39

Re: Bluetooth headset stops working after being Idle

Hey tom.ty89,
These are my outputs:

```$ pacmd list-cards
2 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_00_1b.0>
    driver: <module-alsa-card.c>
    owner module: 6
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf0700000 irq 26"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "1e20"
        device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "0"
        device.description = "Built-in Audio"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
        output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
        output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: unknown)
        output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5460, available: unknown)
        off: Off (priority 0, available: unknown)
    active profile: <output:analog-stereo+input:analog-stereo>
    sinks:
        alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
    sources:
        alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
        alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
    ports:
        analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "audio-headphones"
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "video-display"
                device.product.name = "22MP55"
    index: 4
    name: <bluez_card.6C_5A_B5_72_82_57>
    driver: <module-bluez5-device.c>
    owner module: 29
    properties:
        device.description = "JBL T450BT"
        device.string = "6C:5A:B5:72:82:57"
        device.api = "bluez"
        device.class = "sound"
        device.bus = "bluetooth"
        device.form_factor = "headset"
        bluez.path = "/org/bluez/hci0/dev_6C_5A_B5_72_82_57"
        bluez.class = "0x240404"
        bluez.alias = "JBL T450BT"
        device.icon_name = "audio-headset-bluetooth"
        device.intended_roles = "phone"
    profiles:
        headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: unknown)
        a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 10, available: yes)
        off: Off (priority 0, available: yes)
    active profile: <a2dp_sink>
    sinks:
        bluez_sink.6C_5A_B5_72_82_57.a2dp_sink/#4: JBL T450BT
    sources:
        bluez_sink.6C_5A_B5_72_82_57.a2dp_sink.monitor/#5: Monitor of JBL T450BT
    ports:
        headset-output: Headset (priority 0, latency offset 0 usec, available: yes)
            properties:
               
        headset-input: Headset (priority 0, latency offset 0 usec, available: unknown)
            properties:```

```$ pacmd list-sinks
2 sink(s) available.
    index: 0
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 9959
    volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
            balance 0.00
    base volume: 65536 / 100% / 0.00 dB
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 6
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "ALC269VC Analog"
        alsa.id = "ALC269VC Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "0"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf0700000 irq 26"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "1e20"
        device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "front:0"
        device.buffering.buffer_size = "352800"
        device.buffering.fragment_size = "176400"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Analog Stereo"
        device.description = "Built-in Audio Analog Stereo"
        alsa.mixer_name = "Realtek ALC269VC"
        alsa.components = "HDA:10ec0269,144dc736,00100202 HDA:80862806,80860101,00100000"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "audio-headphones"
    active port: <analog-output-headphones>
  * index: 4
    name: <bluez_sink.6C_5A_B5_72_82_57.a2dp_sink>
    driver: <module-bluez5-device.c>
    flags: HARDWARE DECIBEL_VOLUME LATENCY
    state: RUNNING
    suspend cause:
    priority: 9030
    volume: front-left: 58984 /  90% / -2.74 dB,   front-right: 58984 /  90% / -2.74 dB
            balance 0.00
    base volume: 65536 / 100% / 0.00 dB
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max request: 5 KiB
    max rewind: 0 KiB
    monitor source: 5
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 1
    linked by: 1
    fixed latency: 56.93 ms
    card: 4 <bluez_card.6C_5A_B5_72_82_57>
    module: 29
    properties:
        bluetooth.protocol = "a2dp_sink"
        device.description = "JBL T450BT"
        device.string = "6C:5A:B5:72:82:57"
        device.api = "bluez"
        device.class = "sound"
        device.bus = "bluetooth"
        device.form_factor = "headset"
        bluez.path = "/org/bluez/hci0/dev_6C_5A_B5_72_82_57"
        bluez.class = "0x240404"
        bluez.alias = "JBL T450BT"
        device.icon_name = "audio-headset-bluetooth"
        device.intended_roles = "phone"
    ports:
        headset-output: Headset (priority 0, latency offset 0 usec, available: yes)
            properties:
               
    active port: <headset-output>
```

(How do I post those lines as code? Thanks)

Last edited by IceS2 (2017-05-05 18:30:54)

Offline

Board footer

Powered by FluxBB