From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 28 18:06:24 2011 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 CEB18106564A for ; Mon, 28 Mar 2011 18:06:24 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id 9F7D28FC19 for ; Mon, 28 Mar 2011 18:06:24 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 4565D20A55 for ; Mon, 28 Mar 2011 13:50:11 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 28 Mar 2011 13:50:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:date:mime-version:content-type:content-transfer-encoding:message-id; s=smtpout; bh=H9+2IoRY7/a9GToKAeVDughk5Kw=; b=TwSdKFhjBgfz3KZ9Cztn5OatBLuZGaV6GF88LPpCKW/XrYROjDbuxo72EGbK6b5YouHdegJIM5qiPiLByf0VVrYdME7VsdKmo/BRiJH3jeGr3AZhj21YNFEBwJsMRGGX6gsrKmtFmkCpRHs51eU1JSrD1A8sw1Z7DeiOy8qnF1c= X-Sasl-enc: bU2/fWiQzn9PdAH00iJHR5RktQEwS15vG5Db5GYX3YZm 1301334610 Received: from roadrash.ixsystems.com (74-34-17-154.dr01.rsmt.mn.frontiernet.net [74.34.17.154]) by mail.messagingengine.com (Postfix) with ESMTPSA id D1B22403034 for ; Mon, 28 Mar 2011 13:50:10 -0400 (EDT) From: Josh Paetzel To: freebsd-mobile@freebsd.org Date: Mon, 28 Mar 2011 12:50:05 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-RELEASE; KDE/4.5.5; amd64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1812882.KVGsEVgVny"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201103281250.09703.josh@tcbug.org> Subject: Suspect/Resume success on Lenovo T510 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: Mon, 28 Mar 2011 18:06:24 -0000 --nextPart1812882.KVGsEVgVny Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've had such bad luck with suspend and resume working on FreeBSD laptop th= at=20 I didn't even try it on my new lenovo T510 and just assumed it was broken. Then the power failed this weekend and it went to sleep to conserve the=20 battery. I tried waking it up and the only thing that didn't come back was= =20 the mouse. I'm running moused, and a simple /etc/rc.d/moused restart fixed= =20 that. Nvidia discreet video, intel 6100 wireless using iwn, PC-BSD 8.2=20 rc.resume: /usr/sbin/wpa_cli reassociate ifconfig em0 down ifconfig em0 up sleep 1 dhclient lagg0 /etc/rc.d/moused restart logger -t $subsystem resumed at `date +'%Y%m%d %H:%M:%S'` sync && sync && sync exit 0 =2D-=20 Thanks, Josh Paetzel --nextPart1812882.KVGsEVgVny Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAABAgAGBQJNkMpRAAoJEKFq1/n1feG2AOkH/jMev/yvMHREJ2jCbDpbbymv OKsWCf7ijmxHuIPsUHlF+p2m3H/eO3vCr7enCOVWDGEmfR6GPaaMlTgt3ggo422l ArwieY1K8AaR/34G3fjQI6aIrpe8fL/PySDDUfQGjyhzrhPhwb5s8nfqiHr2Wete CYi9aEvv4zBo5NaSo2di0rC2GktfwAzOHA8WQcHTolj0OrSBGNfQYOSazOelHu1D cVOpwDLwZf7GBVjGMqvXLmPZH3hfsXLgoiw706jLBmnjLe3FlY7L5cSAmpNpLqCC z7Vw8y8vUNlf3VM0GtvruzYh74+x3NBTOV/KZrYnyhMVOsIrO8fea2TzqXb9j2o= =/bLi -----END PGP SIGNATURE----- --nextPart1812882.KVGsEVgVny-- From owner-freebsd-mobile@FreeBSD.ORG Wed Mar 30 07:16:49 2011 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 8BFCC1065674 for ; Wed, 30 Mar 2011 07:16:49 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 4EC2D8FC19 for ; Wed, 30 Mar 2011 07:16:49 +0000 (UTC) Received: by mail.0x20.net (Postfix, from userid 1002) id 2C624398B3; Wed, 30 Mar 2011 08:58:28 +0200 (CEST) Date: Wed, 30 Mar 2011 08:58:28 +0200 From: Lars Engels To: Josh Paetzel Message-ID: <20110330065828.GI27936@e.0x20.net> References: <201103281250.09703.josh@tcbug.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sl5MdczEF/OU2Miu" Content-Disposition: inline In-Reply-To: <201103281250.09703.josh@tcbug.org> X-Editor: VIM - Vi IMproved 7.2 X-Operation-System: FreeBSD 5.5-RELEASE-p19 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-mobile@freebsd.org Subject: Re: Suspect/Resume success on Lenovo T510 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: Wed, 30 Mar 2011 07:16:49 -0000 --sl5MdczEF/OU2Miu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 28, 2011 at 12:50:05PM -0500, Josh Paetzel wrote: > I've had such bad luck with suspend and resume working on FreeBSD laptop = that=20 > I didn't even try it on my new lenovo T510 and just assumed it was broken. >=20 > Then the power failed this weekend and it went to sleep to conserve the= =20 > battery. I tried waking it up and the only thing that didn't come back w= as=20 > the mouse. I'm running moused, and a simple /etc/rc.d/moused restart fix= ed=20 > that. >=20 > Nvidia discreet video, intel 6100 wireless using iwn, PC-BSD 8.2=20 >=20 > rc.resume: >=20 > /usr/sbin/wpa_cli reassociate > ifconfig em0 down > ifconfig em0 up > sleep 1 > dhclient lagg0 > /etc/rc.d/moused restart >=20 > logger -t $subsystem resumed at `date +'%Y%m%d %H:%M:%S'` > sync && sync && sync >=20 > exit 0 I think moused should be restarted on every machine that wakes up. Maybe this should be added to rc.resume: /etc/rc.d/moused forcestatus > /dev/null 2>&1 && /etc/rc.d/moused forcerest= art --sl5MdczEF/OU2Miu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAk2S1JMACgkQKc512sD3afhs5QCeILFdk5e7EscwPCL5xu/mXF2d qscAn11UiWZpQu04VDEfVrjdebf19mU3 =+gXm -----END PGP SIGNATURE----- --sl5MdczEF/OU2Miu-- From owner-freebsd-mobile@FreeBSD.ORG Wed Mar 30 08:04:55 2011 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 B8DC4106564A for ; Wed, 30 Mar 2011 08:04:55 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 0E98A8FC14 for ; Wed, 30 Mar 2011 08:04:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p2U84jlM029833; Wed, 30 Mar 2011 19:04:45 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 30 Mar 2011 19:04:44 +1100 (EST) From: Ian Smith To: Lars Engels In-Reply-To: <20110330065828.GI27936@e.0x20.net> Message-ID: <20110330184300.H33521@sola.nimnet.asn.au> References: <201103281250.09703.josh@tcbug.org> <20110330065828.GI27936@e.0x20.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Josh Paetzel , freebsd-mobile@freebsd.org Subject: Re: Suspect/Resume success on Lenovo T510 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: Wed, 30 Mar 2011 08:04:55 -0000 On Wed, 30 Mar 2011, Lars Engels wrote: > On Mon, Mar 28, 2011 at 12:50:05PM -0500, Josh Paetzel wrote: > > I've had such bad luck with suspend and resume working on FreeBSD laptop that > > I didn't even try it on my new lenovo T510 and just assumed it was broken. > > > > Then the power failed this weekend and it went to sleep to conserve the > > battery. I tried waking it up and the only thing that didn't come back was > > the mouse. I'm running moused, and a simple /etc/rc.d/moused restart fixed > > that. Good to hear, Josh. > > Nvidia discreet video, intel 6100 wireless using iwn, PC-BSD 8.2 > > > > rc.resume: > > > > /usr/sbin/wpa_cli reassociate > > ifconfig em0 down > > ifconfig em0 up > > sleep 1 > > dhclient lagg0 > > /etc/rc.d/moused restart > > > > logger -t $subsystem resumed at `date +'%Y%m%d %H:%M:%S'` > > sync && sync && sync > > > > exit 0 > > I think moused should be restarted on every machine that wakes up. > Maybe this should be added to rc.resume: > > /etc/rc.d/moused forcestatus > /dev/null 2>&1 && /etc/rc.d/moused forcerestart Perhaps behind a '#' like some other example solutions in rc.resume? If mouse uses a PS/2 interface (including many/most? builtin pads and pointers) then I found the advice given below works well, after having also used 'moused restart' in rc.resume for some years previously, on both an old Compaq Armada and on my Thinkpad T23. cheers, Ian ======= Date: Mon, 27 Sep 2010 16:21:15 -0400 From: Jung-uk Kim To: freebsd-stable@FreeBSD.org Subject: Re: resume slow on Thinkpad T42 FreeBSD 8-STABLE [..] If the mouse is connected to PS/2 port, the following device flags may help. psm(4): bit 13 HOOKRESUME The built-in PS/2 pointing device of some laptop computers is somehow not operable immediately after the system `resumes' from the power saving mode, though it will eventually become available. There are reports that stimulating the device by performing I/O will help waking up the device quickly. This flag will enable a piece of code in the psm driver to hook the `resume' event and exercise some harmless I/O operations on the device. bit 14 INITAFTERSUSPEND This flag adds more drastic action for the above problem. It will cause the psm driver to reset and re-initialize the pointing device after the `resume' event. It has no effect unless the HOOKRESUME flag is set as well. I always use hint.psm.0.flags="0x6000" in /boot/loader.conf, i.e., turn on both HOOKRESUME and INITAFTERSUSPEND, to work around similar problem on different laptop. =======