[Sugar-devel] Fwd: Running "pulseaudio" and "alsa" together.

Ajay Garg ajay at activitycentral.com
Sun Jun 3 14:12:43 EDT 2012


Following are the reasons for pulse-audio not being audible ::


 (i)
   [Pulse-audio]
   The pulseaudio default-sink needs to be unmuted once (therafter, the
"un-muteness is persisted").

   This is done through the folowing shell-script ::


################################################################################
   pulseaudio_default_sink=`pactl stat | grep "Default Sink: " | sed
s/"Default Sink: "//`
   pactl set-sink-mute $pulseaudio_default_sink 0

################################################################################

   I think that this should be a candidate for upstream OOB :-)



   (ii)
   [Pulse-audio, Alsa-audio]
   Also, by default, the gconf-value "/desktop/sugar/sound/volume" is set
to "0" by default. Thus, the XO-user needs to "up" the volume everytime.



Regards,
Ajay




On Sat, Jun 2, 2012 at 9:47 PM, Peter Robinson <pbrobinson at gmail.com> wrote:

> Do you actually start pulseaudio anywhere? It needs to be started at
> some point during the user "login".
>
> Peter
>
> On Sat, Jun 2, 2012 at 2:05 PM, Ajay Garg <ajay at activitycentral.com>
> wrote:
> > FYI.
> >
> > Will be helpful for any help in this regard.
> >
> >
> > Regards,
> > Ajay
> >
> > ---------- Forwarded message ----------
> > From: Ajay Garg <ajay at activitycentral.com>
> > Date: Sat, Jun 2, 2012 at 6:32 PM
> > Subject: Running "pulseaudio" and "alsa" together.
> > To: pulseaudio-discuss-request at lists.freedesktop.org,
> > alsa-user at lists.sourceforge.net, Discussion of the development of and
> with
> > GStreamer <gstreamer-devel at lists.freedesktop.org>
> >
> >
> > Hi all.
> >
> > I have been banging my head for over 5 days now; went through whatever
> > google-literature I could possibly through.
> > But I guess I will have to ask the experts :|
> >
> >
> > I will list down my queries with the story regarding that query, so as to
> > maintain modularity as far as possible.
> >
> >
> > I have a x86-based Fedora-14 Dell laptop; and a XO-1.
> >
> >
> > A)
> > On my Dell laptop, the following work seamlessly, and I am able to enjoy
> the
> > mp3.
> >
> > (i)    gst-launch filesrc location=/path/to/mp3 ! mad ! alsasink
> >
> > (ii)   gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink
> >
> >
> > However, on my XO-1, only the following works ::
> >
> >
> > (i)    gst-launch filesrc location=/path/to/mp3 ! mad ! alsasink
> >
> > whereas the following shows the "pulsesink" plugin not found error ::
> >
> > (ii)   gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink
> >
> >
> > I figured out that the package "gstreamer-plugins-good" is required for
> the
> > "pulsesink" plugin.
> >
> > So, I did "gst-inspect" on both machines, and "rpm -qa | grep
> > gstreamer-plugins-good" on both the machines.
> >
> > To my horror, I saw that the package
> > "gstreamer-plugins-good-0.10.26-1.fc14.i686" was installed on both the
> Dell
> > machine, and the XO-1, but only the Dell laptop showed the presence of
> > "pulsesink".
> >
> > Why could this difference be ?
> >
> >
> >
> >
> >
> >
> > B)
> > Anyhow, I copied "libgstpulse.so" from my Dell machine to the XO-1.
> > Thereafter, "pulsesink" could be recognised on the XO-1.
> >
> > However, "gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink"
> > resulted in a sound only on Dell, and  not XO-1.
> >
> > So, I researched further, and concluded that I needed to install
> > "alsa-plugins-pulseaudio" on the XO-1, so as to set up the pulseaudio
> > server, and have the alsa-device as the "other end of the pulseaudio
> proxy".
> >
> > So, I installed the package.
> >
> > However, SOUND HAS STOPPED PLAYING COMPLETELY ON THE XO-1 (the only time
> I
> > hear some sound is during boot-up time).
> >
> > If I remove "alsa-plugins-pulseaudio", I can again hear the sound via
> > "alsasink", but not through "pulsesink".
> >
> > If I re-install "alsa-plugins-pulseaudio", I can not hear sound through
> > "alsasink", nor "pulsesink",
> > (
> >     not even after doing the following steps ::
> >
> >                            pulsesudio --kill
> >                            sudo rm -r ~/.pulse
> >                            sudo rm -r ~/.pulse-cookie
> >                            pulseaudio --start
> >
> >                            <trying to run the mp3 with sudo previleges.>
> > )
> >
> >
> > So, what other thing could I possibly do?
> >
> >
> >
> > Will be grateful for a reply.
> >
> >
> > Thanks and Regards,
> > Ajay
> >
> >
> >
> >
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20120603/2b1d8970/attachment.html>


More information about the Devel mailing list