From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 16 21:38:41 2014 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9914E7B0 for ; Tue, 16 Sep 2014 21:38:41 +0000 (UTC) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2F699F47 for ; Tue, 16 Sep 2014 21:38:41 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id y10so474326wgg.15 for ; Tue, 16 Sep 2014 14:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=N17IiT4+9X8VCHXNA+dE46sSI+twb8Jwk6eJBwPtIeg=; b=NFAXK2eMgx+ExUxGhcBdw9seRsI74/5x+dwVGx6dY/zSjWxka2RFUpNn4BXd4jprnV IC2tJ6bZRELjIQwSL6drGH44vjIjBaEtJlkvEbhg/Ukt71FFMKgl6o3noK0B48s8QPs7 YdgoyEWKOig49qbFuJfr6Fb/bq/q7blZLxSkacp/JVn3IBimwEKe2e9o7gkB5Ff9vg5u Mk/9Wk8hlxe6UBSGvzGhtapQlNPPqeW7SCopaQ63qmwn1mlyQJFiHWS0pQRSwBk7fBXh K70+/L2r4H1La7YeCfK/zIjKTih+YYxJtsYex/VxSzk9u851PGfmrDHEAinnIytZyNwR 78SQ== X-Received: by 10.194.189.233 with SMTP id gl9mr44720117wjc.2.1410903518507; Tue, 16 Sep 2014 14:38:38 -0700 (PDT) Received: from smtp.gmail.com:587 ([89.101.111.64]) by mx.google.com with ESMTPSA id v4sm19773855wjv.6.2014.09.16.14.38.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Sep 2014 14:38:37 -0700 (PDT) Received: by smtp.gmail.com:587 (sSMTP sendmail emulation); Tue, 16 Sep 2014 22:38:35 +0100 Date: Tue, 16 Sep 2014 22:38:35 +0100 From: isdtor To: freebsd-mobile@freebsd.org Subject: Re: ThinkPad support Message-ID: <20140916213835.GA4575@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 21:38:41 -0000 I have done some more research and I think the problem is that I don't have a devd configuration that matches my hardware. After discovering :) and enabling acpi_ibm and setting dev.acpi_ibm.0.events to 1, I found that any Fn+F[0-9] results in a call to /etc/rc.suspend. Sep 16 21:44:21 host devd: Executing '/etc/rc.suspend acpi 0x03' Sep 16 21:44:21 host acpi: suspend at 20140916 21:44:21 ... Sep 16 21:48:23 host devd: notify_clients: send() failed; dropping unresponsive client Sep 16 21:48:23 host devd: Executing '/etc/rc.d/moused stop ums0' Sep 16 21:48:23 host devd: Executing '/etc/rc.resume acpi 0x03' Stopping devd entirely and pressing just the Fn results in suspend as well. Adding the acpi_ibm(4) example config for the T41p to devd.conf doesn't help much. A subsequent service devd stop/service devd start did not launch devd into the background as I would expect. Also, related or not, there are a number of syslog entries Sep 16 21:43:18 host kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) and Sep 16 21:48:23 host kernel: pci0: failed to set ACPI power state D2 on \_SB_.PCI0.EXP1: AE_BAD_PARAMETER From owner-freebsd-mobile@FreeBSD.ORG Wed Sep 17 10:09:40 2014 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E19AFE46 for ; Wed, 17 Sep 2014 10:09:40 +0000 (UTC) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F1A68A4 for ; Wed, 17 Sep 2014 10:09:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id s8HA9IFm024885; Wed, 17 Sep 2014 20:09:19 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 17 Sep 2014 20:09:17 +1000 (EST) From: Ian Smith To: isdtor Subject: Re: ThinkPad support In-Reply-To: <20140916213835.GA4575@localhost.localdomain> Message-ID: <20140917193232.K61666@sola.nimnet.asn.au> References: <20140916213835.GA4575@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 10:09:41 -0000 On Tue, 16 Sep 2014 22:38:35 +0100, isdtor wrote: [.. I can't comment on your devd issue/s ..] > Sep 16 21:48:23 host kernel: pci0: failed to set ACPI power state D2 on > \_SB_.PCI0.EXP1: AE_BAD_PARAMETER This appears to be common to all Thinkpads for the last 6 years or so, when booting with verbose messages. This message is emitted late on the suspend path, and seems to indicate some device that has advertised D2 as an available state, where D2 isn't apparently really supported. On the resume path, not much later in the messages sequence, you should see power being set back to D0 state, successfully. Perhaps - as in the case of my X200 - twice in a row, for devices \_SB_.PCI0.EXP0 thru .EXP3 I don't know if this failure means that the device was left in D0 state (run) or in D3 state (off) when power was removed in S3 suspend state. I never have been able to connect the dots between these .EXPn devices and particular PCI devices in dmesg. So far they appear to be harmless. cheers, Ian From owner-freebsd-mobile@FreeBSD.ORG Wed Sep 17 19:09:33 2014 Return-Path: Delivered-To: freebsd-mobile@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4577A368 for ; Wed, 17 Sep 2014 19:09:33 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2C564A84 for ; Wed, 17 Sep 2014 19:09:33 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8HJ9Xb6007582 for ; Wed, 17 Sep 2014 19:09:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mobile@FreeBSD.org Subject: [Bug 193720] Adopt a new acpi_quirk from DragonflyBSD Date: Wed, 17 Sep 2014 19:09:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: adrian@freebsd.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-mobile@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 19:09:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193720 Adrian Chadd changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-mobile@FreeBSD.org --- Comment #2 from Adrian Chadd --- Reassigning to -mobile. Would someone with a commit bit please push this into -HEAD? I'm a little swamped atm. -- You are receiving this mail because: You are the assignee for the bug.