From owner-freebsd-stable@FreeBSD.ORG Wed Dec 1 21:49:21 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7946E1065672 for ; Wed, 1 Dec 2010 21:49:21 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id D49B88FC17 for ; Wed, 1 Dec 2010 21:49:20 +0000 (UTC) Received: by ewy24 with SMTP id 24so4051735ewy.13 for ; Wed, 01 Dec 2010 13:49:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=F34oOjqXqD9ITZa5nKvu0PWCxAMKHCA06r0Ghg/NBA8=; b=JLi1DOvKWnKFogifgtB1RXzAZ/zIE0gwXG/5NZRuTaYZKVhBHPFKWTVuYQ0dsbETyi Q6cs3/QAa0Qp+jEGqHTDLVju2ix06K073ruDY6D21TBAC2aFL6KvtJitG1ZwjWIJw2o1 tmwF8vE7ayntvkjwKEbQ/hCRYwOv48wU0BCxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jYsnby5xvRe1osfPje56nMdXK+7C1mBlHP0fEji7Pub5mm/QpJ1cSgmnQjZ3Bb9uvM /1zoKS5KaIuKv1IaVQH1HCB2GbfP34OysIaD2PBLKK3zJfweKAOJ8hcjUig9NNimbUy/ LuiajFW/aL2OMtQLrvFAdd7MxgpQwBBZJ+TMU= MIME-Version: 1.0 Received: by 10.204.72.6 with SMTP id k6mr9224587bkj.58.1291240159558; Wed, 01 Dec 2010 13:49:19 -0800 (PST) Received: by 10.204.127.20 with HTTP; Wed, 1 Dec 2010 13:49:19 -0800 (PST) In-Reply-To: <20101115093709.GA1452@birne.dunkelkammer.void> References: <20101115093709.GA1452@birne.dunkelkammer.void> Date: Wed, 1 Dec 2010 22:49:19 +0100 Message-ID: From: David DEMELIER To: freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: 8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2010 21:49:21 -0000 2010/11/15 Stefan Walter : > 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=3D"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 =C2=A0 =C2=A0 =C2=A0is currently set to =C2=A075:75 > Mixer pcm =C2=A0 =C2=A0 =C2=A0is currently set to =C2=A075: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-0xfe02= 7fff 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-0x= fdffffff 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 =C2=A0 =C2=A0 =C2=A0is currently set to =C2=A075:75 > Mixer pcm =C2=A0 =C2=A0 =C2=A0is currently set to =C2=A075:75 > Mixer speaker =C2=A0is currently set to =C2=A075:75 > Mixer line =C2=A0 =C2=A0 is currently set to =C2=A075:75 > Mixer mic =C2=A0 =C2=A0 =C2=A0is currently set to =C2=A0 0:0 > Mixer mix =C2=A0 =C2=A0 =C2=A0is currently set to =C2=A0 0:0 > Mixer rec =C2=A0 =C2=A0 =C2=A0is currently set to =C2=A075:75 > Mixer igain =C2=A0 =C2=A0is currently set to =C2=A0 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 abou= t > 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 > Same here, if I have snd_hda directly in kernel, screen doesn't wake up with or without hw.acpi.reset_video=3D1. I don't like much modules since it takes some time to load at boot so if a fix could be made it will be great.. Cheers, --=20 Demelier David