Re: [pulseaudio-discuss] troubleshooting switch-on-connect and switch-on-port-available

2021-10-26 Thread Krister
Hi Sean,

Thanks for the message.  It helped me realize what the real issue is: when
the machine is plugged into a screen via the USB-C -> HDMI dongle, then the
audio IO doesn't switch. When the external monitor is disconnected,
however, then the headphones do take control when plugged in!

I would expect the headphones to take control under all circumstances, even
when an external monitor is attached, as the reason for plugging in
headphones is to use them!  Would you agree that this may be considered a
bug?  Would it warrant opening an issue?

kms

On Sat, Oct 23, 2021 at 2:33 AM Sean Greenslade 
wrote:

> On Thu, Oct 21, 2021 at 09:42:51AM +0200, Krister wrote:
> > I have a new Inspiron 7320 detachable, and was able to get sound
> > working by compiling a recent SOF kernel (see
> > https://github.com/thesofproject/linux/issues/3161). Both the input
> > and output device are detected automatically but I have to manually
> > choose the Headphones output device every time I plug them in.
> >
> > I followed the instructions on this link
> > (https://askubuntu.com/a/1268529/14747) in order to try to see the
> > plugged in event using `log-level = debug` and journalctrl but there
> > is no message printed when I plug in the headphones. Could someone
> > please give me some hints on how to troubleshoot this situation?
>
> Hi, Krister.
>
> Can you try installing and running "evtest" and seeing if that displays
> a SW_HEADPHONE_INSERT event when you plug or unplug the headphones? Be
> sure to select the event number that corresponds to your headphone jack.
> Mine was called "HDA Intel PCH Headphone", yours may differ.
>
> One other thing I can think of is to try different headphones. A lot of
> newer devices use electrical detection (e.g. impedence sensing) to
> determine if headphones are plugged in, and some types of headphones
> might not reliably detect. You might also try some TRS vs. TRRS style
> headphones to see if that makes any difference.
>
> --Sean
>
>


Re: [pulseaudio-discuss] Where are stored sinks' settings?

2021-10-26 Thread Tanu Kaskinen
On Sun, 2021-10-24 at 21:09 -0400, Pierre-Luc Daoust wrote:
> Hi everybody!
> 
> I have a question that might look noob. All the settings from Pavucontrol,
> about which input sink goes to which output sink, where are they stored? I
> know how to list them with pacmd, but if I want to look through the
> persistent data in the appropriate config file, which one would it be? My
> distro is Manjaro.

Sink input routing is stored in ~/.config/pulse/*-stream-volumes.tdb
(or .gdb, I don't know if some distributions still use the gdbm format
for the PulseAudio databases). There's unfortunately no user-friendly
tool for inspecting the database contents, but Debian has the tdb-tools 
package which probably contains some tool for inspecting tdb files, I
haven't tried myself.

-- Tanu