From owner-freebsd-mobile@FreeBSD.ORG Mon Jun 14 03:53:54 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4909016A4CE for ; Mon, 14 Jun 2004 03:53:54 +0000 (GMT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16EC243D39 for ; Mon, 14 Jun 2004 03:53:54 +0000 (GMT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 2393E3D34; Sun, 13 Jun 2004 23:52:49 -0400 (EDT) From: "Dan Langille" To: "Kevin Oberman" Date: Sun, 13 Jun 2004 23:52:48 -0400 MIME-Version: 1.0 Message-ID: <40CCE8D0.31339.697F6FE5@localhost> Priority: normal In-reply-to: <20040614034007.BA8045D09@ptavv.es.net> References: Your message of "Sun, 13 Jun 2004 21:42:24 EDT." <40CCCA40.13713.69080B47@localhost> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: Damian Gerow cc: freebsd-mobile@freebsd.org Subject: Re: suspend/resume issues on ThinkPad T41 under 5.2.1-RELEASE X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2004 03:53:54 -0000 On 13 Jun 2004 at 20:40, Kevin Oberman wrote: > > From: "Dan Langille" > > Date: Sun, 13 Jun 2004 21:42:24 -0400 > > Sender: owner-freebsd-mobile@freebsd.org > > > > On 13 Jun 2004 at 21:35, Damian Gerow wrote: > > > > > Thus spake Dan Langille (dan@langille.org) [13/06/04 21:32]: > > > : The existing issues after a resume are: > > > : > > > : - blinking cursor at top left (I'll try killing moused in > > > : /etc/suspend and starting it again in /etc/resume) > > > : > > > : - em0 is dead upon resume (I'll try killing dhclient, and starting it > > > : again, as well as setting). I keep getting > > > > > > Would this not be a good idea to do anyway? As you're not guaranteed to > > > resume on the same network you went to sleep on. In fact, I'd wager a guess > > > to say that the majority of resumes will occur on different networks, > > > requiring a different DHCP lease. > > > > Agreed. FWIW, I'm just trying to figure out how to do this. > > I have no clean solution. Tobias Roth is working on this and I think > it's pretty close, but until he gets it ready for prime time, it's a > manual operation. killall dhclient, route flush, ifconfig em0 down, > ifconfig em0 up, dhclient em0. This assumes that the network you connect > to has a DHCP server. Of course, this requires root permissions. Manual is good enough for me. FWIW, "route flush" takes a very long time to complete. As in minutes. dhclient em0 fails and reports several times in /var/log/messages that "send_packet: Network is down". I think it's time for sleep. ;) Thanks for your help. -- Dan Langille : http://www.langille.org/ BSDCan - http://www.bsdcan.org/