On Monday, 30 August 2021 11:30:38 BST Alexander Puchmayr wrote:
> Hi there,
> 
> I have a weird problem on my Lenovo P14s laptop. Before I applied a world
> upgrade (based on August 22 state portage), the internal speaker of the
> laptop worked fine, but now its all silent, although all mixer levels are
> 100% and no channel is muted.

There was a recent move to pipewire which could have jumbled audio devices 
around for you - but I am not familiar with how pipewire works, or why it 
would have caused this problem.

https://wiki.gentoo.org/wiki/PipeWire

In my use case the capture device (on board mic) is now always enabled upon a 
reboot and I have to manually disable it each time, because my selection is 
not being stored.

NOTE: I don't use pulseaudio on this system, just alsa and now it is alsa plus 
pipewire.  I haven't yet looked how to configure it.

 $ ps axf | grep pipe
19015 pts/5    S+     0:00      \_ /bin/grep -E --colour=auto --color=auto 
pipe
 4334 ?        Sl     0:05 /usr/bin/pipewire
 4349 ?        Sl     0:00  \_ /usr/bin/pipewire-media-session
 4350 ?        Sl     0:00  \_ /usr/bin/pipewire -c pipewire-pulse.conf


> Observed facts:
> * Connecting a HDMI tv-set produces sound over the tv-set properly
> * Booting Win10: Internal speakers working fine --> no hw issue
> * Connecting headphone via audio jack under linux - no sound.
> * Reverting to backup makes sound work again --> config/sw problem
> introduced by update
> * In plasma's system settings/audio tray, the Speaker output device is not
> shown -- only 3xHDMI (The analog speaker seems to have gone)
> 
> The kernel is exactly the same as before the upgrade, didn't recompile it
> (sys-kernel/gentoo-sources-5.12.0) --> no kernel issue

>From the above observations it seems your default audio card has been swapped 
from analogue to HDMI.  This seems to be the default for many laptops.

[snip...]

> Any further ideas?
> 
> Thanks, Alex

You can try swapping them around by adding in /etc/asound.conf appropriate 
entries; e.g. this is what I have in mine:

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1

Where in my case card 1, device 0, is the analogue audio device "HDA-Intel - 
HD-Audio Generic":

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: CX20757 Analog [CX20757 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Alternatively, take a look at this method of controlling the order in which 
audio modules are loaded:

https://wiki.gentoo.org/wiki/ALSA#Laptops_with_HDMI_audio_output

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to