From owner-freebsd-acpi@freebsd.org Fri Oct 16 23:10:57 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 285DEA16D4E for ; Fri, 16 Oct 2015 23:10:57 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE63B966 for ; Fri, 16 Oct 2015 23:10:56 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by obcqt19 with SMTP id qt19so24121581obc.3 for ; Fri, 16 Oct 2015 16:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=5tQhdRmMiWE/7GXKdYGiH+qlSnfWlJekRd3+ypP5TOc=; b=qUO8XuNRO3DZEH2V4R5rT8rvRqOsp6cId3qeX/rbTzRD9G9D/FIVnL4OXQSTFTmbBb UF7dYbzfBKbQQK4y5LpRbYPg9xqCydAA4CRh7ZtcraKIDVAdlcZ3aypFO+fzrhyMEaFp xhfvpTt1VS9GKuNZCNdnp6QeAFjkWqEvCHU2lwITmmqwszhmGn91kpF/AYl/aeOheYdF Fmbv7J7LG8fWmMSXK/nEBdlBfnqyAYgyPaiX8z8aXVWzJpCss33KJ7G3cyFmuzArAZ+d OVjCz0zvCGbeMUdy0Qu2bXwXwQcjvqKRrLAZOK2MWvdHG2hvjA/3DLcZZ4Kv2V2lm4TE KnMg== MIME-Version: 1.0 X-Received: by 10.60.118.40 with SMTP id kj8mr11255393oeb.5.1445037056142; Fri, 16 Oct 2015 16:10:56 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.202.50.136 with HTTP; Fri, 16 Oct 2015 16:10:56 -0700 (PDT) In-Reply-To: <5621097F.20705@selasky.org> References: <5621097F.20705@selasky.org> Date: Fri, 16 Oct 2015 16:10:56 -0700 X-Google-Sender-Auth: RIYntph3hoz-epVO_lzb10QCMpU Message-ID: Subject: Re: suspend broken when disconnecting an usb audio device From: Kevin Oberman To: Hans Petter Selasky Cc: account lost , "freebsd-acpi@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 23:10:57 -0000 On Fri, Oct 16, 2015 at 7:28 AM, Hans Petter Selasky wrote: > 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 You might also try lsof(8) or fstat(1) to confirm what is holding it open. (I really wish I could avoid using pulseaudio at all. It's a giant pain in the rear and pretty useless, but my MATE desktop insists.) I'd be curious if both fstat and lsof work. Of late I have not had success with fstat on a hung device, but lsof works fine. I realy need to try to track the fstat ossue down and, if it's not cockpit error, open a bug report.) -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683