Zsh Mailing List Archive
Messages sorted by:
Re: can zsh detect return from hibernation?
- X-seq: zsh-users 23221
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: can zsh detect return from hibernation?
- Date: Fri, 09 Mar 2018 11:14:28 +0000
- 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 ==
- In-reply-to: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- List-unsubscribe: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <firstname.lastname@example.org>
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
> hibernation it always spins up all disks. System level things can spin
> themdown, but on thaw, I'm back to my xfce4 desktop and xfce4 is the
> culprit spinning up the disks. It seems that there's no way of getting
> xfce4 to reset the spindown, so I'm wondering if zsh can detect that
> it's resumed from hibernationso that I can add something to zshrc to
> perform "hdparm -y /dev/sdb" but only the one time that it's needed.
> 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.
Messages sorted by: