From owner-freebsd-current@FreeBSD.ORG Tue Oct 12 13:17:03 2004 Return-Path: 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 C92B116A514 for ; Tue, 12 Oct 2004 13:17:03 +0000 (GMT) Received: from smtp2.jazztel.es (smtp2.jazztel.es [62.14.3.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id C10C543D45 for ; Tue, 12 Oct 2004 13:17:02 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp2.jazztel.es with antivirus id 1CHMWQ-0002bq-00 Tue, 12 Oct 2004 15:16:58 +0200 Received: from [212.106.255.193] (helo=rguez.homeunix.net) by smtp2.jazztel.es with esmtp id 1CHMWP-0002av-00 Tue, 12 Oct 2004 15:16:57 +0200 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id i9CDBst3047925; Tue, 12 Oct 2004 15:11:54 +0200 (CEST) (envelope-from josemi@freebsd.jazztel.es) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.1/8.13.1/Submit) id i9CDBrE4085295; Tue, 12 Oct 2004 15:11:53 +0200 (CEST) (envelope-from josemi@freebsd.jazztel.es) X-Authentication-Warning: orion.redesjm.local: freebsd set sender to josemi@freebsd.jazztel.es using -f From: Jose M Rodriguez To: freebsd-current@freebsd.org Date: Tue, 12 Oct 2004 15:11:52 +0200 User-Agent: KMail/1.7 References: <69b7b6901d.6901d69b7b@osu.edu> <200410121359.33918.josemi@freebsd.jazztel.es> <416BCF21.3000103@gmx.de> In-Reply-To: <416BCF21.3000103@gmx.de> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_Zg9aBZABLffoQ1F" Message-Id: <200410121511.53192.josemi@freebsd.jazztel.es> X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.27.0.12; VDF 6.27.0.81 (host: antares.redesjm.local) X-Virus-Scanned: by antivirus X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Jochen Gensch Subject: Re: ACPI Suspend -> /dev/ums0 dead X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 12 Oct 2004 13:17:04 -0000 --Boundary-00=_Zg9aBZABLffoQ1F Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline El Martes, 12 de Octubre de 2004 14:33, Jochen Gensch escribi=F3: > Jose M Rodriguez wrote: > > You may also try and specific resume in /etc/rc.resume: > > /usr/bin/killall moused > > [ -c /dev/psm0 ] && /usr/sbin/moused -p /dev/psm0 \ > > -I /var/run/moused.pid > > [ -c /dev/ums0 ] && /usr/sbin/moused -p /dev/ums0 \ > > -I /var/run/moused.ums0.pid > > /usr/sbin/vidcontrol -m on > > Yes, that's kind of the same, what I did. However this doesn't seem > to be executed. If you just enter a '/usr/bin/killall moused' for > instance, then nothing is going to be killed. Even your version > doesn't work at all. By the way, what is that is the brackets? > [...] try as attached. [ -c ] are test of device presence, see test(1) > But I can kill and restart it manually, which is working fine... > maybe I'm using the wrong position in rc.resume? > > SU NB /home/incmc:cat /etc/rc.resume > #!/bin/sh > # > # Copyright (c) 1999 Mitsuru IWASAKI > # All rights reserved. > # > # Redistribution and use in source and binary forms, with or without > # modification, are permitted provided that the following conditions > # are met: > # 1. Redistributions of source code must retain the above copyright > # notice, this list of conditions and the following disclaimer. > # 2. Redistributions in binary form must reproduce the above > copyright # notice, this list of conditions and the following > disclaimer in the # documentation and/or other materials provided > with the distribution. # > # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' > AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED > TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A > PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR > CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, > SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT > LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF > USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND > ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, > OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT > OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # > SUCH DAMAGE. > # > # $FreeBSD: src/etc/rc.resume,v 1.7 2003/12/30 17:30:39 njl Exp $ > # > > # sample run command file for APM Resume Event > > if [ $# -ne 2 ]; then > echo "Usage: $0 [apm|acpi] [standby,suspend|1-5]" > exit 1 > fi > > subsystem=3D$1 > state=3D$2 > > if [ -r /var/run/rc.suspend.pid ]; then > kill -9 `cat /var/run/rc.suspend.pid` > rm -f /var/run/rc.suspend.pid > echo 'rc.resume: killed rc.suspend that was still around' > fi > > # Turns on a power supply of a card in the slot inactivated. > # See also contrib/pccardq.c (only for PAO users). > # pccardq | awk -F '~' '$5 =3D=3D "inactive" \ > # { printf("pccardc power %d 1", $1); }' | sh > > # UHCI has trouble resuming so we just load/unload it. You > # should add any other kernel modules you want reloaded here. > # kldload usb > > logger -t $subsystem resumed at `date +'%Y%m%d %H:%M:%S'` > sync && sync && sync > > #Moused killen und neu starten > #/usr/bin/killall -KILL moused > #/usr/sbin/moused -p /dev/psm0 > > /usr/bin/killall moused [ -c /dev/psm0 ] && /usr/sbin/moused -p > /dev/psm0 \ -I /var/run/moused.pid [ -c /dev/ums0 ] && > /usr/sbin/moused -p /dev/ums0 \ -I /var/run/moused.ums0.pid > exit 0 > > > Jochen > > > _______________________________________________ > 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" --Boundary-00=_Zg9aBZABLffoQ1F--