You are not logged in.

#1 2024-12-15 22:11:20

aneeshdg16
Member
Registered: 2023-12-06
Posts: 42

microphone not detected in chromium

My default microphone (or any) is not being detected by chromium.
It's not a system-wide issue as firefox detects it fine.

pulseaudio is my sound server. I have already tried restarting it. Also,

journalctl --user --grep=pulseaudio --no-pager

gives

Dec 09 09:08:05 Marchant pulseaudio[1649]: Assertion 'pa_atomic_load(&(y)->_ref) > 0' failed at ../pulseaudio/src/modules/bluetooth/bluez5-util.c:2207, function pa_bluetooth_discovery_hook(). Aborting.
Dec 09 09:08:06 Marchant systemd[733]: pulseaudio.service: Main process exited, code=dumped, status=6/ABRT
Dec 09 09:08:06 Marchant systemd[733]: pulseaudio.service: Failed with result 'core-dump'.
Dec 09 09:08:06 Marchant systemd[733]: pulseaudio.service: Consumed 1h 21min 32.768s CPU time, 50.6M memory peak, 4.3M memory swap peak.
Dec 09 09:08:06 Marchant systemd[733]: pulseaudio.service: Stop job pending for unit, skipping automatic restart.
Dec 09 09:08:06 Marchant systemd[733]: pulseaudio.service: Consumed 1h 21min 32.768s CPU time, 50.6M memory peak, 4.3M memory swap peak.
-- Boot 681e1ac45478406398bff7714c2fa2e0 --
Dec 12 19:39:08 Marchant systemd[688]: pulseaudio.service: Consumed 29min 25.233s CPU time, 115.5M memory peak, 2.5M memory swap peak.
-- Boot dc6bb64debdd497c88f4816d0a002fe3 --
Dec 12 20:20:37 Marchant systemd-xdg-autostart-generator[8187]: Failed to create unit file '/run/user/1000/systemd/generator.late/app-pulseaudio@autostart.service': File exists
-- Boot fcde110401664f7ba13f690662939b34 --
-- Boot 6b88e78e504c4947a7fa198016fe1f93 --
-- Boot 10ae0b13a3c142f8a090f2ab8eafa482 --
-- Boot 6f3814dfc5374ab0ba37deb0610383e7 --
Dec 12 20:52:29 Marchant systemd-xdg-autostart-generator[1615]: Failed to create unit file '/run/user/1000/systemd/generator.late/app-pulseaudio@autostart.service': File exists
-- Boot 559e7bb217ce43d7bd47c66ce0891b56 --
-- Boot e6039378628a436cada82fc426b07efb --
-- Boot f18ee854fdf94137836f9bc42bd7fc48 --
Dec 12 21:00:46 Marchant systemd-xdg-autostart-generator[1071]: Failed to create unit file '/run/user/1000/systemd/generator.late/app-pulseaudio@autostart.service': File exists
Dec 12 21:04:24 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 12 21:04:24 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 12 21:04:24 Marchant systemd[1065]: pulseaudio.service: Consumed 1.170s CPU time, 26.3M memory peak.
Dec 12 21:04:24 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
Dec 12 21:05:07 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 12 21:05:07 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 12 21:05:08 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
Dec 13 19:16:37 Marchant systemd[1065]: pulseaudio.service: Consumed 5min 36.309s CPU time, 14.3M memory peak.
Dec 13 19:16:42 Marchant sudo[59163]:   aneesh : TTY=pts/1 ; PWD=/home/aneesh ; USER=root ; COMMAND=/usr/bin/pulseaudio -D
Dec 13 20:29:32 Marchant systemd[1065]: pulseaudio.service: Consumed 16min 40.467s CPU time, 16.5M memory peak.
Dec 14 12:59:49 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 14 12:59:49 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 14 12:59:49 Marchant systemd[1065]: pulseaudio.service: Consumed 27min 6.139s CPU time, 13.9M memory peak.
Dec 14 12:59:49 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
Dec 14 14:44:26 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 14 14:44:26 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 14 14:44:26 Marchant systemd[1065]: pulseaudio.service: Consumed 1min 22.741s CPU time, 14M memory peak.
Dec 14 14:44:27 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
Dec 14 17:14:13 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 14 17:14:13 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 14 17:14:13 Marchant systemd[1065]: pulseaudio.service: Consumed 3min 7.991s CPU time, 10.6M memory peak.
Dec 14 17:14:13 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 3.
Dec 14 17:14:30 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 14 17:14:30 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 14 17:14:31 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 4.
Dec 14 17:14:38 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 14 17:14:38 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 14 17:14:38 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Dec 14 17:16:52 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 14 17:16:52 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 14 17:16:52 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 6.
Dec 14 17:16:55 Marchant systemd[1065]: pulseaudio.service: Main process exited, code=killed, status=9/KILL
Dec 14 17:16:55 Marchant systemd[1065]: pulseaudio.service: Failed with result 'signal'.
Dec 14 17:16:55 Marchant systemd[1065]: pulseaudio.service: Scheduled restart job, restart counter is at 7.
Dec 15 17:01:49 Marchant systemd[1065]: pulseaudio.service: Consumed 5min 56.296s CPU time, 12M memory peak.
Dec 15 17:03:30 Marchant systemd[1065]: pulseaudio.service: Consumed 4.844s CPU time, 14M memory peak.

