From owner-freebsd-current@FreeBSD.ORG Tue Oct 12 12:33:48 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 AE21416A4CF for ; Tue, 12 Oct 2004 12:33:48 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B40DB43D39 for ; Tue, 12 Oct 2004 12:33:47 +0000 (GMT) (envelope-from incmc@gmx.de) Received: (qmail 17747 invoked by uid 65534); 12 Oct 2004 12:33:46 -0000 Received: from pD9FF1256.dip.t-dialin.net (EHLO ms.homeip.net) (217.255.18.86) by mail.gmx.net (mp003) with SMTP; 12 Oct 2004 14:33:46 +0200 X-Authenticated: #15946415 Received: from ms.homeip.net ([217.255.18.86] helo=[10.0.0.101]) by ms.homeip.net with asmtp (TLSv1:AES256-SHA:256) id 1CHLqm-000LC3-Pd for freebsd-current@freebsd.org; Tue, 12 Oct 2004 14:33:56 +0200 Message-ID: <416BCF21.3000103@gmx.de> Date: Tue, 12 Oct 2004 14:33:37 +0200 From: Jochen Gensch User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040826) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <69b7b6901d.6901d69b7b@osu.edu> <200410121251.31740.josemi@freebsd.jazztel.es> <416BBED8.7020307@gmx.de> <200410121359.33918.josemi@freebsd.jazztel.es> In-Reply-To: <200410121359.33918.josemi@freebsd.jazztel.es> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 12:33:48 -0000 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? 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=$1 state=$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 == "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