From owner-freebsd-questions@freebsd.org Sun Dec 6 19:09:04 2020 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 D4F314A80FF for ; Sun, 6 Dec 2020 19:09:04 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 4CpwwJ2fNKz4j4Q for ; Sun, 6 Dec 2020 19:09:04 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wr1-x42d.google.com with SMTP id y17so1209190wrr.10 for ; Sun, 06 Dec 2020 11:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=tJhDS9bbRy4MCfaOPnVJDPCoiUTiA0t1kpj6LZ0+qlw=; b=a0ryFXYSqWJlMv2jX3+uO55nPbpEQxOXRvHDpRc7F9iuWO+l1+CujhZNr6kG2ap2RN OcJYAoPW6dU8/lnX8/TJ0p4kRAlN2xxKBRrohsfcg7yh7Yl2Za0njkFatvULkCIbqTVH A1JTsZ8VE89zrchcT/TxFM1ft5V1zF1E+dBA2leegKuyT8i99ZjCL+/7Lo4bqxxmaVuG ShfZ7zW/U997qpxXph7M5Fa+jDAj7ttZ+qT/FQYAJDlzLXYvdH84B5jR9FvR37YPmkhz mLMiSCedtIN2ePbnUw/8C7AOZshc9/CRlGHWpR9Yeb0XNdnSucnRfoHWkB2XsxBw7ppm g2Zg== 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:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=tJhDS9bbRy4MCfaOPnVJDPCoiUTiA0t1kpj6LZ0+qlw=; b=IHfv9t/sJPz0OGukzctoB+gYsvlwYN940v6qSyBx7wKMd/+S3Zab4YtL/KDFxp+hAd AwY+0kpPCzRcCM37kA21dOfVOAQk1sIRxP9KKlVQh21vV8vA5zYM2nuzPo5FDe8dFN9G kN/3sdPkCHGwcxU78JrtdrIoD0/NOdwAJutYHWO0yqDGmREJkbY1WueCSOVPFBVzPBh/ mt1d8E6g6y9tt2nhNESsKLosHdjnhhQqt0MXBAUSGMdOO60YyQpYXj1xXWZmRCEHWic5 qu57hhbdzTMyFAkSPAgXgqNHCEeMeGm8fDEq+VexCNheCeV4J3VZj7gu1cOX9D7Dydek 08sg== X-Gm-Message-State: AOAM5307e8jI/itf/ZaYj2gf56Yh5CxwmzVdN0VFyS8tk6/DFW88MFSM TKHEdPsApp+kwucLaUe9oHEDwnuclnsXbmAp X-Google-Smtp-Source: ABdhPJxMEx14ElH5xgSOflY/sLqVrDAld4w/7mGvMGWXDb/iEbW8achOKKzYvnbfWjsgQ9oviNUKNQ== X-Received: by 2002:a5d:4612:: with SMTP id t18mr16200902wrq.401.1607281742538; Sun, 06 Dec 2020 11:09:02 -0800 (PST) Received: from [192.168.1.8] (79-66-147-78.dynamic.dsl.as9105.com. [79.66.147.78]) by smtp.gmail.com with ESMTPSA id a18sm11642327wrr.20.2020.12.06.11.09.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Dec 2020 11:09:01 -0800 (PST) Subject: Firefox: virtual_oss: no sound To: freebsd-questions@freebsd.org References: <1fe6a18e-9595-83fe-7edf-e6e8485d6d01@nethead.se> <1615da46-9fe4-d190-5e52-853be1319281@nethead.se> <498e84a4-1f02-d080-0546-27664763ab3e@gmail.com> From: Graham Perrin Message-ID: Date: Sun, 6 Dec 2020 19:09:01 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4CpwwJ2fNKz4j4Q X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=a0ryFXYS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::42d as permitted sender) smtp.mailfrom=grahamperrin@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[79.66.147.78:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::42d:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::42d:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42d:from]; 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: Sun, 06 Dec 2020 19:09:04 -0000 On 06/12/2020 18:45, Mario Lobo wrote: > On Sun, Dec 6, 2020 at 2:36 PM Graham Perrin wrote: > >> On 04/12/2020 18:37, Mario Lobo wrote: >> >> … Videos in Firefox not only have no sound. … >> >> >> If you have not already done so: >> >> >> about:config >> >> media.cubeb.backend >> string >> oss >> > It is set that way. > > By the way, I tried setting to sndio, and even though sndio wasn't running, > It still had sound. > > But virtual_oss still has the same firefox results (no sound). I have to > reboot the machine to get the sound back on FF. > Stopping virtual_oss and restarting FF is not enough. > > I also had virtual_oss_ctl installed but, like you, I dont know how to use > it. If it helps: the setup outlined below works for me (with analogue audio in an HP EliteBook 8570p). NB maybe worth actively checking that virtual_oss is running, i.e. service virtual_oss status or service virtual_oss onestatus Also: below, NB the `-t vdsp.ctl` part. IIRC this is for compatibility with the virtual_oss_ctl GUI. ---- grahamperrin@mowa219-gjp4-8570p:~ % tail -n 15 /etc/rc.conf virtual_oss_enable="YES" virtual_oss_default_args="\   -T /dev/sndstat \   -S \   -i 8 \   -C 2 -c 2 \   -r 48000 \   -b 24 \   -s 8.0ms \   -f /dev/dsp1 \   -c 2 \   -d dsp \   -t vdsp.ctl" sndiod_enable="YES" grahamperrin@mowa219-gjp4-8570p:~ % service virtual_oss status virtual_oss is running as pid 117. grahamperrin@mowa219-gjp4-8570p:~ % service sndiod status sndiod is running as pid 2212. grahamperrin@mowa219-gjp4-8570p:~ % cat /dev/sndstat Installed devices: pcm0: (play) pcm1: (play/rec) default pcm2: (play/rec) Installed devices from userspace: dsp: (play/rec) grahamperrin@mowa219-gjp4-8570p:~ %