lemmyg / t2-apple-audio-dsp

Apple T2 audio DSP configs
MIT License
13 stars 3 forks source link

Microphone stopped working after the last apt upgrade #12

Closed Rom888 closed 11 months ago

Rom888 commented 11 months ago

The microphone was working, but stopped working after the last 'sudo apt upgrade'

$ pw-record /tmp/test.wav
remote error: id=0 seq:39 res:-32 (Broken pipe): connection error
stream node 105 unconnected

machine:

Ubuntu 23.04
6.5.9-t2-lunar

MacBookPro16.1
Intel Core i9 2.3g

hybrid graphics:
Intel UHD graphics 630
AMD radeon pro 5500M

macOs: Ventura 13.2
lemmyg commented 11 months ago

Try to follow again the steps to install Debian upstream repo stuff. https://github.com/lemmyg/t2-apple-audio-dsp/blob/mic/README.md

Rom888 commented 11 months ago

Tried, rebooted and got the same error.

I see some errors in the log, for example:

$ journalctl --boot=0 | grep pipewire > /tmp/pipewire-logs.txt

Nov 09 14:16:42 mb pipewire[2946]: mod.filter-chain: control 'Amplitude (dB)' can not be set: No such file or directory
Nov 09 14:16:42 mb pipewire[2946]: mod.filter-chain: control 'Amplitude (dB)' can not be set: No such file or directory
Nov 09 14:16:42 mb pipewire[2946]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files

pipewire-logs.txt

lemmyg commented 11 months ago

that error look like from this plugin https://github.com/lemmyg/t2-apple-audio-dsp/blob/mic/config/10-t2_mic.conf#L57

that plugin should be installed with sudo apt install swh-plugins

I never had this error. I have been using 23.04 and now 23.10

I would suggest to uninstall and install all again

lemmyg commented 11 months ago

Finally I found that I'm getting same parameters warning. Im fix it.

Any they are just warnings. I don't think is the cause of your issue.

Please mic volumes are at 100%.

Specially apple mic input that would be the source of the mic DSP.

Rom888 commented 11 months ago

I checked it and yes, all volumes are 100%.

$ pactl list sources > /tmp/list-sources.txt

list-sources.txt

Still the same error:

$ pw-record /tmp/test.wav
remote error: id=0 seq:39 res:-32 (Broken pipe): connection error
stream node 130 unconnected
lemmyg commented 11 months ago

Try

pw-cli list-objects

You find out which node is 130.

On Fri, 10 Nov 2023, 6:10 am Rom888, @.***> wrote:

I checked it and yes, all volumes are 100%.

$ pactl list sources > /tmp/list-sources.txt

list-sources.txt https://github.com/lemmyg/t2-apple-audio-dsp/files/13316150/list-sources.txt

Still the same error:

$ pw-record /tmp/test.wav remote error: id=0 seq:39 res:-32 (Broken pipe): connection error stream node 130 unconnected

— Reply to this email directly, view it on GitHub https://github.com/lemmyg/t2-apple-audio-dsp/issues/12#issuecomment-1805156578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFKRHGMSQLDSEC5XRIPXADYDXANRAVCNFSM6AAAAAA7EBYN7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVGE2TMNJXHA . You are receiving this because you commented.Message ID: @.***>

Rom888 commented 11 months ago

I see the max id = 98. list-objects.txt

lemmyg commented 11 months ago

it looks like MacBook Pro T2 DSP Mic doesnt for me too.

I didnt do any change recently, so I dont know why.

MacBook Pro T2 DSP HeadSetMic seems working. I didn't use those mics for a while as usually I use an external webcam for my meetings

codingnooob commented 11 months ago

Same issue here on a Macbook Pro 16.2 running Linux Mint 21.2 x86_64 (Cinnamon DE) with Kernel 6.6.1-t2-jammy. Along with the microphone input not working, the facetime camera freezes and the bluetooth headset connects and disconnects repeatedly as well. I suspect all of these issues are somehow related. I also got this weird glitch where the input devices duplicate themselves in the Cinnamon sound panel. MicIssue

mahboobkarimian commented 11 months ago

For me, the error is:

Nov 11 18:00:03 -MacBookPro kernel: x86/PAT: pipewire:38335 map pfn RAM range req uncached-minus for [mem 0x67680000-0x676b0fff], got write-back
Nov 11 18:00:03 -MacBookPro kernel: pipewire[38343]: segfault at 0 ip 00007fd7db4023c1 sp 00007fd7db3fea00 error 4 in sc4_1882.so[7fd7db400000+5000] likely on CPU 9 (core 3, socket 0)
Nov 11 18:00:04 -MacBookPro systemd[4005]: pipewire.service: Main process exited, code=dumped, status=11/SEGV
Nov 11 18:00:04 -MacBookPro systemd[4005]: pipewire.service: Failed with result 'core-dump'.
Nov 11 18:00:04 -MacBookPro wireplumber[38336]: disconnected from pipewire
Nov 11 18:00:04 -MacBookPro systemd[4005]: pipewire.service: Scheduled restart job, restart counter is at 43.
Nov 11 18:00:04 -MacBookPro systemd[4005]: Stopped pipewire.service - PipeWire Multimedia Service.
Nov 11 18:00:04 -MacBookPro systemd[4005]: Started pipewire.service - PipeWire Multimedia Service.
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.filter-chain: control 'meter_in' can not be set: No such file or directory
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.filter-chain: control 'meter_out' can not be set: No such file or directory
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.filter-chain: control 'clip_in' can not be set: No such file or directory
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.filter-chain: control 'clip_out' can not be set: No such file or directory
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.filter-chain: control 'bypass' can not be set: No such file or directory
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.filter-chain: control 'cbe_0' can not be set: No such file or directory
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.filter-chain: control 'Amplitude (dB)' can not be set: No such file or directory
Nov 11 18:00:04 -MacBookPro pipewire[38362]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files

Look at the segfault from pipewire.

lemmyg commented 11 months ago

I made some changes https://github.com/lemmyg/t2-apple-audio-dsp/releases/tag/mic-v0.4.0-1 looks like we cant capture mic 3 channels any more.

There is also deb package available. Note by default doesnt use rrnoise plugin. If you are using you may need to the changes manually.

please test the changes and let know.

mahboobkarimian commented 11 months ago

Seems this resolved the problem.

I made some changes https://github.com/lemmyg/t2-apple-audio-dsp/releases/tag/mic-v0.4.0-1 looks like we cant capture mic 3 channels any more.

lemmyg commented 11 months ago

Cool. Resolving the issue.

Rom888 commented 11 months ago

It works now, thank you!