General Question: dbus and speakers
Andrew Farris
flyindragon1 at aol.com
Wed Sep 2 04:06:52 UTC 2009
On Tue, 2009-09-01 at 22:09 -0500, Tab Gilbert wrote:
>
>
> On Tue, Sep 1, 2009 at 21:43, Andrew Farris <flyindragon1 at aol.com>
> wrote:
> Hey all! I've got a question related to dbus events and
> speakers...
>
> It doesn't appear that dbus gets any information on when
> speakers/audio
> devices are plugged in. Does anybody know how this info could
> be sent to
> dbus, or if it's even possible?
>
>
> I think your question is over my level of experience but I do have a
> pair of USB speakers that took me a while to figure out how to make
> them make sound. I installed PulseAudio volume control. That did not
> solve the problem but I read to right click on the playback button
> area and it gives a menu of attached devices. I selected USB and they
> started functioning. It is a pain having to do it each time I install
> them but they are only used on my laptop. Maybe this is of some
> assistance. I hope so. If not, maybe some of the more experienced
> folks will chime in.
I appreciate the input. I suppose it would be more helpful if I
explained myself...
I was wanting to continue practicing my programming skills by making
some little apps that might be useful to somebody besides me, and that
wouldn't be too hard to do. I'm probably already getting in over my
head, but the first thing I wanted to do was make an extension for the
sound properties program (i.e. gnome-sound-properties) to allow it to
directly set up/modify pulseaudio/s daemon.conf file in a safe,
user-specific way (i.e. not system-wide).
While working on this, it lead me to an idea about including speaker
tests, which then lead me to an idea of trying to implement something
like RealTek does for its newer systems with a (windows only) control
panel. It basically detects whenever you plug in an audio device (i.e. a
speaker, mic, etc) and it pops up, allowing you to configure what to
treat the new speaker as (and set a default behavior for new
speakers/devices, I believe).
I was hoping I could accomplish something similar (maybe not w/ a popup)
on ubuntu by catching dbus messages about inserted speakers, but as dbus
doesn't issue events for this I was thinking maybe there was some simple
way to enable it...
It now also occurs to me that this might be better asked on the *-dev
lists or something...I'll move my convo there as well, and see if I can
get any info.
If anybody's got any ideas though, I'd be more than happy to hear them!
--
Andrew
_____________________________
Beware of a dark-haired man with a loud tie.
More information about the ubuntu-users
mailing list