bluetiger

PA commands

Jan 20th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 13.51 KB | None | 0 0
  1. ### Pulse Audio list cards ###
  2.  
  3. pi@raspberrypi:~ $ pacmd list cards
  4. Memory blocks currently allocated: 1, size: 64.0 KiB.
  5. Memory blocks allocated during the whole lifetime: 14, size: 626.1 KiB.
  6. Memory blocks imported from other processes: 0, size: 0 B.
  7. Memory blocks exported to other processes: 0, size: 0 B.
  8. Total sample cache size: 0 B.
  9. Default sample spec: s16le 2ch 44100Hz
  10. Default channel map: front-left,front-right
  11. Default sink name: alsa_output.platform-soc_audio.analog-mono
  12. Default source name: alsa_output.platform-soc_audio.analog-mono.monitor
  13. Memory blocks of type POOL: 1 allocated/1 accumulated.
  14. Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
  15. Memory blocks of type APPENDED: 0 allocated/0 accumulated.
  16. Memory blocks of type USER: 0 allocated/0 accumulated.
  17. Memory blocks of type FIXED: 0 allocated/13 accumulated.
  18. Memory blocks of type IMPORTED: 0 allocated/0 accumulated.
  19. 25 module(s) loaded.
  20.     index: 0
  21.     name: <module-device-restore>
  22.     argument: <>
  23.     used: -1
  24.     load once: yes
  25.     properties:
  26.         module.author = "Lennart Poettering"
  27.         module.description = "Automatically restore the volume/mute state of devices"
  28.         module.version = "11.1"
  29.     index: 1
  30.     name: <module-stream-restore>
  31.     argument: <>
  32.     used: -1
  33.     load once: yes
  34.     properties:
  35.         module.author = "Lennart Poettering"
  36.         module.description = "Automatically restore the volume/mute/device state of streams"
  37.         module.version = "11.1"
  38.     index: 2
  39.     name: <module-card-restore>
  40.     argument: <>
  41.     used: -1
  42.     load once: yes
  43.     properties:
  44.         module.author = "Lennart Poettering"
  45.         module.description = "Automatically restore profile of cards"
  46.         module.version = "11.1"
  47.     index: 3
  48.     name: <module-augment-properties>
  49.     argument: <>
  50.     used: -1
  51.     load once: yes
  52.     properties:
  53.         module.author = "Lennart Poettering"
  54.         module.description = "Augment the property sets of streams with additional static information"
  55.         module.version = "11.1"
  56.     index: 4
  57.     name: <module-switch-on-port-available>
  58.     argument: <>
  59.     used: -1
  60.     load once: no
  61.     properties:
  62.        
  63.     index: 5
  64.     name: <module-udev-detect>
  65.     argument: <>
  66.     used: -1
  67.     load once: yes
  68.     properties:
  69.         module.author = "Lennart Poettering"
  70.         module.description = "Detect available audio hardware and load matching drivers"
  71.         module.version = "11.1"
  72.     index: 6
  73.     name: <module-alsa-card>
  74.     argument: <device_id="0" name="platform-soc_audio" card_name="alsa_card.platform-soc_audio" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1">
  75.     used: 0
  76.     load once: no
  77.     properties:
  78.         module.author = "Lennart Poettering"
  79.         module.description = "ALSA Card"
  80.         module.version = "11.1"
  81.     index: 7
  82.     name: <module-bluetooth-policy>
  83.     argument: <>
  84.     used: -1
  85.     load once: yes
  86.     properties:
  87.         module.author = "Frédéric Dalleau, Pali Rohár"
  88.         module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
  89.         module.version = "11.1"
  90.     index: 8
  91.     name: <module-bluetooth-discover>
  92.     argument: <>
  93.     used: -1
  94.     load once: yes
  95.     properties:
  96.         module.author = "João Paulo Rechi Vita"
  97.         module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
  98.         module.version = "11.1"
  99.     index: 9
  100.     name: <module-bluez5-discover>
  101.     argument: <>
  102.     used: -1
  103.     load once: yes
  104.     properties:
  105.         module.author = "João Paulo Rechi Vita"
  106.         module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
  107.         module.version = "11.1"
  108.     index: 10
  109.     name: <module-bluez4-discover>
  110.     argument: <>
  111.     used: -1
  112.     load once: yes
  113.     properties:
  114.         module.author = "João Paulo Rechi Vita"
  115.         module.description = "Detect available BlueZ 4 Bluetooth audio devices and load BlueZ 4 Bluetooth audio drivers"
  116.         module.version = "11.1"
  117.     index: 11
  118.     name: <module-esound-protocol-unix>
  119.     argument: <>
  120.     used: -1
  121.     load once: no
  122.     properties:
  123.         module.author = "Lennart Poettering"
  124.         module.description = "ESOUND protocol (UNIX sockets)"
  125.         module.version = "11.1"
  126.     index: 12
  127.     name: <module-native-protocol-unix>
  128.     argument: <>
  129.     used: -1
  130.     load once: no
  131.     properties:
  132.         module.author = "Lennart Poettering"
  133.         module.description = "Native protocol (UNIX sockets)"
  134.         module.version = "11.1"
  135.     index: 13
  136.     name: <module-default-device-restore>
  137.     argument: <>
  138.     used: -1
  139.     load once: yes
  140.     properties:
  141.         module.author = "Lennart Poettering"
  142.         module.description = "Automatically restore the default sink and source"
  143.         module.version = "11.1"
  144.     index: 14
  145.     name: <module-rescue-streams>
  146.     argument: <>
  147.     used: -1
  148.     load once: yes
  149.     properties:
  150.         module.author = "Lennart Poettering"
  151.         module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
  152.         module.version = "11.1"
  153.     index: 15
  154.     name: <module-always-sink>
  155.     argument: <>
  156.     used: -1
  157.     load once: yes
  158.     properties:
  159.         module.author = "Colin Guthrie"
  160.         module.description = "Always keeps at least one sink loaded even if it's a null one"
  161.         module.version = "11.1"
  162.     index: 16
  163.     name: <module-intended-roles>
  164.     argument: <>
  165.     used: -1
  166.     load once: yes
  167.     properties:
  168.         module.author = "Lennart Poettering"
  169.         module.description = "Automatically set device of streams based on intended roles of devices"
  170.         module.version = "11.1"
  171.     index: 17
  172.     name: <module-suspend-on-idle>
  173.     argument: <>
  174.     used: -1
  175.     load once: yes
  176.     properties:
  177.         module.author = "Lennart Poettering"
  178.         module.description = "When a sink/source is idle for too long, suspend it"
  179.         module.version = "11.1"
  180.     index: 18
  181.     name: <module-console-kit>
  182.     argument: <>
  183.     used: -1
  184.     load once: yes
  185.     properties:
  186.         module.author = "Lennart Poettering"
  187.         module.description = "Create a client for each ConsoleKit session of this user"
  188.         module.version = "11.1"
  189.     index: 19
  190.     name: <module-position-event-sounds>
  191.     argument: <>
  192.     used: -1
  193.     load once: yes
  194.     properties:
  195.         module.author = "Lennart Poettering"
  196.         module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
  197.         module.version = "11.1"
  198.     index: 20
  199.     name: <module-role-cork>
  200.     argument: <>
  201.     used: -1
  202.     load once: yes
  203.     properties:
  204.         module.author = "Lennart Poettering"
  205.         module.description = "Mute & cork streams with certain roles while others exist"
  206.         module.version = "11.1"
  207.     index: 21
  208.     name: <module-filter-heuristics>
  209.     argument: <>
  210.     used: -1
  211.     load once: yes
  212.     properties:
  213.         module.author = "Colin Guthrie"
  214.         module.description = "Detect when various filters are desirable"
  215.         module.version = "11.1"
  216.     index: 22
  217.     name: <module-filter-apply>
  218.     argument: <>
  219.     used: -1
  220.     load once: yes
  221.     properties:
  222.         module.author = "Colin Guthrie"
  223.         module.description = "Load filter sinks automatically when needed"
  224.         module.version = "11.1"
  225.     index: 23
  226.     name: <module-bluez5-device>
  227.     argument: <path=/org/bluez/hci0/dev_78_44_05_4B_4F_FF autodetect_mtu=0>
  228.     used: 0
  229.     load once: no
  230.     properties:
  231.         module.author = "João Paulo Rechi Vita"
  232.         module.description = "BlueZ 5 Bluetooth audio sink and source"
  233.         module.version = "11.1"
  234.     index: 24
  235.     name: <module-cli-protocol-unix>
  236.     argument: <>
  237.     used: -1
  238.     load once: no
  239.     properties:
  240.         module.author = "Lennart Poettering"
  241.         module.description = "Command line interface protocol (UNIX sockets)"
  242.         module.version = "11.1"
  243. 1 sink(s) available.
  244.   * index: 0
  245.     name: <alsa_output.platform-soc_audio.analog-mono>
  246.     driver: <module-alsa-card.c>
  247.     flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
  248.     state: SUSPENDED
  249.     suspend cause: IDLE
  250.     priority: 9009
  251.     volume: mono: 26090 /  40% / -24.00 dB
  252.             balance 0.00
  253.     base volume: 56210 /  86% / -4.00 dB
  254.     volume steps: 65537
  255.     muted: no
  256.     current latency: 0.00 ms
  257.     max request: 0 KiB
  258.     max rewind: 0 KiB
  259.     monitor source: 0
  260.     sample spec: s16le 1ch 44100Hz
  261.     channel map: mono
  262.                  Mono
  263.     used by: 0
  264.     linked by: 0
  265.     configured latency: 0.00 ms; range is 0.50 .. 1486.08 ms
  266.     card: 0 <alsa_card.platform-soc_audio>
  267.     module: 6
  268.     properties:
  269.         alsa.resolution_bits = "16"
  270.         device.api = "alsa"
  271.         device.class = "sound"
  272.         alsa.class = "generic"
  273.         alsa.subclass = "generic-mix"
  274.         alsa.name = "bcm2835 ALSA"
  275.         alsa.id = "bcm2835 ALSA"
  276.         alsa.subdevice = "0"
  277.         alsa.subdevice_name = "subdevice #0"
  278.         alsa.device = "0"
  279.         alsa.card = "0"
  280.         alsa.card_name = "bcm2835 ALSA"
  281.         alsa.long_card_name = "bcm2835 ALSA"
  282.         device.bus_path = "platform-soc:audio"
  283.         sysfs.path = "/devices/platform/soc/soc:audio/bcm2835_alsa/sound/card0"
  284.         device.string = "hw:0"
  285.         device.buffering.buffer_size = "131072"
  286.         device.buffering.fragment_size = "131072"
  287.         device.access_mode = "mmap+timer"
  288.         device.profile.name = "analog-mono"
  289.         device.profile.description = "Analog Mono"
  290.         device.description = "bcm2835 ALSA Analog Mono"
  291.         alsa.mixer_name = "Broadcom Mixer"
  292.         module-udev-detect.discovered = "1"
  293.         device.icon_name = "audio-card"
  294.     ports:
  295.         analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
  296.             properties:
  297.                
  298.     active port: <analog-output>
  299. 1 source(s) available.
  300.   * index: 0
  301.     name: <alsa_output.platform-soc_audio.analog-mono.monitor>
  302.     driver: <module-alsa-card.c>
  303.     flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
  304.     state: SUSPENDED
  305.     suspend cause: IDLE
  306.     priority: 1000
  307.     volume: mono: 65536 / 100% / 0.00 dB
  308.             balance 0.00
  309.     base volume: 65536 / 100% / 0.00 dB
  310.     volume steps: 65537
  311.     muted: no
  312.     current latency: 0.00 ms
  313.     max rewind: 0 KiB
  314.     sample spec: s16le 1ch 44100Hz
  315.     channel map: mono
  316.                  Mono
  317.     used by: 0
  318.     linked by: 0
  319.     configured latency: 0.00 ms; range is 0.50 .. 1486.08 ms
  320.     monitor_of: 0
  321.     card: 0 <alsa_card.platform-soc_audio>
  322.     module: 6
  323.     properties:
  324.         device.description = "Monitor of bcm2835 ALSA Analog Mono"
  325.         device.class = "monitor"
  326.         alsa.card = "0"
  327.         alsa.card_name = "bcm2835 ALSA"
  328.         alsa.long_card_name = "bcm2835 ALSA"
  329.         device.bus_path = "platform-soc:audio"
  330.         sysfs.path = "/devices/platform/soc/soc:audio/bcm2835_alsa/sound/card0"
  331.         device.string = "0"
  332.         module-udev-detect.discovered = "1"
  333.         device.icon_name = "audio-card"
  334. 1 client(s) logged in.
  335.     index: 0
  336.     driver: <cli.c>
  337.     owner module: 24
  338.     properties:
  339.         application.name = "UNIX socket client"
  340. 2 card(s) available.
  341.     index: 0
  342.     name: <alsa_card.platform-soc_audio>
  343.     driver: <module-alsa-card.c>
  344.     owner module: 6
  345.     properties:
  346.         alsa.card = "0"
  347.         alsa.card_name = "bcm2835 ALSA"
  348.         alsa.long_card_name = "bcm2835 ALSA"
  349.         device.bus_path = "platform-soc:audio"
  350.         sysfs.path = "/devices/platform/soc/soc:audio/bcm2835_alsa/sound/card0"
  351.         device.string = "0"
  352.         device.description = "bcm2835 ALSA"
  353.         module-udev-detect.discovered = "1"
  354.         device.icon_name = "audio-card"
  355.     profiles:
  356.         output:analog-mono: Analog Mono Output (priority 200, available: unknown)
  357.         off: Off (priority 0, available: unknown)
  358.     active profile: <output:analog-mono>
  359.     sinks:
  360.         alsa_output.platform-soc_audio.analog-mono/#0: bcm2835 ALSA Analog Mono
  361.     sources:
  362.         alsa_output.platform-soc_audio.analog-mono.monitor/#0: Monitor of bcm2835 ALSA Analog Mono
  363.     ports:
  364.         analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
  365.             properties:
  366.                
  367.     index: 1
  368.     name: <bluez_card.78_44_05_4B_4F_FF>
  369.     driver: <module-bluez5-device.c>
  370.     owner module: 23
  371.     properties:
  372.         device.description = "JBL GO"
  373.         device.string = "78:44:05:4B:4F:FF"
  374.         device.api = "bluez"
  375.         device.class = "sound"
  376.         device.bus = "bluetooth"
  377.         device.form_factor = "headset"
  378.         bluez.path = "/org/bluez/hci0/dev_78_44_05_4B_4F_FF"
  379.         bluez.class = "0x240404"
  380.         bluez.alias = "JBL GO"
  381.         device.icon_name = "audio-headset-bluetooth"
  382.         device.intended_roles = "phone"
  383.     profiles:
  384.         headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: unknown)
  385.         a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 10, available: unknown)
  386.         off: Off (priority 0, available: yes)
  387.     active profile: <off>
  388.     ports:
  389.         headset-output: Headset (priority 0, latency offset 0 usec, available: unknown)
  390.             properties:
  391.                
  392.         headset-input: Headset (priority 0, latency offset 0 usec, available: unknown)
  393.             properties:
  394.                
  395. 0 sink input(s) available.
  396. 0 source output(s) available.
  397. 0 cache entrie(s) available.
  398.  
  399. ### HSP ##
  400.  
  401. pi@raspberrypi:~ $ pacmd set-card-profile 1 headset_head_unit
  402.  
  403. pi@raspberrypi:~ $ paplay -v -d bluez_sink.78_44_05_4B_4F_FF.headset_head_unit /tmp/h2g2.ogg
  404. Opening a playback stream with sample specification 'float32le 1ch 32000Hz' and channel map 'mono'.
  405. Connection established.
  406. Stream successfully created.
  407. Buffer metrics: maxlength=4194304, tlength=256000, prebuf=253444, minreq=2560
  408. Using sample spec 'float32le 1ch 32000Hz', channel map 'mono'.
  409. Connected to device bluez_sink.78_44_05_4B_4F_FF.headset_head_unit (index: 1, suspended: no).
  410. Time: 0.000 sec; Latency: 2000000 usec.        
  411. Time: 0.000 sec; Latency: 2000000 usec.        
  412. ^CGot signal, exiting.cy: 2000000 usec.        
  413.  
  414. ### A2DP ###
  415.  
  416. pi@raspberrypi:~ $ pacmd set-card-profile 1 a2dp_sink
  417.  
  418. pi@raspberrypi:~ $ paplay -v -d bluez_sink.78_44_05_4B_4F_FF.a2dp_sink /tmp/h2g2.ogg
  419. Opening a playback stream with sample specification 'float32le 1ch 32000Hz' and channel map 'mono'.
  420. Connection established.
  421. Stream successfully created.
  422. Buffer metrics: maxlength=4194304, tlength=256000, prebuf=253444, minreq=2560
  423. Using sample spec 'float32le 1ch 32000Hz', channel map 'mono'.
  424. Connected to device bluez_sink.78_44_05_4B_4F_FF.a2dp_sink (index: 2, suspended: no).
  425. Stream started.
  426. Playback stream drained.: 62986 usec.          
  427. Draining connection to server.
Advertisement
Add Comment
Please, Sign In to add comment