zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: can zsh detect return from hibernation?
Date: Tue, 06 Mar 2018 12:41:19 -0800	[thread overview]
Message-ID: <059ad731-cb5e-a536-16ad-d1022dca76b6@eastlink.ca> (raw)

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.


             reply	other threads:[~2018-03-06 21:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-06 20:41 Ray Andrews [this message]
2018-03-09 11:14 ` Daniel Shahaf
2018-03-09 14:53   ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=059ad731-cb5e-a536-16ad-d1022dca76b6@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).