Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2004 15:11:52 +0200
From:      Jose M Rodriguez <josemi@freebsd.jazztel.es>
To:        freebsd-current@freebsd.org
Cc:        Jochen Gensch <incmc@gmx.de>
Subject:   Re: ACPI Suspend -> /dev/ums0 dead
Message-ID:  <200410121511.53192.josemi@freebsd.jazztel.es>
In-Reply-To: <416BCF21.3000103@gmx.de>
References:  <69b7b6901d.6901d69b7b@osu.edu> <200410121359.33918.josemi@freebsd.jazztel.es> <416BCF21.3000103@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



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