From owner-freebsd-current@FreeBSD.ORG Wed Jun 8 23:23:37 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C52A16A41C; Wed, 8 Jun 2005 23:23:37 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3C9F43D48; Wed, 8 Jun 2005 23:23:36 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from localhost (unknown [192.168.99.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yazzy.org (Postfix) with ESMTP id 28E873986D; Thu, 9 Jun 2005 01:23:57 +0200 (CEST) Date: Thu, 9 Jun 2005 01:23:32 +0200 From: Marcin Jessa To: current@freebsd.org, freebsd-mobile@freebsd.org Message-Id: <20050609012332.6650e7fa.lists@yazzy.org> In-Reply-To: <20050609002324.70964f7b.lists@yazzy.org> References: <20050608231740.2b01a22f.lists@yazzy.org> <20050608214726.F037F5D09@ptavv.es.net> <20050609002324.70964f7b.lists@yazzy.org> Organization: YazzY.org X-Mailer: Sylpheed version 1.9.12 (GTK+ 2.6.7; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: Resume with ACPI doesn't work on ThinkPad R50e X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 23:23:37 -0000 Hi again. Actually setting hw.syscons.sc_no_suspend_vtswitch=1 seems to make resume not work. hw.acpi.reset_video=0 is the only needed value. Then it's all fine. The strange thing is setting hw.syscons.sc_no_suspend_vtswitch=1 manually with sysctl after the system has booted does not seem to have any effect. It only disables proper functionality of resume after reboot. Cheers, Marcin. On Thu, 9 Jun 2005 00:23:24 +0200 Marcin Jessa wrote: > Hi Kevin, guys. > > Thanks a lot, that helped! > Everything comes back after resume without any problem. > Network (iwi and fx drivers), USB... > Even X is fine and I do not need to switch to console to bring it back. > I tried suspend/resume 3 times and it worked like a charm each and every time. > > I added acpi_video_load="YES" to loader.conf > and > hw.acpi.reset_video=0 > hw.syscons.sc_no_suspend_vtswitch=1 > to sysctl.conf > > I noticed after resume dmesg spits out: > > acpi: suspend request ignored (not ready yet) > wakeup from sleeping state (slept 00:00:19) > > Now even powerd works great automatically adjusting the speed of my CPU when idle on battery. > > The only thing that does not work properly is when hw.acpi.lid_switch_state=S3. > It goes to sleep mode when I close the lid but X restarts after resume. I can live with that tho. > > > Thanks again Kevin, you made my day! > > > > On Wed, 08 Jun 2005 14:47:26 -0700 > "Kevin Oberman" wrote: > > > > Date: Wed, 8 Jun 2005 23:17:40 +0200 > > > From: Marcin Jessa > > > Sender: owner-freebsd-mobile@freebsd.org > > > > > > Hi. > > > > > > I've Thinkpad R50e and I am struggeling to make resume work on it. > > > I'm on FreeBSD 6.0-CURRENT #2: Wed Jun 8 21:12:11 CEST 2005 (built on sources from a couple of hours ago). > > > I am able to change the speed of CPU and put the laptop in sleep mode with acpiconf -s 3 (S1, S2 and S3 are supported). > > > The problem is it never manages to fully wake up from the sleep mode. > > > I tried with and without X running with the same result. > > > It wakes up, I can hear the drives spin, the screen is turned on but the laptop is still frozen. > > > The keayboard is unaccessible. > > > I dont have apm enabled in the kernel. > > > Those are the values in my sysctl.conf: > > > hw.pci.do_powerstate=1 > > > hw.acpi.lid_switch_state=S3 > > > hw.acpi.standby_state=S1 > > > hw.acpi.suspend_state=S3 > > > hw.acpi.sleep_button_state=S3 > > > vfs.usermount=1 > > > hw.acpi.sleep_delay=3 > > > > > > device.hints has hint.apm.0.disabled="0" > > > > > > In the dmesg I can also see many occurances of > > > ichss0: transition to 1 failed > > > I think that begun after I added device cpufreq to my kernel config. > > > > > > I also followed http://www.iosn.net/Members/kaeru/articles/freebsd/x40/index_html but with no luck. > > > > > > Any ideas how to make resume work? > > > > Just some suggestions that might (or might not) help. > > > > Play with hw.acpi.reset_video and hw.syscons.sc_no_suspend_vtswitch. You > > may find that you need the jhb acpi_video_dpms patch. > > > > I have the following /boot/loader.conf on my T30: > > cpufreq_load="YES" > > vesa_load="YES" > > snd_ich_load="YES" > > acpi_video_load="YES" > > acpi_ibm_load="YES" (This is NOT required for resume, but it is nice for > > a few things. It is the recently posted test > > version and I don't think it's been committed.) > > > > I have the following in my /etc/sysctl.conf on my T30: > > hw.acpi.reset_video=0 > > hw.syscons.sc_no_suspend_vtswitch=1 > > hw.acpi.lid_switch_state=NONE > > hw.pci.do_powerstate=1 > > > > I do notice that I need to switch from my X display to a vty and back > > after a resume to get the display back. (CTRL-ALT-F1, ALT-F9) > > The SpeedStep errors are troubling. I have not seen any other reports of > > this. > > -- > > R. Kevin Oberman, Network Engineer > > Energy Sciences Network (ESnet) > > Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) > > E-mail: oberman@es.net Phone: +1 510 486-8634 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"