From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17098 invoked by alias); 9 Mar 2018 15:22:00 -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: 23222 Received: (qmail 6879 invoked by uid 1010); 9 Mar 2018 15:22:00 -0000 X-Qmail-Scanner-Diagnostics: from mta01.eastlink.ca 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(24.224.136.30):SA:0(-2.6/5.0):. Processed in 1.279983 secs); 09 Mar 2018 15:22:00 -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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=OKgJIxSB c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=68v_jzB3UDSNlOm7bdgA:9 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.101.9 Subject: Re: can zsh detect return from hibernation? To: zsh-users@zsh.org References: <059ad731-cb5e-a536-16ad-d1022dca76b6@eastlink.ca> <1520594068.2394520.1297181376.011DCE45@webmail.messagingengine.com> From: Ray Andrews Message-id: Date: Fri, 9 Mar 2018 06:53:54 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-reply-to: <1520594068.2394520.1297181376.011DCE45@webmail.messagingengine.com> Content-language: en-CA On 09/03/18 03:14 AM, Daniel Shahaf wrote: > 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. > Zsh can do some things that are quite astonishing, irrespective of where the problem arises, so I thought  I'd ask.  It might have been the case that she'd be able to detect that the lights have been out, perhaps by noticing that the time has changed since she last checked, or something like that.  As for Debian, I've seen half a dozen ideas, none of which work.  No one really knows.  I learned not too long ago that zsh can detect the activation of a terminal (via movement of the mouse) so it was not a stretch to think that she might be able to detect even return from suspend or hibernation.   No foul if she can't of course, but most cool if she could.  Meanwhile I have to type: $ hdparm -y /dev/sdb ... which isn't exactly onerous ;-)