From owner-freebsd-questions@freebsd.org Sat Jan 23 13:35:42 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 109CD4F4230 for ; Sat, 23 Jan 2021 13:35:42 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DNHFS6vBmz4VDm for ; Sat, 23 Jan 2021 13:35:40 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-lj1-x22d.google.com with SMTP id u11so9738554ljo.13 for ; Sat, 23 Jan 2021 05:35:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=subject:to:references:from:organization:cc:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Moalfrbehu9lyoswDWm1BMT02O/SIqTO8weTPgfWaBg=; b=bgLYQIF8BGvMrYOm7kfC5LyyLFrQRfTanh3jxwVr23qoLTJG+g61X0jNbQlzgjg19d Wcf97tnSdtTm5JLqy8vZWkBc/0Pm9Juq+HpbIm9dIIo/Xr1FjVK/9gK8aDA97dZzbD+n RYWdZGqeXh9OpN89w87Rc1/qHmLjNP399+si0TgwAv0xurwmKcxYl9kY+r18S5oyQ30R xyYob0UPDTfKkTiSWDN1rewScwcjxSoZIIwjBexmbkcwkppvAxXEbalI88DNSWPmGYof xINMgS6FUGjphjIFx6tSc2+MjMMKLcLYJCexyPb5NMpUVtoFwRo6xXfmvAZbyWjWN/eo YMvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization:cc :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Moalfrbehu9lyoswDWm1BMT02O/SIqTO8weTPgfWaBg=; b=HJOZBjKJMUmHhYKqR1JkB/tIj4xAL3JG54QVKh8EMYZ4ZGskvRochw1dzyTJzWs5ic HajjDhemjaZksis6L7kBxHtpoaCRRS6Byi05kvSISyIVcNEDzT4nvQ0BHoZDvxZERK3T 2WLdGXPS2IizcPHsiU3i5BInoNdfLSNFOtIfosxxkT5jQHdPI7CTpjrnRq/z/jFF9p0U rotxT4HemoIh9VokUu3yEpBdLS70cX40yy9KO2e2Xv/lDNdqXoptKtUABvFBHd7+s2v4 qmBfOBaQl4CXbGHYZu/aHahKPyJj9gse67L8rQ0xF9uENQ+VTMK9ZGGTbpnA2YM4RLkK yMQQ== X-Gm-Message-State: AOAM5315NCy6FSeDVfx8JFiIfvsUrc5TBjI3ChFUD7fS/sjFdphDu+im KzbA7QRLypPKjUvwN/dlzRXrjjDqKI6aXW21 X-Google-Smtp-Source: ABdhPJySWC2PjCZ8T9ZawxIe2mFewKsKLK42G6cW8loDXLEPePzVkh64DJNn7DY2iGiIJ64gB3pS1Q== X-Received: by 2002:a2e:9218:: with SMTP id k24mr108378ljg.41.1611408938236; Sat, 23 Jan 2021 05:35:38 -0800 (PST) Received: from [192.168.0.101] ([31.179.178.250]) by smtp.gmail.com with ESMTPSA id d24sm1190064lfc.225.2021.01.23.05.35.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Jan 2021 05:35:37 -0800 (PST) Subject: Re: Microphone stopped working in Frefox and Chrome To: guru@unixarea.de References: <9025f616-ba3f-ef44-603a-824bd8e4e20a@cedro.info> From: Tomasz CEDRO Organization: CeDeROM Cc: FreeBSD Questions Mailing List Message-ID: Date: Sat, 23 Jan 2021 14:35:37 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DNHFS6vBmz4VDm X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=bgLYQIF8; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2a00:1450:4864:20::22d) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::22d:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::22d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22d:from]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2021 13:35:42 -0000 On 1/23/21 8:49 AM, Matthias Apitz wrote: > and FF works with 'pulseaudio --start'. I do not say 'works fine' > because I have to restart pulseaudio and FF after plug-in an USB headset > to get it recognized as /dev/dsp2. Hello Matthias :-) Yes the same here, I have to manually restart PulseAudio on hotplug. Maybe a system wide service with DEVD hooks would do the trick.. but I prefer to run it as user :-) > $ cat /dev/sndstat > Installed devices: > pcm0: (play) > pcm1: (play/rec) > pcm2: (play/rec) default > No devices installed from userspace. > > $ ls -C1 /dev/dsp* > /dev/dsp0.1 > /dev/dsp1.0 > /dev/dsp1.1 > /dev/dsp1.2 > /dev/dsp1.3 > /dev/dsp1.4 > /dev/dsp2.0 <**** USB headset > > Do you know if the above problem (restart of ....) could be solved? > Do you have any special 'about:config' for FF with pulseaudio? Not really with FF but you may want to take a look (man snd) and sysctl: hw.snd.default_unit <- you can set the default unit Default sound card for systems with multiple sound cards. When using devfs(5), the default device for /dev/dsp. Equivalent to a symlink from /dev/dsp to /dev/dsp${hw.snd.default_unit}. hw.snd.default_auto <- this is useful for hotplug (=2) Automatically assign the default sound unit. The following values are supported (default is 1): 0 Do not assign the default sound unit automatically. 1 Use the best available sound device based on playing and recording capabilities of the device. 2 Use the most recently attached device. I usually set hw.snd.default_unit=3 in /etc/sysctl.conf to set default to my external USB SoundBlaster that is connected to a hifi audio system and loudspeakers. I noticed that setting hw.snd.default_auto=2 switches sound to hotplug USB headphones that I use for online video conferecing :-) But still I need to manually restart local user PulseAudio process after hardware setup changes so FF gets the updated info on available audio devices. I usually just run `pulseaudio -k` to make it stop and the Enligthenment starts is again for me. Quick peak at PulseAudio homepage shows that we work on an outdated version. FreeBSD uses 13.0 from 2019-09-13 while the latest release is 14.2 from 2021-01-16. There is a mention on hot plug in the manual page. Maybe we should update the port first and see if the issue is solved already in the upstream? :-) https://www.freedesktop.org/wiki/Software/PulseAudio/. > I found this echo test page https://janus.conf.meetecho.com/echotest.html > extremely useful when trying to solve sound (and video) problems in FF. This echotest is awsome because is also shows video :-) For audio testing I find visual audio waveform helpful: https://www.onlinemictest.com/ Best regards :-) Tomek -- CeDeROM, SQ7MHZ, https://www.tomek.cedro.info