Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2011 08:58:28 +0200
From:      Lars Engels <lars.engels@0x20.net>
To:        Josh Paetzel <josh@tcbug.org>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: Suspect/Resume success on Lenovo T510
Message-ID:  <20110330065828.GI27936@e.0x20.net>
In-Reply-To: <201103281250.09703.josh@tcbug.org>
References:  <201103281250.09703.josh@tcbug.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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.
> 
> 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


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAk2S1JMACgkQKc512sD3afhs5QCeILFdk5e7EscwPCL5xu/mXF2d
qscAn11UiWZpQu04VDEfVrjdebf19mU3
=+gXm
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110330065828.GI27936>