From owner-freebsd-acpi@FreeBSD.ORG Fri Mar 23 06:43:33 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97C4416A400 for ; Fri, 23 Mar 2007 06:43:33 +0000 (UTC) (envelope-from alex65536@yandex.ru) Received: from smtp1.yandex.ru (smtp1.yandex.ru [213.180.223.87]) by mx1.freebsd.org (Postfix) with ESMTP id E910C13C4D3 for ; Fri, 23 Mar 2007 06:43:32 +0000 (UTC) (envelope-from alex65536@yandex.ru) Received: from [194.186.193.90] ([194.186.193.90]:1517 "EHLO [192.168.0.100]" smtp-auth: "alex65536" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S2077450AbXCWGOu (ORCPT ); Fri, 23 Mar 2007 09:14:50 +0300 X-Comment: RFC 2476 MSA function at smtp1.yandex.ru logged sender identity as: alex65536 Date: Fri, 23 Mar 2007 09:14:55 +0300 From: alex65536@yandex.ru X-Mailer: The Bat! (v2.10.03) Personal X-Priority: 3 (Normal) Message-ID: <73519472.20070323091455@yandex.ru> To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: toshiba portege r100 resumes from S3 after a small patch X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alex65536@yandex.ru List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2007 06:43:33 -0000 I've found a way to make my toshiba portege r100 resume. I just edited function ata_resume() in /usr/src/sys/dev/ata/ata-all.c like that: ... int ata_resume(device_t dev) { printf("a delay to be sure disks have started...\n"); DELAY(2000000); // delay for 2 seconds ... } ... Without that delay system crashes sometimes with message "ad0: detached". I think that would work with some other toshiba laptops. A small problem is that the delay occurs two times, for both ata channels, but it's better than nothing. Alexandre Scherbanov