From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 57591139077 for ; Thu, 27 Feb 2014 02:39:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B21CFE0B01; Thu, 27 Feb 2014 02:38:57 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A3193E0AD5 for ; Thu, 27 Feb 2014 02:38:56 +0000 (UTC) Received: by mail-ig0-f173.google.com with SMTP id r1so11683885igi.0 for ; Wed, 26 Feb 2014 18:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nileshgr.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CDm2POotERr60e3V0Fz+M7yhsTq1O5X9r2GUfY1FcuY=; b=lftXAjkgiG5FdgVFBK1JXcvuyHKSdgEiJZDGodbm/VMgqOcU3DSmW1sNJfrQdhU54N SKbHmj+8B5WqqWX6RNstIURT/RtM0JjZGMrlq+lp89x+PWqE1S8fGLkesl3Mp4CqR9+l Ej3LJ31XrwgWWLbCn6VDczTjkvWtT1Z6TaOBk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=CDm2POotERr60e3V0Fz+M7yhsTq1O5X9r2GUfY1FcuY=; b=JOoUzyROYWYaxzxeMgtJsZSpNd+ibNtxQhOIjFvlmai78aRb1nz+dH2VkCvcJKeBdR gr8RDa+DO/MOEbYrv3H+SImZ4FvjQXuHjyk1YvJ8IeQOwKh11PmmTELk3NV/pH9Xp+GK vzs0o7olWO0fioc139JgerKkEfEnGmdH/MmVbA9Im8+adk9WfZLqcxt/8V726G+HXNUF IG6AaYs+W6fsNPvUOCh5IrtfiUt4eIs1//RUPmt2w74QrtyCPzhoYbkHaU/29zHSgulx XUHK7rPPGp9YlDrYz7FTEOOaOrnN3bItPfz3ED7FQuHtFLZ5Nt9PSLPqBlVlJJQM720R Kpsg== X-Gm-Message-State: ALoCoQliwkk/ngqsR53Sb6xRoPucMFmHrx7/UrD9i46y2FpaZvvV9ly4MOQKZ5rHHHOyPtcJHrKA Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.115.102 with SMTP id jn6mr3426512igb.10.1393468735617; Wed, 26 Feb 2014 18:38:55 -0800 (PST) Received: by 10.64.70.8 with HTTP; Wed, 26 Feb 2014 18:38:55 -0800 (PST) Received: by 10.64.70.8 with HTTP; Wed, 26 Feb 2014 18:38:55 -0800 (PST) In-Reply-To: References: Date: Thu, 27 Feb 2014 08:08:55 +0530 Message-ID: Subject: Re: [gentoo-user] Modifying Suspend Script? From: Nilesh Govindrajan To: Gentoo User Mailing List Content-Type: multipart/alternative; boundary=089e0117683bfe186304f35a384a X-Archives-Salt: 05b2fa40-abd1-4229-a7dc-a23014eb4ea3 X-Archives-Hash: 0691cd982fda8a3e453c57668bdada9a --089e0117683bfe186304f35a384a Content-Type: text/plain; charset=UTF-8 On 27 Feb 2014 08:06, "Lee" wrote: > > Hi, I always need to reconnect my laptop pcmcia wireless card to my WAP when awaking from suspend. It would be nice if I could add two commands, ifconfig and dhpcd, to the script which controls awaking from suspend. Anyone know which file I can edit? I don't exactly remember, but I think Hibernate-script allows to do this. There are configuration files which state commands to be executed during various events. You can also tweak acpid script. Ask acpid to listen on power button event and setup a script which calls your routine and then pm-suspend --089e0117683bfe186304f35a384a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 27 Feb 2014 08:06, "Lee" <ny6p01@gmail.com> wrote:
>
> Hi, I always need to reconnect my laptop pcmcia wireless card to my WA= P when awaking from suspend. It would be nice if I could add two commands, = ifconfig and dhpcd, to the script which controls awaking from suspend. Anyo= ne know which file I can edit?

I don't exactly remember, but I think Hibernate-script a= llows to do this. There are configuration files which state commands to be = executed during various events.

You can also tweak acpid script. Ask acpid to listen on powe= r button event and setup a script which calls your routine and then pm-susp= end

--089e0117683bfe186304f35a384a--