We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-07-12 12:39:19 +0200

niv gravatar image

Android app stops playing music after a day

Setup: Sailos 2.0.1.11

Test case: 1. Boot the device 2. Install tunein app for android from the aptoide apps 3. play some radio music 4. close the app 5. wait one day 6. open the app again and try to play music

Result: 1. Audio does not play 2. Progress bar does not advance in the app 3. In the terminal I check pacmd list-sinks and find driver: <module-droid-card.c &gt;="" state:="" suspended="" suspend="" cause:="" idle<="" p="">

Expected result: I expected the app to play as it did the first time

Here is the full pacmd output: Blockquote [nemo@Jolla ~]$ pacmd list-sinks 4 sink(s) available. index: 0 name: <sink.null> driver: <module-null-sink.c> flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 1000 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: 375 KiB max rewind: 375 KiB monitor source: 0 sample spec: s16le 2ch 48000Hz 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 module: 5 properties: device.description = "Null Output" device.class = "abstract" device.icon_name = "audio-card" policy.device.typelist = "null" x-maemo.mode = "null" x-maemo.accessory_hwid = "" * index: 1 name: <sink.primary> driver: <module-droid-card.c> flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME state: SUSPENDED suspend cause: IDLE priority: 9000 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: 1 sample spec: s16le 2ch 48000Hz channel map: front-left,front-right Stereo used by: 0 linked by: 0 fixed latency: 96.00 ms card: 0 <droid_card.primary> module: 6 properties: device.description = "Droid sink primary" device.class = "sound" droid.hw_module = "primary" device.icon_name = "audio-card" policy.device.typelist = "tvoutandbthsp ihfandbthsp ihfandheadset ihfandheadphone bthsp bthspforcall bthspforalien headset headsetforcall headsetforalien headphone headphoneforcall headphoneforalien ihfandtvout tvout earpieceandtvout earpiece earpieceforalien ihf ihfforcall ihfforalien" x-maemo.mode = "ihf" x-maemo.accessory_hwid = "" x-nemo.voicecall.status = "inactive" x-nemo.media.state = "inactive" ports: output-earpiece: Output to earpiece (priority 200, latency offset 0 usec, available: yes) properties:

    output-speaker: Output to speaker (priority 300, latency offset 0 usec, available: yes)
        properties:

    output-wired_headset: Output to wired headset (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-wired_headphone: Output to wired headphone (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-bluetooth_sco: Output to bluetooth sco (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-sco_headset: Output to sco headset (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-sco_carkit: Output to sco carkit (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-a2dp: Output to a2dp (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-a2dp_headphones: Output to a2dp headphones (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-a2dp_speaker: Output to a2dp speaker (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-aux_digital: Output to aux digital (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-analog_dock_headset: Output to analog dock headset (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-usb_accessory: Output to usb accessory (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-usb_device: Output to usb device (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-fm: Output to fm (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-fm_tx: Output to fm tx (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-proxy: Output to proxy (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-speaker+wired_headphone: Output to speaker+wired headphone (priority 100, latency offset 0 usec, available: yes)
        properties:

    output-parking: Parking port (priority 50, latency offset 0 usec, available: yes)
        properties:

active port: <output-speaker>
index: 2
name: <sink.fake.sco>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE 
priority: 1000
volume: mono: 0 /   0% / -inf dB
        balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 16
muted: no
current latency: 0.00 ms
max request: 31 KiB
max rewind: 31 KiB
monitor source: 3
sample spec: s16le 1ch 8000Hz
channel map: mono
             Mono
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
module: 7
properties:
    device.description = "Null Output"
    device.class = "abstract"
    device.icon_name = "audio-card"
    policy.device.typelist = ""
    bluetooth.prefer.hsp = "false"
    bluetooth.hsp.prevent.suspend.transport = "true"
    bluetooth.protocol = "hsp"
index: 3
name: <sink.primaryandbluez>
driver: <module-combine-sink.c>
flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE 
priority: 1000
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: 8 KiB
max rewind: 0 KiB
monitor source: 5
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
             Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 200.00 ms
module: 10
properties:
    device.class = "filter"
    device.description = "Simultaneous output to Droid sink primary"
    device.icon_name = "audio-card"
    policy.device.typelist = ""

Blockquote

Android app stops playing music after a day

Setup:
Sailos 2.0.1.11

2.0.1.11

Test case: 1. Boot the device 2. Install tunein app for android from the aptoide apps 3. play some radio music 4. close the app 5. wait one day 6. open the app again and try to play music

music

Result: 1. Audio does not play 2. Progress bar does not advance in the app 3. In the terminal I check pacmd list-sinks and find driver: <module-droid-card.c &gt;="" state:="" suspended="" suspend="" cause:="" idle<="" p=""> > state: SUSPENDED suspend cause: IDLE

Expected result: I expected the app to play as it did the first time

time

Here is the full pacmd output: Blockquote output:

[nemo@Jolla ~]$ pacmd list-sinks 4 list-sinks 4 sink(s) available. index: 0 0 name: <sink.null> <sink.null> driver: <module-null-sink.c> flags: <module-null-sink.c> flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY FLAT_VOLUME DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 1000 volume: front-left: 65536 / 100% / / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 0.00 base volume: 65536 / 100% / 0.00 dB dB volume steps: 65537 steps: 65537 muted: no no current latency: latency: 0.00 ms ms max request: 375 KiB KiB max rewind: 375 KiB KiB monitor source: 0 sample spec: s16le 2ch 48000Hz channel map: front-left,front-right Stereo Stereo used by: 0 0 linked by: 0 0 configured latency: latency: 0.00 ms; range is 0.50 .. 2000.00 ms ms module: 5 5 properties: device.description = "Null Output" device.class = "abstract" device.icon_name = "audio-card" policy.device.typelist = "null" x-maemo.mode = "null" x-maemo.accessory_hwid = "" * "" * index: 1 1 name: <sink.primary> driver: <module-droid-card.c> flags: <module-droid-card.c> flags: HARDWARE DECIBEL_VOLUME LATENCY LATENCY FLAT_VOLUME state: SUSPENDED suspend cause: IDLE priority: 9000 volume: front-left: 65536 / 100% / / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 0.00 base volume: 65536 / 100% / 0.00 dB dB volume steps: 65537 steps: 65537 muted: no no current latency: latency: 0.00 ms ms max request: 0 KiB KiB max rewind: 0 KiB KiB monitor source: 1 sample spec: s16le 2ch 48000Hz channel map: front-left,front-right Stereo Stereo used by: 0 0 linked by: 0 0 fixed latency: 96.00 ms card: 0 <droid_card.primary> module: 6 properties: <droid_card.primary> module: 6 properties: device.description = = "Droid sink primary" primary" device.class = "sound" = "sound" droid.hw_module = "primary" device.icon_name = "audio-card" policy.device.typelist = = "tvoutandbthsp ihfandbthsp ihfandbthsp ihfandheadset ihfandheadphone bthsp bthsp bthspforcall bthspforalien headset headset headsetforcall headsetforalien headsetforalien headphone headphoneforcall headphoneforcall headphoneforalien ihfandtvout tvout tvout earpieceandtvout earpiece earpiece earpieceforalien ihf ihfforcall ihfforalien" ihfforcall ihfforalien" x-maemo.mode = "ihf" x-maemo.accessory_hwid = "" x-nemo.voicecall.status = "inactive" x-nemo.media.state = "inactive" ports: ports: output-earpiece: Output to to earpiece (priority 200, latency offset offset 0 usec, available: yes) properties:

yes)           properties:
                        output-speaker: Output to speaker (priority 300, latency offset offset
  0 usec, available: yes)
yes)           properties:
      output-wired_headset: Output to wired headset (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-wired_headphone: Output to wired headphone (priority 100, 100,
  latency offset 0 usec, available: yes)
         properties:
      output-bluetooth_sco: Output to bluetooth sco (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-sco_headset: Output to sco headset (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-sco_carkit: Output to sco carkit (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-a2dp: Output to a2dp (priority 100, latency offset 0 usec, usec,
  available: yes)
yes)           properties:
      output-a2dp_headphones: Output to a2dp headphones (priority 100, 100,
  latency offset 0 usec, available: yes)
         properties:
      output-a2dp_speaker: Output to a2dp speaker (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-aux_digital: Output to aux digital (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-analog_dock_headset: Output to analog dock headset headset
  (priority 100, latency offset 0 usec, usec,
  available: yes)
yes)           properties:
      output-usb_accessory: Output to usb accessory (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-usb_device: Output to usb device (priority 100, latency latency
  offset 0 usec, available: yes)
         properties:
      output-fm: Output to fm (priority 100, latency offset 0 usec, usec,
  available: yes)
yes)           properties:
      output-fm_tx: Output to fm tx (priority 100, latency offset 0 usec, usec,
  available: yes)
yes)           properties:
      output-proxy: Output to proxy (priority 100, latency offset 0 usec, usec,
  available: yes)
yes)           properties:
      output-speaker+wired_headphone: Output to speaker+wired headphone headphone
  (priority 100, latency offset 0 usec, usec,
  available: yes)
yes)           properties:
      output-parking: Parking port (priority 50, latency offset 0 usec, usec,
  available: yes)
yes)           properties:
  active port: <output-speaker>
 index: 2
2  name: <sink.fake.sco>
<sink.fake.sco>   driver: <module-null-sink.c>
flags: <module-null-sink.c>    flags:
  DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
FLAT_VOLUME
  DYNAMIC_LATENCY   state: SUSPENDED
 suspend cause: IDLE   priority: 1000
 volume: mono: 0 /   0% / -inf dB
         balance 0.00
0.00    base volume: 65536 / 100% / 0.00 dB
dB     volume steps: 16
steps:
  16    muted: no
no   current latency: 0.00 ms
0.00
  ms    max request: 31 KiB
KiB     max rewind: rewind:
  31 KiB
KiB    monitor source: 3
sample 3   sample
  spec: s16le 1ch 8000Hz
8000Hz    channel map: map:
  mono
             Mono
    Mono   used by: 0
0  linked by: 0
0    configured latency: 0.00 ms; ms;
  range is 0.50 .. 2000.00 ms
ms   module: 7
properties:
    properties:         device.description =
  "Null Output"         device.class =
  "abstract"        device.icon_name =
  "audio-card"      policy.device.typelist
  = "Null Output"
    device.class = "abstract"
    device.icon_name = "audio-card"
    policy.device.typelist = ""
""      bluetooth.prefer.hsp = "false"
    bluetooth.hsp.prevent.suspend.transport "false"      bluetooth.hsp.prevent.suspend.transport
  = "true"
"true"      bluetooth.protocol = "hsp"
 index: 3
3  name: <sink.primaryandbluez>
driver: <module-combine-sink.c>
flags: <sink.primaryandbluez>    driver:
  <module-combine-sink.c>   flags:
  DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
FLAT_VOLUME
  DYNAMIC_LATENCY   state: SUSPENDED
 suspend cause: IDLE   priority: 1000
 volume: front-left: 65536 / 100% / /
  0.00 dB,   front-right: 65536 / 100% / 0.00 dB
         balance 0.00
0.00    base volume: 65536 / 100% / 0.00 dB
dB     volume steps: 65537
steps:
  65537     muted: no
no   current latency: latency:
  0.00 ms
ms   max request: 8 KiB
KiB  max rewind: 0 KiB
KiB   monitor source: 5
 sample spec: s16le 2ch 48000Hz
 channel map: front-left,front-right
             Stereo
    Stereo     used by: 0
0  linked by: 0
0    configured latency: latency:
  0.00 ms; range is 0.50 .. 200.00 ms
ms   module: 10
10  properties:
     device.class = "filter"
     device.description = "Simultaneous "Simultaneous
  output to Droid sink primary"
     device.icon_name = "audio-card"
     policy.device.typelist = ""

Blockquote""

Android app stops playing music after a day

Setup:
Sailos 2.0.1.11

Test case:
1. Boot the device
2. Install tunein app for android from the aptoide apps
3. play some radio music
4. close the app
5. wait one day
6. open the app again and try to play music

Result:
1. Audio does not play
2. Progress bar does not advance in the app
3. In the terminal I check pacmd list-sinks and find driver: <module-droid-card.c >  state: SUSPENDED  suspend cause: IDLE

Expected result:
I expected the app to play as it did the first time

Here is the full pacmd output:

[nemo@Jolla ~]$ pacmd list-sinks 4 4
sink(s) available. available.
index: 0 name: <sink.null> driver: <module-null-sink.c> flags: flags:
DECIBEL_VOLUME LATENCY FLAT_VOLUME FLAT_VOLUME
DYNAMIC_LATENCY state: SUSPENDED SUSPENDED
suspend cause: IDLE priority: 1000 1000
volume: front-left: 65536 / 100% / /
0.00 dB, front-right: 65536 / 100% / 0.00 dB dB
balance 0.00 base volume: 65536 / 100% / 0.00 dB
volume steps:65537 muted: no current latency:0.00 ms max request: 375 KiB max rewind: 375 KiB monitor source: 0
sample spec: s16le 2ch 48000Hz
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 module: 5 properties:
device.description = "Null Output"
device.class = "abstract"
device.icon_name = "audio-card"
policy.device.typelist = "null"
x-maemo.mode = "null"
x-maemo.accessory_hwid = "" *
index: 1 name: <sink.primary>
driver: <module-droid-card.c> flags:
HARDWARE DECIBEL_VOLUME LATENCY
FLAT_VOLUME state: SUSPENDED
suspend cause: IDLE priority: 9000
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: steps:
65537 muted: no current latency: latency:
0.00 ms max request: 375 0 KiB max rewind: 375 0 KiB monitor source: 0 1
sample spec: s16le 2ch 48000Hz 48000Hz
channel map: front-left,front-right front-left,front-right
Stereo used by: 0 linked by: 0 configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms module: 5 properties: device.description = "Null Output" device.class = "abstract" device.icon_name = "audio-card" policy.device.typelist = "null" x-maemo.mode = "null" x-maemo.accessory_hwid = "" * index: 1 name: <sink.primary> driver: <module-droid-card.c> flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME state: SUSPENDED suspend cause: IDLE priority: 9000 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: 1 sample spec: s16le 2ch 48000Hz channel map: front-left,front-right Stereo used by: 0 linked by: 0 fixed latency: 96.00 ms ms
card: 0 <droid_card.primary> module: 6 <droid_card.primary>
module:6
properties: device.description = "Droid ="Droid sink primary" primary"
device.class = "sound" = "sound"
droid.hw_module = "primary" "primary"
device.icon_name = "audio-card" "audio-card"
policy.device.typelist = = "tvoutandbthsp ihfandbthsp ihfandbthsp ihfandheadset ihfandheadphone bthsp bthsp bthspforcall
bthspforalien headset headset headsetforcall headsetforalien headsetforalien headphone headphoneforcall headphoneforcall headphoneforalien ihfandtvout tvout tvout earpieceandtvout earpiece earpiece earpieceforalien ihf ihfforcall ihfforalien" ihfforcall ihfforalien"
x-maemo.mode = "ihf" "ihf"
x-maemo.accessory_hwid = "" ""
x-nemo.voicecall.status = "inactive" "inactive"
x-nemo.media.state = "inactive" "inactive"
ports: output-earpiece: Output to to earpiece (priority 200, latency offset offset 0 usec, available: yes) properties:
properties:
output-speaker: Output to speaker (priority 300, latency offset offset 0 usec, available: yes) properties: properties: output-wired_headset: Output to wired headset (priority 100, latency latency offset 0 usec, available: yes) properties: properties:

                  output-wired_headphone: Output to wired headphone (priority 100,
 

latency offset 0 usec, available: yes) properties: output-bluetooth_sco: Output to bluetooth sco (priority 100, latency offset 0 usec, available: yes) properties: output-sco_headset: Output to sco headset (priority 100, latency offset 0 usec, available: yes) properties: output-sco_carkit: Output to sco carkit (priority 100, latency offset 0 usec, available: yes) properties: output-a2dp: Output to a2dp (priority 100, latency offset 0 usec, available: yes) properties: output-a2dp_headphones: Output to a2dp headphones (priority 100, latency offset 0 usec, available: yes) properties: output-a2dp_speaker: Output to a2dp speaker (priority 100, latency offset 0 usec, available: yes) properties: output-aux_digital: Output to aux digital (priority 100, latency offset 0 usec, available: yes) properties: output-analog_dock_headset: Output to analog dock headset (priority 100, latency offset 0 usec, available: yes) properties: output-usb_accessory: Output to usb accessory (priority 100, latency offset 0 usec, available: yes) properties: output-usb_device: Output to usb device (priority 100, latency offset 0 usec, available: yes) properties: output-fm: Output to fm (priority 100, latency offset 0 usec, available: yes) properties: output-fm_tx: Output to fm tx (priority 100, latency offset 0 usec, available: yes) properties: output-proxy: Output to proxy (priority 100, latency offset 0 usec, available: yes) properties: output-speaker+wired_headphone: Output to speaker+wired headphone (priority 100, latency offset 0 usec, available: yes) properties: output-parking: Parking port (priority 50, latency offset 0 usec, available: yes) properties: active port: <output-speaker> index: 2 name: <sink.fake.sco> driver: <module-null-sink.c> flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 1000 volume: mono: 0 / 0% / -inf dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 16 muted: no current latency: 0.00 ms max request: 31 KiB max rewind: 31 KiB monitor source: 3 sample spec: s16le 1ch 8000Hz channel map: mono Mono used by: 0 linked by: 0 configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms module: 7 properties: device.description = "Null Output" device.class = "abstract" device.icon_name = "audio-card" policy.device.typelist = "" bluetooth.prefer.hsp = "false" bluetooth.hsp.prevent.suspend.transport = "true" bluetooth.protocol = "hsp" index: 3 name: <sink.primaryandbluez> driver: <module-combine-sink.c> flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 1000 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: 8 KiB max rewind: 0 KiB monitor source: 5 sample spec: s16le 2ch 48000Hz channel map: front-left,front-right Stereo used by: 0 linked by: 0 configured latency: 0.00 ms; range is 0.50 .. 200.00 ms module: 10 properties: device.class = "filter" device.description = "Simultaneous output to Droid sink primary" device.icon_name = "audio-card" policy.device.typelist = ""