zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: can zsh detect return from hibernation?
Date: Fri, 09 Mar 2018 11:14:28 +0000	[thread overview]
Message-ID: <1520594068.2394520.1297181376.011DCE45@webmail.messagingengine.com> (raw)
In-Reply-To: <059ad731-cb5e-a536-16ad-d1022dca76b6@eastlink.ca>

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.

Good luck.


  reply	other threads:[~2018-03-09 11:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-06 20:41 Ray Andrews
2018-03-09 11:14 ` Daniel Shahaf [this message]
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=1520594068.2394520.1297181376.011DCE45@webmail.messagingengine.com \
    --to=d.s@daniel.shahaf.name \
    --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).