Re: [arch-general] *** GMX Spamverdacht *** Re: Muting internal speakers

2012-06-15 Thread Oon-Ee Ng
On Jun 16, 2012 2:00 AM, "Nelson Marambio"  wrote:
>
> Am 15.06.2012 18:05, schrieb Oon-Ee Ng:
>>
>> Having a bit more time to think now, to the OP, if this discussion hasn't
>> scared you off,
>
>
> Well, I have to confess that I became a bit meek by following the
discussion. Actually I just wanted to get a solution to my "problem".:)
> Oon-Ee, It would be great if you can send me your script or tell me the
article in the wiki.
>
Still not on my laptop, but I searched around, posted it a while back on
the pulseaudio wiki. Here it is

http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ#How_do_I_switch_the_default_sound_card.2C_moving_all_applications.3F

Again, not sure if by now there's a way to run this script whenever a card
is plugged in and out, if you do find that let me know =).  Like I said, I
just bind the script to a shortcut key using xbindkeys


Re: [arch-general] *** GMX Spamverdacht *** Re: Muting internal speakers

2012-06-15 Thread Heiko Baums
Am Fri, 15 Jun 2012 20:00:10 +0200
schrieb Nelson Marambio :

> Heiko, by installing GNOME, pulseaudio was installed as dependency I 
> guess.

That's one of the problems I have with PA, indeed. ;-)

> So please don't blame for starting with pulse, ok ?

I don't blame you, but I blame the people who always at once suggest
installing and using PA as the ultimate solution and answer for
everything. And I blame the developers who force the users to
installing PA as a dependency.

If PA is working for you, you want to deal with PA and PA solves your
problem, it's totally OK for me.

> ^^ After
> all I am confused if my installation uses ALSA or pulse now. I
> installed ALSA but the ALSAmixer shows me the volume level of
> pulse ???

I guess alsamixer only shows its own volume level. PA can set its own
volume level which is, of course, relative to the ALSA level. Just turn
up the volume to the highest level in PA and switch the volume level in
alsamixer. I guess then you will have a clue.

> If you made the experience that pulse failed where ALSA succeeded
> there is nothing to say against it. But I have to deal with my
> consumer-card (it's really an HDA-chip by Intel) and thus I can't
> contribute something relevant.
> 
> What I learned from this discussion
> 
> 1) there are several sound-layer (OSS, ALSA, pulse, Jack (?))
> 2) several layer can work together but also can result conflicts 
> (nothing but logical)

That's absolutely right. With one exception, OSS and ALSA are two
different sound drivers on the same level. OSS is the older one, and I
don't know if there's still an up-to-date version. ALSA has a OSS
plugin for compatibility reasons. PulseAudio and Jack are two sound
servers which are on the layer on top of ALSA or OSS.

Heiko


Re: [arch-general] *** GMX Spamverdacht *** Re: Muting internal speakers

2012-06-15 Thread Nelson Marambio

Am 15.06.2012 18:05, schrieb Oon-Ee Ng:

Having a bit more time to think now, to the OP, if this discussion hasn't
scared you off,


Well, I have to confess that I became a bit meek by following the 
discussion. Actually I just wanted to get a solution to my "problem".:)
Oon-Ee, It would be great if you can send me your script or tell me the 
article in the wiki.


Heiko, by installing GNOME, pulseaudio was installed as dependency I 
guess. So please don't blame for starting with pulse, ok ? ^^ After all 
I am confused if my installation uses ALSA or pulse now. I installed 
ALSA but the ALSAmixer shows me the volume level of pulse ???


If you made the experience that pulse failed where ALSA succeeded there 
is nothing to say against it. But I have to deal with my consumer-card 
(it's really an HDA-chip by Intel) and thus I can't contribute something 
relevant.


What I learned from this discussion

1) there are several sound-layer (OSS, ALSA, pulse, Jack (?))
2) several layer can work together but also can result conflicts 
(nothing but logical)


Spoken without any irony: thank you all for this experience. I already 
have at least two more question and I will use this mailinglist with 
pleasure !


P.S.: Don't care about the headline from GMX. German Mail-Provider 
sometimes handle mails writen in English very hysterical. I try to train 
the server-located Spamfilter with every new mail from this ML but it 
will take a while.


Re: [arch-general] *** GMX Spamverdacht *** Re: Muting internal speakers

2012-06-14 Thread Oon-Ee Ng
On Fri, Jun 15, 2012 at 11:23 AM, ShichaoGao  wrote:
> You can try instaling pulseaudio and pavucontrol , in pavucontrol you can
> set default device.

Which is only used for new streams (existing streams are not
automatically moved over). I have a small home-brew script which I use
to switch the default sink AND move all current streams to that new
default, but never figured out (didn't really try too hard) how to
automate it to plugging in/out of audio equipment. I think it wasn't
possible at that point in time to detect jack in or something like
that.


Re: [arch-general] *** GMX Spamverdacht *** Re: Muting internal speakers

2012-06-14 Thread ShichaoGao
You can try instaling pulseaudio and pavucontrol , in pavucontrol you can  
set default device.



--
Using Opera's revolutionary email client: http://www.opera.com/mail/


Re: [arch-general] *** GMX Spamverdacht *** Re: Muting internal speakers

2012-06-14 Thread Nelson Marambio
Hm ... then I will have a look at the conf-files ALSAMIXER showed up for 
information. Perhaps there is a nice switch ^^


Any other suggestions ?


Am 14.06.2012 23:13, schrieb Eric Ryan Jones:

Arch always did that automatically for me.  I do know that you can set up 
defaults and fallbacks in KDE just like in Windows.  I'm not sure about GNOME, 
though, as I have used KDE for a while.

-Original Message-
From: arch-general-boun...@archlinux.org 
[mailto:arch-general-boun...@archlinux.org] On Behalf Of Nelson Marambio
Sent: Thursday, June 14, 2012 4:52 PM
To: arch-general@archlinux.org
Subject: [arch-general] Muting internal speakers

Since the change from Win 7 to Arch there is just one function I really miss up 
to now. Perhaps someone of you can help me out.

Is it possible that Arch deactivates the internal speakers of my laptop when I 
plug in my USB-headset and turn input / output to this ?

In Windows I could define the USB headset as default for in-/output so Win made 
a fallback to internal speakers only when I plugged out the headset again.

It would be really great if Arch was that comfortable too. I know in GNOME 
there are just two clicks to do for switching to another audio hardware but ... 
:D

Warm regards,
Nelson.