From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24690 invoked by alias); 9 Mar 2018 11:23:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23221 Received: (qmail 17495 invoked by uid 1010); 9 Mar 2018 11:23:09 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.26):SA:0(-2.6/5.0):. Processed in 2.349119 secs); 09 Mar 2018 11:23:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=jZ7s8N /whSlr49YxPvsUF6AlVYTr2PN5M/xyA/+FVH0=; b=kWSuCkpTd0bPjem/idfS0b bVjp63hi1rqx4/3qs5ynxIKPef4EQcNu1ltIBagzvqKdvcQF0W+1Zz0oB9ylUiD2 UzSvWJ+3lWIYIJo5zH6/SZtv8yzgHvzpJFCHW4Sf5roYZa9bRL9RzmdUOc4vEO9b eOl6IA/Dz4KAeRAfyhAJEq5+gy0UEK5pUejvHPedCnF31bEKAlk1NtDifh3aqXY6 RGPcPrjS1eTrOg3tTTQnajjuSIvNSkPyhezqZ1MoGuSSwQOnU+lJ66lEX0eTf3U4 KJIsDcnrLK7kXYvM/g6JGCIm5YnGLSgKdMEfbo/2I8t0yuVKOQGEKYc1ODRgiKfg == DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=jZ7s8N /whSlr49YxPvsUF6AlVYTr2PN5M/xyA/+FVH0=; b=PlFUnTEjA7dO1okKG8VyMF T8d/LoXJg9MNinwJqFW8NQxlVNnQFin3NyOYqeyZqwNNGdW41jYqiYfrTkUnTt+Q 6Hjv0j5Rc9cnIobK6h+jA/hrGCZZ+AEEZKLwAVurPHX6teKgvwcE4YuCgwmXYxBf ndZI4uzH5cNCG1cJagKh0ydkKsbs5a7NW+xX93DOHa7Hdu2sfensL71/ywOECus6 Nfz6zCMKxgSGTQcwg4DOLYL01KUUxbUWmwglW/OpKlykAc7yAWYD12NxN/MQBGkT qQ15N1Adi0VxAkzIuOQuL9i532/ht252yNts2bMwmGnlQKj2uJRkbjUIDZhC9e5w == X-ME-Sender: Message-Id: <1520594068.2394520.1297181376.011DCE45@webmail.messagingengine.com> From: Daniel Shahaf To: zsh-users@zsh.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-54087d22 In-Reply-To: <059ad731-cb5e-a536-16ad-d1022dca76b6@eastlink.ca> References: <059ad731-cb5e-a536-16ad-d1022dca76b6@eastlink.ca> Subject: Re: can zsh detect return from hibernation? Date: Fri, 09 Mar 2018 11:14:28 +0000 Ray Andrews wrote on Tue, 06 Mar 2018 12:41 -0800: > Of course it's not really a zsh issue, but when my machine returns from=20 > hibernation it always spins up all disks.=C2=A0 System level things can s= pin=20 > themdown, but on thaw, I'm back to my xfce4 desktop and xfce4 is the=20 > culprit spinning up the disks.=C2=A0 It seems that there's no way of gett= ing=20 > xfce4 to reset the spindown, so I'm wondering if zsh can detect that=20 > it's resumed from hibernationso that I can add something to zshrc to=20 > perform "hdparm -y /dev/sdb" but only the one time that it's needed.=20 > It's hardly a big problem but I'd not be surprised if zsh can handle it. Ever heard the saying, "When your tool is hammer, every problem looks like a nail"? There's no reason zsh needs to be part of the solution. I would advise you to try and fix the problem at the source (xfce), and failing that, to look into your OS's support for post-hibernate hooks. Good luck.