You are not logged in.

#1 2024-07-12 13:26:35

neyb
Member
Registered: 2019-06-21
Posts: 19

xps 13 9340 (2024) - problem with mic (udev?)

Hello everyone,

I recently get a xps 13 9340 and it is a nighmare to setup...

In this topic I'd like to fix my integrated microphone.

I've already created a issue on ucm about it and they pinpoint a problem in initialisation that can be resolved by removing the `/etc/alsa/state-daemon.conf` file and restarting the alsa-resolve service. The problem is I have to do it after everyreboot.

This message explains me it probably comes from the udev rule in `/lib/udev/rules.d/90-alsa-restore.rules` (I actually have the exact same file) and that it udev rules are maintained by the distro... So here I am...

❯ cat /lib/udev/rules.d/90-alsa-restore.rules
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", TEST=="/usr/bin", TEST=="/usr/share/alsa", GOTO="alsa_restore_go"
GOTO="alsa_restore_end"

LABEL="alsa_restore_go"
TEST!="/etc/alsa/state-daemon.conf", RUN+="/usr/bin/alsactl restore $devnode"
TEST=="/etc/alsa/state-daemon.conf", RUN+="/usr/bin/alsactl nrestore $devnode"

LABEL="alsa_restore_end"

The wiki says udev is part of the systemd package (although pacman -F /lib/udev/rules.d/90-alsa-restore.rules returns nothing)...

I'm looking for help here because I don't know what to do, where to report this issue... Well if anyone could help that would be welcome.

Offline

#2 2024-07-12 14:40:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,020

Re: xps 13 9340 (2024) - problem with mic (udev?)

Your system breaks when alsactl tries to restore old values. If you "fix the situation", then run an explicit

sudo alsactl store

does that not stick properly on the next boot?

Otherwise if your issue is because alsa-restore triggers an invalid state, you could also just mask the alsa-restore service so it's not ran at all. FWIW if you're actually using pipewire or pulseaudio or so make, sure the mic isn't muted there, otherwise they will initially apply their own state.

Offline

#3 2024-07-13 14:29:27

neyb
Member
Registered: 2019-06-21
Posts: 19

Re: xps 13 9340 (2024) - problem with mic (udev?)

I believe the file asound state is correct : to test it I simply ran the

sudo alsactl restore

and the mic seem to work after that.

I also tried what you suggest, but it doesn't work (this also tends to say that alsa state file is ok).

Offline

#4 2024-07-19 14:14:25

neyb
Member
Registered: 2019-06-21
Posts: 19

Re: xps 13 9340 (2024) - problem with mic (udev?)

Has any xps 9350 user the same issue ?

Offline

#5 2024-07-19 16:31:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,020

Re: xps 13 9340 (2024) - problem with mic (udev?)

What happens if you mask away the udev rule?

sudo ln -s /dev/null /etc/udev/rules.d/90-alsa-restore.rules

Offline

#6 2024-07-21 19:23:33

neyb
Member
Registered: 2019-06-21
Posts: 19

Re: xps 13 9340 (2024) - problem with mic (udev?)

Well it does not to seems to change anything (I rmed it).

Also I've found that 'usr/lib/udev/rules.d/90-pipewire-alsa.rules' is part of 'alsa-utils' and 'usr/lib/udev/rules.d/90-pipewire-alsa.rules' is part of 'alsa-card-profiles'.

Offline

Board footer

Powered by FluxBB