Starting mpg123 over ssh

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Starting mpg123 over ssh

Postby didiw » Tue Apr 30, 2013 12:17 pm

Hi
I am running Arch linux on a Raspberry pi.
mpg123 run without any issues from keyboard over usb (tty1)

after a restart, if I try to start mpg123 (or alsamixer) over a ssh login I get
the following:

[dw@alarmpi ~]$ mpg123 Music/*
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function
snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file
or directory
ALSA lib pcm.c:2227:(snd_pcm_open_noupdate) Unknown PCM default
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.15.3; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Directory: Music/
Playing MPEG stream 1 of 165: 07_waiting_in_vain.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz stereo
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function
snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file
or directory
ALSA lib pcm.c:2227:(snd_pcm_open_noupdate) Unknown PCM default
[sdl.c:78] error: Couldn't open SDL audio: No available audio device
[audio.c:630] error: failed to open audio device
[mpg123.c:546] error: failed to reset audio device: No such file or directory
[dw@alarmpi ~]$ alsamixer
cannot open mixer: No such file or directory

If I start mpg123 (or alsamixer) directly with a keyboard connected to
the Raspberry Pi music starts playing Bob Marley!

And now ("Curioser and curioser" as Alice (in Wonderland) said to the
caterpillar) I can run mpg123 over ssh as well...
... until next reboot.

Any ideas? (I want to run the RPi headless as a sound machine;-)
didiw
 
Posts: 3
Joined: Tue Apr 30, 2013 12:08 pm

Re: Starting mpg123 over ssh

Postby crashmaster » Thu May 02, 2013 12:54 am

I only work over ssh with the RPi's and i just tried to reproduce your problem. After a reboot i connected with ssh and played a mp3 with mpg123 - here it works (i'm not using HDMI but analog out).
But i have problems with Alsas volume adjustment (see other thread).
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am

Re: Starting mpg123 over ssh

Postby didiw » Sat May 04, 2013 8:37 pm

usermod -a -G audio dw
brought the solution.
But, I still not know why there was this difference between tty1 and ssh login....
didiw
 
Posts: 3
Joined: Tue Apr 30, 2013 12:08 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests