-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ThinkPad P14s Gen 5 AMD micmute LED is not working sometimes. #433
Comments
The ctl-led mic setting is set here: https://github.com/alsa-project/alsa-ucm-conf/blob/40d9c6c/ucm2/HDA/HDA.conf#L57-L58 . The alsactl utility should execute the Boot sequences on boot (udev / alsa-state service). I would check logs,if there's something suspicious when things are not working. |
alsa-info-matterhorn-p-amd-3-6.5-1025-oem-ucm1.2.6.3.log Uploaded the failure log of alsa-info with 6.5 kernel and UCM 1.2.6.3. |
@perexg It seems that the BootSequence is not executed correctly in the fail case. What log would you suggest us to check? How do we make sure the detach/attach are really invoked in the HDA.conf? |
It may be something with the card probe order. UCM tries to detect the ACP microphone here: https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/HDA/HDA.conf#L6 . But if ACP driver is loaded with a delay, the microphone is not detected, thus the FixedBootSequence is not executed. To debug: You can add those lines at the end of the above file:
and create a bash script like (do not forget to make it executable):
Reboot and check the contents of /tmp/alsa-cards-hda.txt , if there is ACP sound card. |
I think you're on to something. Is this the same bug as https://bugzilla.kernel.org/show_bug.cgi?id=219229? |
t14g5-amd-micmuteled-fail-journal.log @perexg no output from FixedBootSequence from the script. I suspect it's the following error in log above: Note: |
The From log:
So the HDA driver is loaded after alsa-restore service. In this case, udev rule in
|
@perexg Ubuntu 24.04 do have this udev rule:
Tested your udev rule too, no effects. |
Check if you have SELinux in the permissive mode (if active) to test FixedBootSequence additions. Also alsactl have '-v' option which can be used multiple times to produce some debug log to see what's wrong. I can give only hints. This hardware is not in my hands. |
@perexg selinux is disabled: After adding '-v', it's still no useful log. LABEL="alsa_restore_go" LABEL="alsa_restore_end" |
@superm1 and @perexg The issue is still there. |
amd-micmuteled-tpm2-hmac.tar.gz Attach the log of both disabled and enabled TPM2_HMAC. |
To me it sounds like a subtle race condition still. How about changing the conditions for |
The mic and sound output works fine.
The mute LED works fine.
But when press Fn+F4, the mic-mute led is not working sometimes after bootup.
The failrate is like 1/10.
Tested with latest alsa-ucm from git, it's reproduced.
/sys/class/sound/ctl-led/mic/card1# cat list
7
amixer -c 1 controls
numid=12,iface=CARD,name='Headphone Jack'
numid=11,iface=CARD,name='Mic Jack'
numid=13,iface=CARD,name='Speaker Phantom Jack'
numid=10,iface=MIXER,name='Master Playback Switch'
numid=9,iface=MIXER,name='Master Playback Volume'
numid=2,iface=MIXER,name='Headphone Playback Switch'
numid=1,iface=MIXER,name='Headphone Playback Volume'
numid=16,iface=MIXER,name='PCM Playback Volume'
numid=17,iface=MIXER,name='Mic ACP LED Capture Switch'
numid=8,iface=MIXER,name='Mic Boost Volume'
numid=7,iface=MIXER,name='Capture Switch'
numid=6,iface=MIXER,name='Capture Volume'
numid=5,iface=MIXER,name='Auto-Mute Mode'
numid=4,iface=MIXER,name='Speaker Playback Switch'
numid=3,iface=MIXER,name='Speaker Playback Volume'
numid=15,iface=PCM,name='Capture Channel Map'
numid=14,iface=PCM,name='Playback Channel Map'
echo 'Capture Switch' > detach
echo 'Mic ACP LED Capture Switch' > attach
/sys/class/sound/ctl-led/mic/card1# cat list
17
Then the micmute LED will work.
alsa-info-amd-micmutled.txt
The text was updated successfully, but these errors were encountered: