JiriSko / amixer-webui

Web application for control ALSA volume
MIT License
53 stars 21 forks source link

"pulse" device not found on RPi4 #19

Open silverbullettruck2001 opened 3 years ago

silverbullettruck2001 commented 3 years ago

I installed this via the .deb file on my RPi4 and it seems to be having an issue with a device that doesn't exist. Here is the error that is listed in the syslog. Below that is what is returned when I do an aplay -l. Audio plays fine via the device otherwise, I just wanted to get the webui working so I could control it easily since it is a headless setup. Any suggestions would be appreciated.

syslog ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL pulse amixer: Control device pulse open error: No such file or directory 192.168.0.6 - - [26/Sep/2020 11:58:32] "GET /cards/ HTTP/1.1" 200 - [2020-09-26 11:58:32,413] ERROR in app: Exception on /controls/ [GET] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/share/amixer-webui/alsamixer_webui.py", line 235, in get_controls data = json.dumps(app.__get_controls__()) File "/usr/share/amixer-webui/alsamixer_webui.py", line 145, in __get_controls__ channel_desc = self.__get_channel_name__(amixer_chandesc, interface["name"], i) File "/usr/share/amixer-webui/alsamixer_webui.py", line 61, in __get_channel_name__ if name.split(" ")[-2] in line: IndexError: list index out of range 192.168.0.6 - - [26/Sep/2020 11:58:32] "GET /controls/?1601139511142 HTTP/1.1" 500 - ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL equal amixer: Mixer attach equal error: No such file or directory ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL equal amixer: Control equal open error: No such file or directory 192.168.0.6 - - [26/Sep/2020 11:58:33] "GET /equalizer/ HTTP/1.1" 200 -

aplay -l results **** List of PLAYBACK Hardware Devices **** card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0