Here is my machine info:
Laptop: Lenovo Thinkpad X1 Carbon Gen 7 laptop
Kernel Version: 6.6.65-1-lts
Display Server: Xorg
Window Manager: i3

Last edited by aneeshdg16 (2024-12-15 22:22:29)

Offline

#2 2024-12-16 05:30:14

aneeshdg16
Member
Registered: 2023-12-06
Posts: 42

Re: microphone not detected in chromium

Bump? Usually seth comes to the rescue

Last edited by aneeshdg16 (2024-12-16 05:30:29)

Offline

#3 2024-12-16 16:44:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: microphone not detected in chromium

Don't do that: https://wiki.archlinux.org/title/Genera … es#Bumping

Your pulse is dying in some bluez function, how sure are you it's the only thing trying to access bluez? How are you starting i3, if via xinitrc post the actual xinitrc you're using  as well as

sudo fuser -v /dev/snd/*
systemctl --user status pipewire pulseaudio wireplumber
pacman -Qikk pulseaudio pulseaudio-bluetooth
#More context is always better, this could be a bug in your BT adapter and potentially kernel level as well.
sudo journalctl -b | curl -F 'file=@-' 0x0.st

generally speaking especially in the BT space, pipewire is somewhat more actively developed so you might want to consider switching to it outright.

Last edited by V1del (2024-12-16 16:46:22)

Offline

#4 2024-12-16 17:10:21

aneeshdg16
Member
Registered: 2023-12-06
Posts: 42

Re: microphone not detected in chromium

V1del wrote:

Don't do that: https://wiki.archlinux.org/title/Genera … es#Bumping

Your pulse is dying in some bluez function, how sure are you it's the only thing trying to access bluez? How are you starting i3, if via xinitrc post the actual xinitrc you're using  as well as

sudo fuser -v /dev/snd/*
systemctl --user status pipewire pulseaudio wireplumber
pacman -Qikk pulseaudio pulseaudio-bluetooth
#More context is always better, this could be a bug in your BT adapter and potentially kernel level as well.
sudo journalctl -b | curl -F 'file=@-' 0x0.st

generally speaking especially in the BT space, pipewire is somewhat more actively developed so you might want to consider switching to it outright.

I followed your advice and replaced pulseaudio with pipewire as follows:

sudo pacman -R pulseaudio pulseaudio-alsa pulseaudio-bluetooth
sudo pacman -S pipewire-pulse pipewire-alsa
sudo pacman -S lib32-pipewire-jack lib32-pipewire
sudo pacman -S pipewire-jack
systemctl --user enable --now pipewire.service pipewire-pulse.service

My .xinitrc:

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi
if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login

# dunst &
xbindkeys &
exec i3

xset s off
xset -dpms
xset s noblank


nmcli device modify wlan0 ipv6.method "disabled"

Here are the logs I get when running your commands exactly:
http://0x0.st/XF0w.txt

Here are the logs I get after replacing "pulseaudio" and "pulseaudio-bluetooth" with "pipewire" and "pipewire-audio", respectively (since I replaced puleaudio with them per your suggestion): https://0x0.st/XF03.txt

Last edited by aneeshdg16 (2024-12-16 17:11:34)

Offline

#5 2024-12-16 18:12:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: microphone not detected in chromium

all of that looks fine, do you still not detect the mic in chromium? Are you sure you didn't just miss the notification of whether chromium is allowing a given website mic access, which should be toggleable in the address bar?

FWIW to check, what outputs do you get from those commands now? These are diagnostics and will have no effect on whatever the issues are and their outputs won't land in the journal.

Offline

#6 2024-12-16 18:49:26

aneeshdg16
Member
Registered: 2023-12-06
Posts: 42

Re: microphone not detected in chromium

V1del wrote:

all of that looks fine, do you still not detect the mic in chromium? Are you sure you didn't just miss the notification of whether chromium is allowing a given website mic access, which should be toggleable in the address bar?

FWIW to check, what outputs do you get from those commands now? These are diagnostics and will have no effect on whatever the issues are and their outputs won't land in the journal.

Still not working in chromium, and yes, this is in spite of giving mic permissions. I even checked manually in the site settings.
But here I'll run them again:

journalctl --user --grep=pulseaudio --no-pager | curl -F 'file=@-' 0x0.st

gives http://0x0.st/XFGW.txt
and

sudo fuser -v /dev/snd/*
systemctl --user status pipewire pulseaudio wireplumber
pacman -Qikk pipewire pipewire-audio
#More context is always better, this could be a bug in your BT adapter and potentially kernel level as well.
sudo journalctl -b | curl -F 'file=@-' 0x0.st

gives http://0x0.st/XFGJ.txt

Last edited by aneeshdg16 (2024-12-16 18:49:50)

Offline

#7 2024-12-16 19:51:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: microphone not detected in chromium

please post the output of the commands that aren't the journal at the end. pipewire and pipewire-pulse are killed but start again later, how are you login into your session? Whats /usr/local/bin/clean exactly?

What do you get from

pactl list cards
pactl list sources
pactl list source-outputs 

while trying to see stuff in chromium?

Offline

#8 2024-12-16 20:23:18

aneeshdg16
Member
Registered: 2023-12-06
Posts: 42

Re: microphone not detected in chromium

sudo fuser -v /dev/snd/*

gives

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  aneesh    277785 F.... pipewire
                     aneesh    277787 F.... wireplumber
/dev/snd/seq:        aneesh    277785 F.... pipewire

and

systemctl --user status pipewire pulseaudio wireplumber | curl -F 'file=@-' 0x0.st

gives

Unit pulseaudio.service could not be found.
https://0x0.st/XFDM.txt

and

pacman -Qikk pipewire pipewire-audio

gives

Name            : pipewire
Version         : 1:1.2.7-1
Description     : Low-latency audio/video router and processor
Architecture    : x86_64
URL             : https://pipewire.org
Licenses        : MIT  LGPL-2.1-or-later
Groups          : None
Provides        : None
Depends On      : libpipewire=1:1.2.7-1  gcc-libs  glibc  libpipewire-0.3.so=0-64  libdbus-1.so=3-64  libglib-2.0.so=0-64
                  libncursesw.so=6-64  libreadline.so=8-64  libsystemd.so=0-64  libudev.so=1-64
Optional Deps   : gst-plugin-pipewire: GStreamer plugin
                  pipewire-alsa: ALSA configuration [installed]
                  pipewire-audio: Audio support [installed]
                  pipewire-docs: Documentation
                  pipewire-ffado: FireWire support
                  pipewire-jack-client: PipeWire as JACK client
                  pipewire-jack: JACK replacement [installed]
                  pipewire-libcamera: Libcamera support
                  pipewire-pulse: PulseAudio replacement [installed]
                  pipewire-roc: ROC streaming
                  pipewire-session-manager: Session manager [installed]
                  pipewire-v4l2: V4L2 interceptor
                  pipewire-x11-bell: X11 bell
                  pipewire-zeroconf: Zeroconf support
                  realtime-privileges: realtime privileges with rt module
                  rtkit: realtime privileges with rtkit module [installed]
Required By     : lib32-pipewire  pipewire-alsa  pipewire-audio  pipewire-jack  pipewire-pulse  wireplumber
Optional For    : cava  chromium  google-chrome  qt5-webengine  qt6-webengine  sdl2
Conflicts With  : None
Replaces        : None
Installed Size  : 2.74 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Tue 26 Nov 2024 06:05:05 PM EST
Install Date    : Mon 16 Dec 2024 12:30:35 PM EST
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

pipewire: 276 total files, 0 altered files
Name            : pipewire-audio
Version         : 1:1.2.7-1
Description     : Low-latency audio/video router and processor - Audio support
Architecture    : x86_64
URL             : https://pipewire.org
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : alsa-card-profiles  dbus  gcc-libs  glib2  glibc  libpipewire-0.3.so=0-64  libasound.so=2-64
                  libbluetooth.so=3-64  libfdk-aac.so=2-64  libfreeaptx.so=0-64  liblc3.so=1-64  libldacBT_enc.so=2-64
                  liblilv-0.so=0-64  libmysofa.so=1-64  libopus.so=0-64  libsbc.so=1-64  libsndfile.so=1-64
                  libusb-1.0.so=0-64  libwebrtc-audio-processing-1.so=3-64  pipewire  systemd-libs
Optional Deps   : None
Required By     : pipewire-alsa  pipewire-jack  pipewire-pulse
Optional For    : pipewire
Conflicts With  : None
Replaces        : None
Installed Size  : 4.37 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Tue 26 Nov 2024 06:05:05 PM EST
Install Date    : Mon 16 Dec 2024 11:50:15 AM EST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

warning: pipewire-audio: /usr/share/alsa/alsa.conf.d/50-pipewire.conf (Modification time mismatch)
warning: pipewire-audio: /usr/share/alsa/alsa.conf.d/50-pipewire.conf (Size mismatch)
warning: pipewire-audio: /usr/share/alsa/alsa.conf.d/50-pipewire.conf (SHA256 checksum mismatch)
pipewire-audio: 119 total files, 1 altered file

I opened a website in chromium that tries to access the microphone and then ran

pactl list cards | curl -F 'file=@-' 0x0.st

which gave http://0x0.st/XFDQ.txt , and

pactl list sources | curl -F 'file=@-' 0x0.st

gives http://0x0.st/XFD1.txt, and

sudo pactl list source-outputs  | curl -F 'file=@-' 0x0.st

gives

Connection failure: Connection refused
pa_context_connect() failed: Connection refused
451 Unavailable For Legal Reasons%        

(Omitting the sudo would result in only the last line being outputted, which is from the curl command I think.)

/usr/local/bin/clean is a script I have for aggressively closing unecessary processes. It might be slightly messing with things but my microphone stopped working before I made the `clean` script.
I have a script /usr/local/bin/now that is a single line

sudo ps -e -o comm= | sort | uniq > /home/aneesh/current-processes.txt

which just gets all the current running processes, and what I did was I first ran `now` after rebooting and starting xorg, and then I renamed current-processes.txt to required-processes.txt, which `clean` then uses by stopping any process not listed in required-processes.txt . Very bad practice I realize but this can't be the main issue because mic stopped working before I made these scripts.

Offline

Board footer

Powered by FluxBB