quarta-feira, 26 de agosto de 2020

Manjaro manejando som bluetooth

 

 pacman -S pulseaudio-modules-bt libldac pulseaudio-bluetooth-a2dp-gdm-fix

 

 

 

listar os cards:

pacmd list-cards

3 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_06_00.1>
    driver: <module-alsa-card.c>
    owner module: 6
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA NVidia"
        alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 62"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:06:00.1"
        sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:06:00.1/sound/card0"
        device.bus = "pci"
        device.vendor.id = "10de"
        device.vendor.name = "NVIDIA Corporation"
        device.product.id = "0e0b"
        device.product.name = "GK106 HDMI Audio Controller"
        device.string = "0"
        device.description = "GK106 HDMI Audio Controller"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        output:hdmi-stereo: Saída de Digital Stereo (HDMI) (priority 5900, available: no)
        output:hdmi-surround: Saída de Digital Surround 5.1 (HDMI) (priority 800, available: no)
        output:hdmi-surround71: Saída de Digital Surround 7.1 (HDMI) (priority 800, available: no)
        output:hdmi-stereo-extra1: Saída de Digital Stereo (HDMI 2) (priority 5700, available: no)
        output:hdmi-surround-extra1: Saída de Digital Surround 5.1 (HDMI 2) (priority 600, available: no)
        output:hdmi-surround71-extra1: Saída de Digital Surround 7.1 (HDMI 2) (priority 600, available: no)
        output:hdmi-stereo-extra2: Saída de Digital Stereo (HDMI 3) (priority 5700, available: no)
        output:hdmi-surround-extra2: Saída de Digital Surround 5.1 (HDMI 3) (priority 600, available: no)
        output:hdmi-surround71-extra2: Saída de Digital Surround 7.1 (HDMI 3) (priority 600, available: no)
        off: Desligado (priority 0, available: unknown)
    active profile: <off>
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
    index: 1
    name: <alsa_card.pci-0000_08_00.3>
    driver: <module-alsa-card.c>
    owner module: 7
    properties:
        alsa.card = "1"
        alsa.card_name = "HD-Audio Generic"
        alsa.long_card_name = "HD-Audio Generic at 0xf7700000 irq 64"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:08:00.3"
        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:08:00.3/sound/card1"
        device.bus = "pci"
        device.vendor.id = "1022"
        device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
        device.product.id = "1457"
        device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
        device.string = "1"
        device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        input:analog-stereo: Entrada de Estéreo analógico (priority 65, available: no)
        output:analog-stereo: Saída de Estéreo analógico (priority 6500, available: unknown)
        output:analog-stereo+input:analog-stereo: Duplex estéreo analógico (priority 6565, available: no)
        output:iec958-stereo: Saída de Estéreo digital (IEC958) (priority 5500, available: unknown)
        output:iec958-stereo+input:analog-stereo: Saída de Estéreo digital (IEC958) + Entrada de Estéreo analógico (priority 5565, available: no)
        off: Desligado (priority 0, available: unknown)
    active profile: <output:analog-stereo>
    sinks:
        alsa_output.pci-0000_08_00.3.analog-stereo/#0: Family 17h (Models 00h-0fh) HD Audio Controller Estéreo analógico
    sources:
        alsa_output.pci-0000_08_00.3.analog-stereo.monitor/#0: Monitor of Family 17h (Models 00h-0fh) HD Audio Controller Estéreo analógico
    ports:
        analog-input-front-mic: Microfone frontal (priority 8500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-rear-mic: Microfone posterior (priority 8200, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-linein: Entrada de linha (priority 8100, latency offset 0 usec, available: no)
            properties:
               
        analog-output-lineout: Saída de linha (priority 9000, latency offset 0 usec, available: yes)
            properties:
               
        analog-output-headphones: Fones de ouvido (priority 9900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"
        iec958-stereo-output: Saída digital (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
            properties:
               
    index: 3
    name: <bluez_card.18_08_19_22_0D_26>
    driver: <module-bluez5-device.c>
    owner module: 27
    properties:
        device.description = "Bluedio."
        device.string = "18:08:19:22:0D:26"
        device.api = "bluez"
        device.class = "sound"
        device.bus = "bluetooth"
        device.form_factor = "headset"
        bluez.path = "/org/bluez/hci0/dev_18_08_19_22_0D_26"
        bluez.class = "0x260404"
        bluez.alias = "Bluedio."
        device.icon_name = "audio-headset-bluetooth"
        device.intended_roles = "phone"
    profiles:
        headset_head_unit: Unidade de headset (HSP/HFP) (priority 30, available: no)
        a2dp_sink: Reprodução de alta fidelidade (Destino A2DP) (priority 40, available: unknown)
        off: Desligado (priority 0, available: yes)
    active profile: <a2dp_sink>
    sinks:
        bluez_sink.18_08_19_22_0D_26.a2dp_sink/#2: Bluedio.
    sources:
        bluez_sink.18_08_19_22_0D_26.a2dp_sink.monitor/#2: Monitor of Bluedio.
    ports:
        headset-output: Headset (priority 0, latency offset 0 usec, available: unknown)
            properties:
               
        headset-input: Headset (priority 0, latency offset 0 usec, available: unknown)
            properties:


Achando o index do bluetooth, no meu caso está no index 3:

pacmd set-card-profile 3 a2dp_sink







domingo, 16 de agosto de 2020

convertendo arquivo tif em tif compactado

gdal_translate -co "TFW=YES" -co "TILED=YES" -co "COMPRESS=JPEG" -co "PHOTOMETRIC=YCBCR"   Q4332.tif Q4332_compress.tif