Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

That's one small step for a man; one giant leap for mankind. -- Neil Armstrong


devel / comp.lang.python / Receive a signal when waking or suspending?

SubjectAuthor
o Receive a signal when waking or suspending?Skip Montanaro

1
Receive a signal when waking or suspending?

<mailman.216.1650742636.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17996&group=comp.lang.python#17996

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: skip.mon...@gmail.com (Skip Montanaro)
Newsgroups: comp.lang.python
Subject: Receive a signal when waking or suspending?
Date: Sat, 23 Apr 2022 14:36:48 -0500
Lines: 11
Message-ID: <mailman.216.1650742636.20749.python-list@python.org>
References: <CANc-5UwhT5xKF0azhhQ6DS=QK6awRz-HXnEfo8fUPbwi-+bNEg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de 3QMKCN3qL1p4dTTi7lwHGwZIClPiCvgflZFbtWd/HaqQ==
Return-Path: <skip.montanaro@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=ksh8VzmB;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.094
X-Spam-Evidence: '*H*': 0.82; '*S*': 0.00; 'windows,': 0.05;
'subject:when': 0.07; 'macbook': 0.09; 'days).': 0.16; 'uses':
0.19; 'to:addr:python-list': 0.20; 'mac': 0.22; 'computer': 0.29;
'this?': 0.29; 'signal': 0.32; 'to:name:python': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; 'there': 0.33;
'received:google.com': 0.34; 'running': 0.34;
'from:addr:gmail.com': 0.35; "it's": 0.37; 'received:209.85':
0.37; 'way': 0.38; 'received:209': 0.39; 'something': 0.40;
'event': 0.40; 'clear': 0.64; 'about.': 0.64; 'care': 0.71;
'easy': 0.74; 'points': 0.84; 'catch': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:from:date:message-id:subject:to;
bh=UyTj2abVCRAwDLwE7qxyZnkugpDTFcodD7LuF4bwe/8=;
b=ksh8VzmBL7WztED0ySpD0tMVuRV/RLqSg4xIxlFFLe+aBP1gdMkhukBgVjXnAbzkwd
2m0z9F5VdZDvKumI5xF30iw1IrrtSlFbV58OsY15q92TeRtICwVW/Sbfw1mRU8GmRWk+
7ItsF4xu0tBLa58SOh/QFQ/znnCgIgTRzaKcFMeOkRLZQBYHzk1iKlyYLyaMsTeP8K5M
Xz3N3RgFvMb+k5Q2qultbwHuEfluQkAu+oevEehhTIOU1xMDfaBFBLtb0uVcv+Es6539
/jF0bFApMXCFTydBGC03w2MLNUrFJwid2NpdEbicpIr6z4M7ABR1oyTEER3MZGbMdbg+
lxKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=UyTj2abVCRAwDLwE7qxyZnkugpDTFcodD7LuF4bwe/8=;
b=z6Jue09FeLlRYOm0PinTyqRhb6fINcAeV1UeLMoUFHvtEnc7W9tfA1J8nezl1VeHL4
igfTd0t9ieep86Ic81dBRTH4Wr7s8GwWS3bdXs89RRjbXs8qLHV5hBI8S7QkImsydaDy
rZ+EBBG+z6euyFufpsO5C+TBD3hmOg1jMkeS0kcCpdAzIt9Y6BX5LdGCUBU72LMqVwdt
EuNqXiItyRNpmAHpEKXHQWnCaxf3ATlJa08XYecIg6cKHgKKyvfhpFoM4SSF9JZ0oiV5
JV5Qfmy9MzlUfQWmkZWHQuqSgA1QESNymHOuUU+xx77Q+JvDtlkOXY9xlr2a3KczOzYE
brGw==
X-Gm-Message-State: AOAM530AVyEyr1cF40m/D5/gF9sjkXgLIV6+gRbmHtSyeipCTX0GmnvR
Dq//M+g587t2hPxb9TmPaTj9QDEIdLYTplyySjzgu3dqgM2U
X-Google-Smtp-Source: ABdhPJwYViZ/ERyb5NswN9pxjPUv5z43lbGn7ljn1uOlaVG5X3ldaEgMPs0mSZRyYCpdys8AVutCjm0yKKpvKOGgFSE=
X-Received: by 2002:a81:1bc3:0:b0:2e3:aa1:f553 with SMTP id
b186-20020a811bc3000000b002e30aa1f553mr10250462ywb.491.1650742634072; Sat, 23
Apr 2022 12:37:14 -0700 (PDT)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CANc-5UwhT5xKF0azhhQ6DS=QK6awRz-HXnEfo8fUPbwi-+bNEg@mail.gmail.com>
 by: Skip Montanaro - Sat, 23 Apr 2022 19:36 UTC

It's not clear there is a straightforward way to catch a signal or get
an event notification when my computer (Dell running XUbuntu 20.04) is
about to sleep or when it's just awakened. The app uses tkinter. Is
there some more-or-less easy way to do this? Mac support would be nice
(I have my eye on a new MacBook one of these days). I suppose bonus
points for something which works on Windows, but that's not a platform
I actually care about.

Thx,

Skip

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor