Giter Site home page Giter Site logo

Comments (9)

marioortizmanero avatar marioortizmanero commented on May 20, 2024 2

The new update v2.2.1 (also available on the AUR) should fix this issue.

from polybar-pulseaudio-control.

marioortizmanero avatar marioortizmanero commented on May 20, 2024 1

Or rather, try running the script with the prefix LANG=en_US and see if it works that way. I can make a PR to fix that later. Or maybe with LC_ALL=C, I don't know which one is best.

from polybar-pulseaudio-control.

marioortizmanero avatar marioortizmanero commented on May 20, 2024

Can you show me the output of pactl list sinks? VOL_LEVEL is probably failing to be parsed

from polybar-pulseaudio-control.

brerk avatar brerk commented on May 20, 2024

Sure, my system is in spanish, so maybe that its the source of the problem

$ pactl list sinks
Destino #0
	Estado: RUNNING
	Nombre: alsa_output.pci-0000_00_1f.3.analog-stereo
	Descripción: Audio Interno Estéreo analógico
	Controlador: module-alsa-card.c
	Especificación de muestra: s16le 2ch 44100Hz
	Mapa de canales: front-left,front-right
	Módulo propietario: 6
	Silencio: no
	Volumen: front-left: 29868 /  46% / -20.48 dB,   front-right: 29868 /  46% / -20.48 dB
	        balance 0.00
	Volumen base: 65536 / 100% / 0.00 dB
	Fuente que lo monitoriza: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
	Latencia: 76799 usec, configurados 105000 usec
	Indicadores: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
	Propiedades:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC3204 Analog"
		alsa.id = "ALC3204 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 0x91620000 irq 140"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "34c8"
		device.product.name = "Ice Lake-LP Smart Sound Technology 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 = "Estéreo analógico"
		device.description = "Audio Interno Estéreo analógico"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Puertos:
		analog-output-speaker: Speakers (type: Altavoz, priority: 10000, availability unknown)
		analog-output-headphones: Headphones (type: Auriculares, priority: 9900, availability group: Legacy 2, not available)
	Puerto Activo: analog-output-speaker
	Formatos:
		pcm

from polybar-pulseaudio-control.

marioortizmanero avatar marioortizmanero commented on May 20, 2024

Ah yup that must be it. We do use LANG=$LANGUAGE in listen() to get events in english, but the rest of the calls don't have that. Can you try it with LANG=en_US pactl list sinks?

from polybar-pulseaudio-control.

brerk avatar brerk commented on May 20, 2024

Yes, this command works as expected:

$ LANG=en_US pulseaudio-control --sink-nickname "alsa_output.pci-0000_00_1f.3.analog-stereo:  Volume"  listen

61% Volume

Thanks for the help :)

from polybar-pulseaudio-control.

marioortizmanero avatar marioortizmanero commented on May 20, 2024

No problem! Can you try one last thing?

Try adding after the LANGUAGE=en_US line in the script a line with export LANG=en_US. That should make it work for every comand without needing to add it as a prefix, but I want to make sure before adding it to the script.

from polybar-pulseaudio-control.

brerk avatar brerk commented on May 20, 2024

Just added the export LANG=en_US in the script, it works as expected.

from polybar-pulseaudio-control.

marioortizmanero avatar marioortizmanero commented on May 20, 2024

Great thanks! I'll update the script then.

from polybar-pulseaudio-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.