[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
script to turn off fans for a "short time" Re: Ideas requested
- To: "Alan Davis" <alan3davis@gmail.com>, berkeleylug@googlegroups.com
- Subject: script to turn off fans for a "short time" Re: Ideas requested
- From: "Michael Paoli" <Michael.Paoli@cal.berkeley.edu>
- Date: Mon, 20 Jun 2022 18:37:37 -0700
- Arc-authentication-results: i=2; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu
- Arc-authentication-results: i=1; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:user-agent:content-disposition :mime-version:in-reply-to:references:subject:to:reply-to:from:date :message-id:sender:dkim-signature; bh=W8lsJAvv1DM8DXXg3AprL6NA6Rkex79ccXIhhuzJ5lU=; b=seVdTJc7yhmrklgZTSmJMGf3Gbt9L+6Yxd4chXM2ZvEFd1Snex3aTRu3bh9mzPk+kz bAWTv4ssOTPm3Wf06CXDPJpZTKMBzjXDWh9BpNSIh9DP/sOWWQtYw1W3E8i2A2e+SkZS bOCHTcrqU9kp6iOkcvDmUg+DZDWVsXWBQMWEAotEeJfI6dAubdFIJpF2zttxMRYsx8r7 qoVDKxNjUWXA4QgR+cgXDQkhvt2BBne6SEGfLElkrQ2LEFJb6BtDQqcFLsyPpEVJ9GCC di1AUUy3oX/u2Nc7EEbAnVqoADEAj/Vf/dxdBsGpAlaoyA9mCUIoHP2BsvD/yKnN4bEg N7xQ==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-transfer-encoding:content-disposition :mime-version:in-reply-to:references:subject:to:reply-to:from:date :message-id; bh=bsqBWi7uJ5uyAfZpTdvPKHVM4YuEtkyF6cTZNiVFdTU=; b=cSMgrpqYc53UAJxnnEt41x9h+e9e6s7h2F5TQurBcOqrWIdGIcCuZGwRQSMjCc0Yp4 SVRuTbSEAjtJymJYO+pIq0BHMHdzInZHI/LzPlG41nNcskrHkWuKKZzdFoUT+qGHDJRA yg5Kq0ZElOc5KJr9WBE8PxTXW9gT89BDw13Go5tEbFdVR9RO26m0ThT8h9HEJQCio0iP F1S28WXrQ+GKDFeHuaJ+jU9o19YqrPSuToUG5kTjxF1YxCyPc7y+kwEeVYq/eIy5UEV7 Wn9irOrzM3qzLbpoBtpZfQgTEqJSMAHSlCMEjme91QqnRQIFPvXkabGmmbYL9cgFyLxJ DuZw==
- Arc-seal: i=2; a=rsa-sha256; t=1655775459; cv=pass; d=google.com; s=arc-20160816; b=LT4kxZuxkzG320wNYDyWPMzCyZCF9ZvqHATq8mB3FLdJXBTP40BsCByGoeNa+Dr4zT Ys5jerGRo9H3vmSvDQZAksUgevcWXOhYGhvIPyrh6jHbjo4ejh9AKCeOP6aSheFPaTNn ejiZT1TqLcq+zhmjz1DRLEsqeY9AtxIu3k8oho9/fj+aZWz3mqR4N4XUbI2a0ZeWmiCD YZgynjaAXAdUm39k33LK6saQWPCA6jjfZzbU/g1huksUUWWwF8//pj77ZUuYfAr9GnYP RMlf1Pfp8rYd4iq8i0w4IBmhMxVkPOZyE/WzFW0F4JLnMGS/J1zU+2dnlnAZYpktmXj9 okRg==
- Arc-seal: i=1; a=rsa-sha256; t=1655775458; cv=none; d=google.com; s=arc-20160816; b=Kf1nOFFykcfAI6wFGg7d/t16++oZ2bzYNFFFGGjektscmRqjPV1JJTad2Ti31Id4qr GAkHSD0dkp0wnK+BhZjAOO4EyyLO3ZkEeYbYraTI4sXIDuh8XVx9PYmVbrzQ3lB2zdtB V/5xm8OysjDoaL4t/IAVIVe/wk6IF8GHprqgFGAZj2xnoEN2Bc8YNpzRSVyAlto4mA2m ViSb0IYzw7RQeVVenNTEc+zVA6uP46IcSz6QXEuzGtOJE3AHF/rb66PVo+rEElh/PxKJ eq1b0z49u0KqOtIPUeipJZ5jmaM/GXrkyOatOBjvfjbznL7GbvjCipjNtPJs9RvUrwTB P+3g==
- Delivered-to: historian@entropia.netisland.net
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:message-id:date:from:reply-to:to:subject:references :in-reply-to:mime-version:content-disposition:user-agent :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=W8lsJAvv1DM8DXXg3AprL6NA6Rkex79ccXIhhuzJ5lU=; b=ekGH+TFu7tZJu8CY7dNlzi9/EeYKMsVQSLVaDJcxU0suAtlsLAcgV6Vj4DhiHkHvFC QL+05GQU7DtHh2nPomgY41ARGHM7PXZ1AMRJXFgqd3Bftt3mrsPFJwyqQe2fcGGMonNO fvwCCcwJHpqp5B5qrE7PL+kGznONQ3czo4KqRbHr5GVFPrwwrWFjDhpH2MNKgvF7b/78 m1ix+4yo3NtPvzoxMFGN8rqI2R+BW1p4C8naQwI9sTzx5AGKmhPOwm+DVwBDJsIGQB+u Psw0tmAoE3f1V4/Exqs4jNFSRnGOd5W3ocIPJ+reRqK9ChjgbBZRIFZEGXmPtxk+LeMk 3YUw==
- In-reply-to: <CAF+xKT6D38EwH5xYvd4t8_-CJyCTU3-EgX68knbRb+8sJf=-bw@mail.gmail.com>
- List-archive: <https://groups.google.com/group/berkeleylu>
- List-help: <https://groups.google.com/support/>, <mailto:berkeleylug+help@googlegroups.com>
- List-id: <berkeleylug.googlegroups.com>
- List-post: <https://groups.google.com/group/berkeleylug/post>, <mailto:berkeleylug@googlegroups.com>
- List-subscribe: <https://groups.google.com/group/berkeleylug/subscribe>, <mailto:berkeleylug+subscribe@googlegroups.com>
- List-unsubscribe: <mailto:googlegroups-manage+61884646931+unsubscribe@googlegroups.com>, <https://groups.google.com/group/berkeleylug/subscribe>
- Mailing-list: list berkeleylug@googlegroups.com; contact berkeleylug+owners@googlegroups.com
- References: <CAF+xKT6D38EwH5xYvd4t8_-CJyCTU3-EgX68knbRb+8sJf=-bw@mail.gmail.com>
- Reply-to: berkeleylug@googlegroups.com
- Sender: berkeleylug@googlegroups.com
- User-agent: Internet Messaging Program (IMP) H3 (4.2.1-RC1)
From: "Alan Davis" <alan3davis@gmail.com>
Subject: Ideas requested
Date: Thu, 16 Jun 2022 17:17:53 -0700
First idea:
http://www.catb.org/~esr/faqs/smart-questions.html#bespecific
Sorry if it's an old repeat, but it's still highly relevant.
Subject of "Ideas wanted" in a sea of email, reads more like spam than not.
Whereas "script to turn off fans for a short time" - not so likely to
be presumed/guessed to be spam - at least in context of
Linux User Group or the like.
Hello, BLUG folk:
BerkeleyLug.com, not BLUG - there's tons 'o BLUG out there, none of which
is BerkeleyLUG.
I know I have not been around much. Not because I don't enjoy both reading
the chatter or the meetings, which I especially have enjoyed in the past.
I hope to attend in person at some point, perhaps in July/August when my
family will be on vacation. Jitsi has evaded me, the few times I've tried;
and also, the hours and my situation are not helpful.
Ok, here's my question. I have posted it to the Manjaro GNU/Linux
Reddit... and immediately after doing so, it dawned on me that if anyone
can answer this, it MIGHT be some of the tech savvy BLUG folk. Here's my
post.
Alan Davis
================ %< ==================
I need a script to turn off fans for a "short time"
My microscope camera is sensitive to the vibrations from the nearby CPU.
Vibrations---even road vibrations from the Freeway nearby---can cause the
image to be blurry. I can see them using a screen magnifier set to 7 to
20X, as dancing of the edges of the image.
I would like to be able to shut down the fans for a short time. I trigger
the camera through the application Entangle, using a foot pedal. I know
there's a way to integrate the needed functionality through probably a
script, but I don't yet understand the workings of the various monitoring
and control bits.
Is this possible? A couple of ideas:
-
Turn off when the camera is triggered (no good: too much lag)
-
Turn off the fans with the first stomp of the foot pedal, then take a
snapshot with the succeeding few foot stomps, up to a maximum safe length
of time.
This seems like a convoluted process, but it should be possible. Can anyone
suggest a way to get started?
sh(1), sleep(1)
E.g., if we have fon for our fan on command and foof for our fan off command,
or just substitute accordingly:
foff; sleep _some_number_of_seconds_; fon
Can background the whole thing / run it asynchronously if desired, e.g.:
{ foff; sleep _some_number_of_seconds_; fon; } &
or in a script file, just launch it in background so you don't have to wait
for it to complete.
--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/berkeleylug/20220620183737.90019fdnimr81qlc%40webmail.rawbw.com.