From 4ccbfb3f84788403ff5de448ed7f61c27e754313 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 15 Nov 2011 12:59:07 +0000 Subject: [PATCH] On some laptops it is important to re-open /dev/psm after resume. moused(8) was capable to do this upon SIGHUP for more than a decade. Automate this via rc.resume in default installation. --- etc/rc.resume | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/rc.resume b/etc/rc.resume index 2cf1a603e53f..1cd5d8a8ed63 100755 --- a/etc/rc.resume +++ b/etc/rc.resume @@ -49,6 +49,10 @@ if [ -r /var/run/rc.suspend.tch ]; then /bin/rm -f /var/run/rc.suspend.tch fi +if [ -r /var/run/moused.pid ]; then + kill -HUP `head -1 /var/run/moused.pid` +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" \