From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 15 10:04:10 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68FDD1065674; Mon, 15 Nov 2010 10:04:10 +0000 (UTC) (envelope-from stefan@freebsd.org) Received: from mail.hamcom.de (mail.hamcom.de [212.37.37.213]) by mx1.freebsd.org (Postfix) with ESMTP id 15A7F8FC19; Mon, 15 Nov 2010 10:04:09 +0000 (UTC) Received: from adsl-dyn-88-208-149-32.heliweb.de ([88.208.149.32] helo=birne.dunkelkammer.void) by mail.hamcom.de with esmtpa (Exim 4.71) (envelope-from ) id 1PHvUs-0004M2-Ar; Mon, 15 Nov 2010 10:37:10 +0100 Received: by birne.dunkelkammer.void (Postfix, from userid 1002) id ED42311443; Mon, 15 Nov 2010 10:37:09 +0100 (CET) X-HeLi-id: cfcd208495d565ef66e7dff9f98764da Date: Mon, 15 Nov 2010 10:37:09 +0100 From: Stefan Walter To: freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org Message-ID: <20101115093709.GA1452@birne.dunkelkammer.void> Mail-Followup-To: freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: 8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2010 10:04:10 -0000 --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I've been using 8.1-RELEASE on this desktop machine for a few months already, but only now found the time to look at a couple of problems with snd_hda and suspend/resume it still has. Maybe someone here has hints to fix them - I'd be grateful to hear them. Audio with snd_hda(4) works, but only if loaded as a module AND only if I load the module AFTER booting. If I compile it into the kernel or add snd_hda_load="YES" to /boot/loader.conf, dmesg shows the following: hdac0: HDA Codec #0: ATI RS690/780 HDMI pcm0: at cad 0 nid 1 on hdac0 hdac1: HDA Codec #0: Realtek ALC885 pcm1: at cad 0 nid 1 on hdac1 pcm2: at cad 0 nid 1 on hdac1 pcm3: at cad 0 nid 1 on hdac1 mixer(8) shows: Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 There is no audio in that case. Unloading and reloading the module (or just loading the module manually after the boot process) logs: hdac0: mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0 hdac0: HDA Driver Revision: 20100226_0142 hdac0: [ITHREAD] hdac0: HDA Codec #0: Realtek ALC885 hdac1: mem 0xfdffc000-0xfdffffff irq 19 at device 5.1 on pci1 hdac1: HDA Driver Revision: 20100226_0142 hdac1: [ITHREAD] hdac1: HDA Codec #0: ATI RS690/780 HDMI pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 pcm2: at cad 0 nid 1 on hdac0 pcm3: at cad 0 nid 1 on hdac1 mixer then shows: Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer mix is currently set to 0:0 Mixer rec is currently set to 75:75 Mixer igain is currently set to 0:0 Audio then seems to work fine. (Plugging earphones into the computer's case's front plugs doesn't do anything, though - audio still comes from the speakers attached to the plug at the back of the case. Any ideas about that?) Loading snd_hda from a startup script would probably work, but I guess that's not the way it was meant to work. The other problem is with suspend/resume: Suspend To RAM (S3) works by using "acpiconf -s 3", and pushing the power button wakes the system up again. Everything seems to work, only the LCD monitor remains off. (There also seem to be occasional cases in which the keyboard doesn't work any more, but I haven't really looked at that, yet. Usually, the system comes back up properly.) Loading dpms(4) doesn't seem to make a difference. The only way to turn the display on again seems to be typing "shutdown -r now" blindly. Regards, Stefan --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQGVAwUBTOD/RVaRERsSueCzAQIG6wv/Vb56w8X7ZsN7XUbpvLMCR+E2K6DGgUN3 qX7yn4S+YFBOZkGrTqeD2ZiRNyzjrlwKPVM3JeK9TeKwU/Xmr+iFCpQInD24vo4Q 5WGt0cbknA15IgOWqZGNYizIkOMBwdwLEkhu+8ML66NXfZbWTQNUHRpPeYCihOs7 iSSMqHEkBArS6TQrzo2t82t0ll+VYH/04+veO65xQRBRiBMnJUCn0NKI1WIdu+FT GZMCbop22biN0fl1w77y90tS/tRKr86x+FOw+JNidqAvETco34sVFZFerkSorjUb 1SUZzEKeCk/RpQKacSReH/I4s03BIi30JWXKu1ASrh1WnqU3Ys5Aldc32qj/F+pM 1Oz5vIDMg2mkAHL9UMv+Tu2/AcAfqNMbX4DEgJhb/epPnPMnzRFq8g1/0Y9bXlNP Hs+o4WQusHA6/hRrSBM1bku4wbdgkUfdMEs3RqHihHNfLNJ4J3kXj+t3uHwltyia MdAc9E3xtIFsA5zkTOTy1Tazd0wMixK/ =+l4Z -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--