From nobody Sun Apr 28 03:03:51 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VRrs36cHGz5HT2q for ; Sun, 28 Apr 2024 03:04:07 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VRrs34fgfz4hD7 for ; Sun, 28 Apr 2024 03:04:07 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-de5d439b729so470618276.0 for ; Sat, 27 Apr 2024 20:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1714273445; x=1714878245; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BMIGSwCTk8kpK2itx4Y3Rm9W6/E8vuKXj2b8ReCbYsc=; b=DA2wnh0wPTB32vFuFFP/vCRp1faxe6W1zi8zjLJhPyo8emIxnsUoDjgQg28zyPashS MGD9p2wNDcOYpK7dL5Cvb11QSFjdAyKbu8eZ4vKY+Pe9pFQZ7tWDxjPN0yMex/un0357 9TlzbgjHMV1auQw6Ai3WqHbN/XvXJ+TYDUL8IVK/9gr5HNY53NtMsunOHx7YH0n/SPB1 D8K2leyKjgn5e58tup32vE3xyuOkvIWyQfe/qmzgkbVYwJSK4OLwOzPN4+r62SDAQ87t 0mQkrHTtqFpEkcUwFRB2eKTeR2xfzCDziPsXVYrcoyuPSRq92HqPezWwtK7ySxljmIGV 9lRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714273445; x=1714878245; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BMIGSwCTk8kpK2itx4Y3Rm9W6/E8vuKXj2b8ReCbYsc=; b=iTay4tcIWv98WgscWfkZDvO/KwXPimwB7wh47/rp/yRK5LMTyJLYrj2a0/gsyr8yZn w70kp1nhZtUjD47veItJKm2+baKYdZDwqXC7VLvEJH/h2EdrKkZJ10vRr2rA8KwULiBv wg3+NBjJSJ0jxN6zksybNmWsXQlbSJX+ZiJbtfYPVLfjcnJqJsoRK+/9TDBJeFGeuDFU Og45AcaIWzOa1VIJBml1ooYfU8F0CaowANimxBWDNMm/Wb3ljLJCGqI9wHhltROabM8J ATmnow+Gg89BDbea0pJuUGEqTCDgkjyRihW8c86DGUJArcAbSKebwFGATAMdC+0X8Bl/ v9lA== X-Gm-Message-State: AOJu0YyQFUEQ7oeCJDjxNpwi4PpX1aUrBSYFeITNer7dADM7cPG8dN+5 2QEPPBopOypVievdfEvvUwWOyVsDmJNfRl8LHtgKbkCP5a72ad4lXPtKmXg+Gmrn3WqeG2sqGJY = X-Google-Smtp-Source: AGHT+IG/pC+vzn3QkTUfHuUjwYSjLpzT/UHlKw6cn6bGTwR1s1YZtw7vFr7jW5a1P+0zDpfhVDk3HQ== X-Received: by 2002:a05:690c:d81:b0:61b:f6f:eab with SMTP id da1-20020a05690c0d8100b0061b0f6f0eabmr5172109ywb.2.1714273445127; Sat, 27 Apr 2024 20:04:05 -0700 (PDT) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com. [209.85.128.180]) by smtp.gmail.com with ESMTPSA id x124-20020a0dee82000000b0061b081ee071sm4824554ywe.40.2024.04.27.20.04.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Apr 2024 20:04:04 -0700 (PDT) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-61ab31d63edso27715717b3.1 for ; Sat, 27 Apr 2024 20:04:04 -0700 (PDT) X-Received: by 2002:a81:4ecc:0:b0:61b:1a47:30f1 with SMTP id c195-20020a814ecc000000b0061b1a4730f1mr2939296ywb.14.1714273444264; Sat, 27 Apr 2024 20:04:04 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Tomek CEDRO Date: Sun, 28 Apr 2024 05:03:51 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: No audio devices appear in /dev To: Free BSD Cc: questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4VRrs34fgfz4hD7 On Sun, Apr 28, 2024 at 4:36=E2=80=AFAM Free BSD wrote: > Before I invoked startx, I didn't have any dsp devices. With X11 running= , I see dsp0.0, dsp1.0, and dsp2.0, but no pcm devices. > In system settings, KDE lists correctly all three (dsp2 is kaby lake HDMI= /DP 8ch), but when I try the test button, I get Error trying to play a test= sound. > The system said: "No such driver". This happens on all three playback de= vices. You can take a look at FreeBSD Handbook (ultimate knowledge source) at the Multimedia chapter: https://docs.freebsd.org/en/books/handbook/multimedia/ I do not use KDE but it seems to use Phonon.. do you have that installed? I use PulseAudio you can try that one too :-) https://userbase.kde.org/Phonon > cat /dev/sndstat > Installed devices: > pcm0: (play/rec) > pcm1: (play/rec) > pcm2: (play) default > No devices installed from userspace. That means you have 3 audio cards available. Userspace devices are virtual_oss devices (no need for that right now). Try those commands as user and see if you can hear noise output on those devices. If that works then KDE setup problem. cat /dev/random /dev/dsp0 cat /dev/random /dev/dsp1 cat /dev/random /dev/dsp2 If that does not work try above as root. If works as root then permission problem. You may also verify mixer levels if sound is not muted when still no problem and no error (N =3D [0,1,2]): mixer -f /dev/mixerN Then if vol is 0 you can set that with mixer -f /dev/mixerN vol 100. Builtin realtek cards have pretty complex audio mux that may need tuning with sysctl as root. "Rear Analog" is the onboard panel at the back of the mainboard. "Analog" probably is on the connector that you can use to connect front panel plugs. Back panel has probably 6 stereo jacks and you should get sound on at least one of them (this is controlled by the internal audio card mux that can be controlled by systcl / nid). -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info