Alsamixer

Raspberry Pi related support

Alsamixer

Postby nic » 05 Jun 2018, 19:43

Just when I was about to start building an active setup using the Piano 2.1 DAC , I can no longer get into Alsamixer . I am using the ip:8080 and getting connection refused . Any ideas what is going on ?

cheers

Nic
Pi3 , Kali / Piano 2.1 (with dedicated choke input PSU) ----6SN7 beta follower---BUZ900P choke loaded source follower---Beyma 15XT in 230l cabinets/TPL150H AMT .
User avatar
nic
 
Posts: 63
Joined: 16 Dec 2013, 20:52
Location: London UK

Re: Alsamixer

Postby hondagx35 » 06 Jun 2018, 15:48

Hi Nic,

the Alsamixer (Port 80(0) is only available on my latest image.
Did you modify something? Kernelupdate or so?

Frank
User avatar
hondagx35
 
Posts: 3013
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Alsamixer

Postby nic » 06 Jun 2018, 17:22

Hi Frank , Thanks . I have the latest version running and was able to view the Alsamixer page previously . No changes made to kernel , 4.4.39-A is running .

Edit : It's running 0.4b .

cheers

Nic
Pi3 , Kali / Piano 2.1 (with dedicated choke input PSU) ----6SN7 beta follower---BUZ900P choke loaded source follower---Beyma 15XT in 230l cabinets/TPL150H AMT .
User avatar
nic
 
Posts: 63
Joined: 16 Dec 2013, 20:52
Location: London UK

Re: Alsamixer

Postby cmh714 » 21 Jun 2018, 16:19

just use the command line....maybe not as elegant but it works.
cmh714
 
Posts: 324
Joined: 04 May 2014, 03:06

Re: Alsamixer

Postby grofweg » 24 Jun 2018, 08:23

nic wrote:Hi Frank , Thanks . I have the latest version running and was able to view the Alsamixer page previously . No changes made to kernel , 4.4.39-A is running .

Edit : It's running 0.4b .

cheers

Nic
no changes to mpd as well? IIRC updating mpd using rern' s enhancements broke the alsamixer settings page in my case.

Sent from my Redmi 3S using Tapatalk
grofweg
 
Posts: 18
Joined: 30 Sep 2017, 11:37

Re: Alsamixer

Postby hondagx35 » 24 Jun 2018, 12:18

Hi grofweg ,

the alsamixer webui is implemented by a python script running in the background.

* Please get access to the console and check the status:
Code: Select all
systemctl status amixer-webui

The output should look like this:
Code: Select all
root@runeaudio(rw):~# systemctl status amixer-webui
● amixer-webui.service - Rune Audio Amixer-WebUI Service
   Loaded: loaded (/usr/lib/systemd/system/amixer-webui.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2016-02-22 15:40:17 CET; 2 years 4 months ago
 Main PID: 297 (python)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/amixer-webui.service
           └─297 python /usr/share/amixer-webui/alsamixer_webui.py

Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL equal
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: amixer: Mixer attach equal error: No such file or directory
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL equal
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: amixer: Control equal open error: No such file or directory
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:33] "GET /equalizer/ HTTP/1.1" 200 -
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:33] "GET /card/?1529837737653 HTTP/1.1" 200 -
Jun 24 12:55:47 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:47] "PUT /card/0/ HTTP/1.1" 200 -
Jun 24 12:55:47 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:47] "GET /controls/?1529837752020 HTTP/1.1" 200 -
Jun 24 12:55:49 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:49] "PUT /card/1/ HTTP/1.1" 200 -
Jun 24 12:55:49 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:49] "GET /controls/?1529837754318 HTTP/1.1" 200 -


If you get errors please post your output.

* Next try to start the script manually:
Code: Select all
systemctl stop amixer-webui
python /usr/share/amixer-webui/alsamixer_webui.py


Frank

- Get access to the console:
Use SSH from your PC
    If you are not familiar with SSH read this for Windows or this for Linux/MacOS
    The default login for RuneAudio is "root" with the password "rune" (without quotes).

- Use sftp to access files on Rune Audio:
Get WinSCP from here and install it.
When it opens setup the following:
- Session
File Protocol: SCP
Host name: The IP address of your Raspberry Pi
User name: root
Password: rune

That's it, connect and you can transfer files just by dragging and dropping.
User avatar
hondagx35
 
Posts: 3013
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Alsamixer

Postby grofweg » 24 Jun 2018, 19:08

Thanks Frank,

just did a fresh install and installed rern' s addon, and upgraded mpd to 0.20.20.
With the same result, no acces to page 8080.
Output of a-mixer-webui:
Code: Select all
oot@AuneS6(rw):/home/root# systemctl status amixer-webui
● amixer-webui.service - Rune Audio Amixer-WebUI Service
   Loaded: loaded (/usr/lib/systemd/system/amixer-webui.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Sun 2018-06-24 19:54:36 CEST; 3s ago
  Process: 1516 ExecStart=/usr/share/amixer-webui/alsamixer_webui.py (code=exited, status=1/FAILURE)
 Main PID: 1516 (code=exited, status=1/FAILURE)

Jun 24 19:54:36 AuneS6 systemd[1]: amixer-webui.service: Unit entered failed state.
Jun 24 19:54:36 AuneS6 systemd[1]: amixer-webui.service: Failed with result 'exit-code'.
root@AuneS6(rw):/home/root# systemctl stop amixer-webui
root@AuneS6(rw):/home/root# python /usr/share/amixer-webui/alsamixer_webui.py
Traceback (most recent call last):
  File "/usr/share/amixer-webui/alsamixer_webui.py", line 17, in <module>
    from flask import Flask, Response
ImportError: No module named flask
root@AuneS6(rw):/home/root#



Greetings,

Martin
grofweg
 
Posts: 18
Joined: 30 Sep 2017, 11:37

Re: Alsamixer

Postby janui » 25 Jun 2018, 07:03

Hi grofweg,
if you just run the thing which failed from the command prompt it will often report more details about the reason for failure. In this case run the command:
Code: Select all
/usr/share/amixer-webui/alsamixer_webui.py
See what comes back.
janui
User avatar
janui
 
Posts: 392
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Alsamixer

Postby grofweg » 25 Jun 2018, 11:03

janui wrote:Hi grofweg,
if you just run the thing which failed from the command prompt it will often report more details about the reason for failure. In this case run the command:
Code: Select all
/usr/share/amixer-webui/alsamixer_webui.py
See what comes back.
janui


isn't that what I already did? To be clear here: I have 2 sd cards with Rune 0.4.
1- plain Rune 0.4, 8080 page accessible without issue.
2- Rune and installed rern enhancements. Updated mpd to 0.20.20. During this update, several python packages are updated! This might be part of the problem.

I have a rpi 3b.
grofweg
 
Posts: 18
Joined: 30 Sep 2017, 11:37

Re: Alsamixer

Postby hondagx35 » 25 Jun 2018, 17:13

Hi grofweg,

isn't that what I already did?

Yes.

Ther problem is missing FLASK package
Code: Select all
Traceback (most recent call last):
  File "/usr/share/amixer-webui/alsamixer_webui.py", line 17, in <module>
    from flask import Flask, Response
ImportError: No module named flask


Try:
Code: Select all
pip install flask


from amixer-webui doc:
Server requirements
* python2.6 and newer; or python3.3 and newer
* python-pip as prerequisites for Flask (pip install flask)
* alsa-utils
* alsaequal (OPTIONAL: for equalizer)


Frank
User avatar
hondagx35
 
Posts: 3013
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest