From owner-freebsd-mobile@FreeBSD.ORG Mon Dec 1 14:32:13 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 22D90857 for ; Mon, 1 Dec 2014 14:32:13 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (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 962516C9 for ; Mon, 1 Dec 2014 14:32:12 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id ge10so4199282lab.16 for ; Mon, 01 Dec 2014 06:32:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9IljQukeRMEXgdjwhlQrCyW6O8GHpszldxu+wclL5uk=; b=CsqFAbpMW16R/WicnW3K2MQ9x9/re4gSsj7z4XPMiGve6hb7oqsoZh3sNrUunGsE6P u5f0rujwXP0d5YMBOyF7P3o5X+is8592dLIM0NmG6lkwNaEdNNGHj1qK2yvlM/pHOsHU FpskoHk0SoEPpL9Ko6V1hOFvWRxYLEwGVVWMeUBaSPhBCuE/7Tfz8KN37gAg/nGpmUzu 7zNOLldnoUcw+/PioC7DDShMjDU+mfRHy58WdJl/Ri6/gIN1j9K8Ecxn4+3MjHgI2Upk FUTZ5XVpOMpuQQHG+Xnfj5S6IfSEx71ZGLtN0ZdWjUCatR0VCn0QbmTQjBL1bvYeHP/v bXKA== MIME-Version: 1.0 X-Received: by 10.112.170.7 with SMTP id ai7mr58244960lbc.67.1417444330617; Mon, 01 Dec 2014 06:32:10 -0800 (PST) Received: by 10.152.185.197 with HTTP; Mon, 1 Dec 2014 06:32:10 -0800 (PST) In-Reply-To: References: <54707D0A.2060502@peercorpstrust.org> <54709DAF.5050406@shurik.kiev.ua> <54782046.20804@shurik.kiev.ua> Date: Mon, 1 Dec 2014 14:32:10 +0000 Message-ID: Subject: Re: Best experience with Thinkpad suspend/resume From: isdtor To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Mon, 01 Dec 2014 14:32:13 -0000 Where do I start ... I have configured lid-close support and added all three modules to loader.conf. After reboot, acpi_video is not loaded, but it loads manually with this message acpi_video0: on vgapci0 CPU0: local APIC error 0x80 I get the same error message when I close the lid, and again when I open, but no suspend. Then I tried kldunload acpi_video and got Fatal trap 12: page fault while in kernel mode cpuid = 2; apic id = 02 fault virtual address = 0x20 faulty code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff82e25bb3 stack pointer = 0x28:0xfffffe01118777b0 frame pointer = 0x28:0xfffffe01118777d0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1051 (kldunload) [ thread pid 1051 tid 100155 ] Stopped at acpi_video_vo_destroy+0xd3: movq 0x20(%rcx),%rdx db> acpiconf -s3 works, but the screen doesn't come back after resume. That is after manual loading of acpi_video. /var/log/messages shows Dec 1 14:26:08 host kernel: acpi_video0: on vgapci0 Dec 1 14:26:08 host kernel: CPU0: local APIC error 0x80 Dec 1 14:27:18 host acpi: suspend at 20141201 14:27:18 Dec 1 14:27:22 host kernel: uhub0: at usbus0, port 1, addr 1 (disconnected) Dec 1 14:27:40 host kernel: uhub1: at usbus1, port 1, addr 1 (disconnected) Dec 1 14:27:40 host kernel: ugen1.2: at usbus1 (disconnected) Dec 1 14:27:40 host kernel: uhub3: at uhub1, port 1, addr 2 (disconnected) Dec 1 14:27:40 host kernel: ugen1.3: at usbus1 (disconnected) Dec 1 14:27:40 host kernel: ums0: at uhub3, port 2, addr 3 (disconnected) Dec 1 14:27:40 host kernel: ugen1.4: at usbus1 (disconnected) Dec 1 14:27:40 host kernel: ugen1.5: at usbus1 (disconnected) Dec 1 14:27:40 host kernel: uhub2: at usbus2, port 1, addr 1 (disconnected) Dec 1 14:27:40 host kernel: ugen2.2: at usbus2 (disconnected) Dec 1 14:27:40 host kernel: uhub4: at uhub2, port 1, addr 2 (disconnected) Dec 1 14:27:40 host kernel: pcib0: failed to set ACPI power state D2 on \_SB_.PCI0: AE_BAD_PARAMETER Dec 1 14:27:40 host kernel: acpi0: cleared fixed power button status Dec 1 14:27:40 host kernel: em0: link state changed to DOWN Dec 1 14:27:40 host kernel: xhci0: 32 byte context size. Dec 1 14:27:40 host kernel: xhci0: Port routing mask set to 0xffffffff Dec 1 14:27:40 host kernel: uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 Dec 1 14:27:40 host kernel: uhub1: on usbus1 Dec 1 14:27:40 host kernel: uhub2: on usbus2 Dec 1 14:27:40 host kernel: uhub0: 8 ports with 8 removable, self powered Dec 1 14:27:40 host acpi: resumed at 20141201 14:27:40 Dec 1 14:27:40 host kernel: uhub2: 3 ports with 3 removable, self powered Dec 1 14:27:40 host kernel: uhub1: 3 ports with 3 removable, self powered Dec 1 14:27:41 host kernel: em0: link state changed to UP Dec 1 14:27:41 host dhclient: New IP Address (em0): 157.95.24.91 Dec 1 14:27:41 host dhclient: New Subnet Mask (em0): 255.255.255.0 Dec 1 14:27:41 host dhclient: New Broadcast Address (em0): 157.95.24.255 Dec 1 14:27:41 host dhclient: New Routers (em0): 157.95.24.251 Dec 1 14:27:41 host kernel: ugen2.2: at usbus2 Dec 1 14:27:41 host kernel: uhub3: on usbus2 Dec 1 14:27:41 host kernel: ugen1.2: at usbus1 Dec 1 14:27:41 host kernel: uhub4: on usbus1 Dec 1 14:27:42 host kernel: uhub4: 6 ports with 6 removable, self powered Dec 1 14:27:43 host kernel: uhub3: 8 ports with 8 removable, self powered Dec 1 14:27:43 host kernel: ugen1.3: at usbus1 Dec 1 14:27:43 host kernel: ums0: on usbus1 Dec 1 14:27:43 host kernel: ums0: 5 buttons and [XYZT] coordinates ID=1 Dec 1 14:27:44 host kernel: ugen1.4: at usbus1 Dec 1 14:27:44 host root: Unknown USB device: vendor 0x147e product 0x2020 bus uhub4 Dec 1 14:27:44 host kernel: ugen1.5: at usbus1 Dec 1 14:27:44 host root: Unknown USB device: vendor 0x04f2 product 0xb2ea bus uhub4 Dec 1 14:27:44 host root: Unknown USB device: vendor 0x04f2 product 0xb2ea bus uhub4 The machine is set to discrete graphics in the bios.