Stefan Walter
2010-Nov-15 10:04 UTC
8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
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: <HDA ATI RS690/780 HDMI PCM #0 HDMI> at cad 0 nid 1 on hdac0 hdac1: HDA Codec #0: Realtek ALC885 pcm1: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac1 pcm2: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac1 pcm3: <HDA Realtek ALC885 PCM #2 Digital> 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: <ATI SB600 High Definition Audio Controller> 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: <ATI (Unknown) High Definition Audio Controller> 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: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac0 pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac0 pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 0 nid 1 on hdac0 pcm3: <HDA ATI RS690/780 HDMI PCM #0 HDMI> 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 651 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20101115/75d3b97f/attachment.pgp
Lars Engels
2010-Nov-15 12:07 UTC
8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
On Mon, Nov 15, 2010 at 10:37:09AM +0100, Stefan Walter wrote:> Hi, >[...]> 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.Try to set hw.acpi.reset_video to 1 in loader.conf. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20101115/cbb46bf9/attachment.pgp
Chip Camden
2010-Nov-15 16:52 UTC
8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
Quoth Stefan Walter on Monday, 15 November 2010:> 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: <HDA ATI RS690/780 HDMI PCM #0 HDMI> at cad 0 nid 1 on hdac0 > hdac1: HDA Codec #0: Realtek ALC885 > pcm1: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac1 > pcm2: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac1 > pcm3: <HDA Realtek ALC885 PCM #2 Digital> 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: <ATI SB600 High Definition Audio Controller> 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: <ATI (Unknown) High Definition Audio Controller> 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: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac0 > pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac0 > pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 0 nid 1 on hdac0 > pcm3: <HDA ATI RS690/780 HDMI PCM #0 HDMI> 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. >I had the same problem, but a later update to 8.1-STABLE seems to have fixed it. -- Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20101115/57c54c89/attachment.pgp
Bruce Cran
2010-Nov-16 14:44 UTC
8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
On Monday 15 November 2010 09:37:09 Stefan Walter wrote:> 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.What graphics card do you have? If it's nVidia, try building the driver with ACPI_PM enabled and running "acpiconf -s3" from X11. That boots the video chip up on my laptop at least - though it seems some corruption occurs because I've had some odd panics afterwards in the fs and vm subsystems, and attempting to suspend for a second time results in the system rebooting instead. -- Bruce Cran
Stefan Walter
2010-Nov-16 18:58 UTC
8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
Chip Camden, 15.11.10, 17:52h CET: [Audio problem with snd_hda]> > I had the same problem, but a later update to 8.1-STABLE seems to have > fixed it.OK, looking forward to an update, then. Thanks! Regards, Stefan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 651 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20101116/812996a8/attachment.pgp
Stefan Walter
2010-Nov-30 20:12 UTC
8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
Stefan Walter, 15.11.10, 10:37h CET:> 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: <HDA ATI RS690/780 HDMI PCM #0 HDMI> at cad 0 nid 1 on hdac0 > hdac1: HDA Codec #0: Realtek ALC885 > pcm1: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac1 > pcm2: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac1 > pcm3: <HDA Realtek ALC885 PCM #2 Digital> 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: <ATI SB600 High Definition Audio Controller> 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: <ATI (Unknown) High Definition Audio Controller> 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: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac0 > pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac0 > pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 0 nid 1 on hdac0 > pcm3: <HDA ATI RS690/780 HDMI PCM #0 HDMI> 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.Unfortunately, the recent update to 8-STABLE didn't change anything with these problems - any ideas, anyone? Regards, Stefan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 651 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20101130/176f3f57/attachment.pgp
David DEMELIER
2010-Dec-01 21:49 UTC
8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
2010/11/15 Stefan Walter <stefan@freebsd.org>:> 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: <HDA ATI RS690/780 HDMI PCM #0 HDMI> at cad 0 nid 1 on hdac0 > hdac1: HDA Codec #0: Realtek ALC885 > pcm1: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac1 > pcm2: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac1 > pcm3: <HDA Realtek ALC885 PCM #2 Digital> 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: <ATI SB600 High Definition Audio Controller> 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: <ATI (Unknown) High Definition Audio Controller> 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: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac0 > pcm1: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac0 > pcm2: <HDA Realtek ALC885 PCM #2 Digital> at cad 0 nid 1 on hdac0 > pcm3: <HDA ATI RS690/780 HDMI PCM #0 HDMI> 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 >Same here, if I have snd_hda directly in kernel, screen doesn't wake up with or without hw.acpi.reset_video=1. 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, -- Demelier David