From owner-freebsd-acpi@freebsd.org Fri Oct 16 14:26:42 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21D66A16F5B for ; Fri, 16 Oct 2015 14:26:42 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D849CA25 for ; Fri, 16 Oct 2015 14:26:41 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id AC08C1FE022; Fri, 16 Oct 2015 16:26:32 +0200 (CEST) Subject: Re: suspend broken when disconnecting an usb audio device To: account lost , freebsd-acpi@freebsd.org References: From: Hans Petter Selasky Message-ID: <5621097F.20705@selasky.org> Date: Fri, 16 Oct 2015 16:28:15 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2015 14:26:42 -0000 On 10/16/15 16:09, account lost wrote: > Hi, I'm using FreeBSD 10.2-RELEASE-p5 amd64 on a thinkpad t430. > > I have suspend and resume functionality working by using newcons and i915kms.ko as the video driver, but whenever I plug in and use my usb DAC, either by choosing it in applications supporting OSS or by setting it as the hw.snd.default_unit and then disconnect it without terminating the audio applications, I can't enter acpi s3. > > When trying to suspend the system I get repeated messages on the console: "Waiting for sound application to exit!" (as documented here: http://baitisj.blogspot.it/2015/05/usb-audio-disconnect-woes-in-freebsd.html) but I can't react by killing the incriminated pid since ttys are already unavailable, and I'm forced to perform an hard reset Hi, There is a bug in pulseaudio or some mixer application, that it doesn't close the /dev/mixer or /dev/dsp, when receiving a read/write error from the USB audio device. Try killing pulseaudio. --HPS