From owner-freebsd-questions@freebsd.org Sat Sep 15 05:50:04 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A175109CDE8 for ; Sat, 15 Sep 2018 05:50:04 +0000 (UTC) (envelope-from freebsd@twc.com) Received: from dnvrco-cmomta01.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3572C80160 for ; Sat, 15 Sep 2018 05:50:03 +0000 (UTC) (envelope-from freebsd@twc.com) Received: from chameleon.friedrich.org ([74.132.25.214]) by cmsmtp with ESMTP id 13Sqg4lcLceP913SsgXslt; Sat, 15 Sep 2018 05:49:59 +0000 From: Steven Friedrich To: freebsd-questions@freebsd.org, Polytropon Cc: Steve O'Hara-Smith Subject: Re: No Sound Date: Sat, 15 Sep 2018 01:49:51 -0400 Message-ID: <2925378.bT80LyP3VS@chameleon.friedrich.org> In-Reply-To: <20180914210228.f390e34c.freebsd@edvax.de> References: <5065116.8gLySxXtyI@chameleon.friedrich.org> <5087996.8gLySxXtyI@chameleon.friedrich.org> <20180914210228.f390e34c.freebsd@edvax.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-CMAE-Envelope: MS4wfH1NaMXg5dCErzeBZWpn7JYSgZE1gWYjOmGjvTwV6Y9VQ/BDxrazASOdzd4hVd3zhyLFSMJVvMlDZghi6VWRBKeKLCBQcwbcOUgK1J7SKB2c0pvfiIf7 NlvE9kTgaJjxzjF/HuosOGVplgI8JgTFTewYwX/GA9j97aKwTzWtar/8R+0TnMN3sIRebZrhwISF1kqg/xVNnIA8aI6BkvTWsVxiZw0BB/PJZl38DIWenS3C X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2018 05:50:04 -0000 On Friday, 14 September 2018 15:02:28 EDT Polytropon wrote: > On Fri, 14 Sep 2018 11:45:57 -0400, Steven Friedrich wrote: > > It's a SATA DVD and there are no headphone jacks on modern internal DVD > > drives. So there's no audio cable connecting the drive to any sound card > > or header on the motherboard. So that means there's no ability to > > transfer analog audio, just digital audio, I believe. > > There are tools like cdparanoia that can "digitally play" > from the CD drive, and you can also use mplayer to play > CD audio the digital way. > > > I also can't get output from mplayer. I'll try VLC next. > > If you don't have sound in mplayer, it likely won't happen > that you get sound from VLC (or any other media player for > that matter). > > > Also, no devices should up under KDE5 system settings Phonon page. Is it > > possible I didn't check all the phonon boxes when I built KDE5 from ports? > > I think Phonon is a default component of the KDE installation. > But for now, don't bother with KDE. Always check the basics > first, using the system tools. > > For example, using good old "mpg123 somefile.mp3" and then > experiment with the mixer command. It _might_ be possible > that you have to select a different output device using sysctl. > > Example: I have a Lenovo R61i and a R500. On the R61i, I can > use the default unit (0), while I have to enable the setting > "hw.snd.default_unit=1" in /etc/sysctl.conf on the R500, > even though they seem to be using almost the same HDA codec: > > R61i: > pcm0: > pcm1: > > R500: > > pcm0: > pcm1: > > With sysctl as mentioned, the second one will work. :-) OK, I've figured out the basics (mostly) I have three possible outputs to choose from, i.e., pcm0 (rear analog), pcm1 (front analog), and pcm2 (HDMI/DP). I can choose which touse with sysctl hw.snd.default_unit. Which ever I set, I must use the corresponding mixer, i.e., mixer0 for pcm0, mixer1 for pcm1, and mixer2 for pcm2. I can hear sound out of pcm0 and pcm1 (rear and front analog), but I can't hear any sound from pcm2 which goes to HDMI. The man page for snd_hds says: HDMI and DisplayPort audio may also require support from video driver. Since I'm using syscons, I don't think this applies. But it begs the question, is the audio supplied to both HDMI and DisplayPort or is it selectable? And is it digital or analog? In summary, I can't get audio out to HDMI...