From owner-freebsd-mobile@FreeBSD.ORG Tue Oct 12 18:58:09 2010 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97BDE1065698 for ; Tue, 12 Oct 2010 18:58:09 +0000 (UTC) (envelope-from arvid.warnecke@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1F0ED8FC23 for ; Tue, 12 Oct 2010 18:58:08 +0000 (UTC) Received: by bwz16 with SMTP id 16so1891474bwz.13 for ; Tue, 12 Oct 2010 11:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=09ALkRkUgXnNgn6SnYb/ZVjAN6NanmqA+3xTTgI6oIM=; b=dJNqFAYJnxhNT9FMUPadyaWX4qIDhoiQ1UNC+OqGV0aWa1L0LKGgJ2rXEiTJfkDz0q Lvp7JjOKJAnfsbu867wX52BJQN2xejy5A57BV7HCCREQ3n+dpl/PxQ5VKm7S1oCvhZeJ SfNhxNN6fs+drqXJTTZe9P1ODclVhaeHeIOHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=NzF1m3TNwjcaC4UOTWPWAsjhTghreWSsUbNMjPXYeDdSXMRnsPawAZZIjLNgkyhj0E bVYWy3vJtVXPZTXnAVkQ5htTVuE73XsvzzhLxnGKI9TAeGuqdGNUM7Js0uoFzGV4qOXj 7VkqS145UCwHfMeZzUHb/7Cc+UFInMLMZgWrI= Received: by 10.204.51.200 with SMTP id e8mr6169442bkg.155.1286909886442; Tue, 12 Oct 2010 11:58:06 -0700 (PDT) Received: from localhost (188-192-198-19-dynip.superkabel.de [188.192.198.19]) by mx.google.com with ESMTPS id x13sm7187763bki.0.2010.10.12.11.58.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Oct 2010 11:58:04 -0700 (PDT) Date: Tue, 12 Oct 2010 20:58:16 +0200 From: Arvid Warnecke To: freebsd-mobile@freebsd.org Message-ID: <20101012185813.GA1409@hogwarts.local> Mail-Followup-To: freebsd-mobile@freebsd.org References: <20100923121552.GA14706@hogwarts.local> <20100923132842.GA49398@e.0x20.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100923132842.GA49398@e.0x20.net> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: IBM T60 issues with resume from zzz X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2010 18:58:09 -0000 Hello again, it took some time. On Thu, Sep 23, 2010 at 03:28:42PM +0200, Lars Engels wrote: > On Thu, Sep 23, 2010 at 02:15:54PM +0200, Arvid Warnecke wrote: > > I did some research and found old messages about using acpi_ibm and > > devd. So I edited my loader.conf to load acpi_ibm and /etc/rc.conf have > > these two more lines now: > > > > dev.acpi_ibm.0.events=1 > > hw.acpi.lid_switch_state=S3 > > > > I then added this to my /etc/devd.conf > > > > # ACPI_IBM > > notify 10 { > > match "system" "ACPI"; > > match "subsystem" "IBM"; > > match "notify" "0x04"; > > action "/usr/sbin/zzz"; > > }; > > > > Now the T60 goes to sleep complimentary but does not wake up at all. I > > read a few times about issues with Xorg running, but this does not seem > > to make any difference... > > > > Where can I get more information about fixing the resume/ wake up? Has > > somebody already got the resume working on his/her IBM T60 notebook? > > > perhaps this can help you: > http://www.bsdforen.de/showthread.php?t=24823 > > It's in German, but it's mostly a copy & paste from the config files. > You need a 8-STABLE and compile a kernel without USB support. You load > the USB kernel modules then and unload them before suspending. I followed the instructions there and already tried to get more information on that community, but with no response yet. What I did: 1. I build a new kernel with no USB support, but now load all USB related modules with kldload. 2. I edited my loader.conf to matching my kernel configuration (the poster in the community above wanted to load everything as module, I only wanted to load what's necessary to get suspend/resume to work: http://pastebin.com/9AFxDqti 3. I edited my rc.conf http://pastebin.com/gzHgjQME 4. I added just the small block to load the custom script in my default devd.conf: notify 10 { match "system" "ACPI"; match "subsystem" "IBM"; action "/etc/acpi/acpi_oem_exec.sh $notify ibm"; }; 5. And then saved the script to acpi_oem_exec.sh: http://pastebin.com/SLskzm2A 6. /etc/rc.suspend modified http://pastebin.com/Ygu1rEgh 7. /etc/rc.resume modified http://pastebin.com/L3ySL0Zr 8. Finally the /etc/sysctl.conf with some tunes that shall let ACPI work properly: http://pastebin.com/9MxEz4gz But it works still as bad as always: When I close the laptop the system seems to suspend (I can see that modules get unloaded in /var/log/messages), but when I want it to resume it does not do very much. The harddisk LED lights just once and the fan starts. But that's it. The T60 does not resume and the LED for suspended mode stays on. After killing the system and reboot I can't see anything in messages, that FreeBSD had an impulse to resume the system. Can anybody help please? I am so happy with the system, but it would be awesome to suspend the laptop when leaving the train and resume when at work and such things. You know what I mean.... Best regards, Arvid