Gemini Links 31/05/2025: ARM Server and power_supply Subsystem
-
Gemini* and Gopher
-
Politics and World Events
-
🔤SpellBinding: AELURSQ Wordo: GLINT
-
May 2025
May has ended (or will soon) already! This month flew by due to a mix of vacation, long week-ends due to multiple bank holiday in France and of course work.
As I wrote in my previous month review, May started with some nice and, dare I say it myself, well deserved vacation. We decided to rent something for a couple of weeks in the middle of nowhere. At the far end of a small road as the last house of an already very small village with a huge garden (can we still even call that a “garden” when it is that huge, I’m not sure).
-
-
Technology and Free Software
-
Replacing my ARM server, setting up a new NAS and migration
The server that I run right now to host all of my services, including this blog is around 6 years old. Using an experimental ARM development board. I bought it because at the time 10G networking is expensive and that board itself was basically a proper 10G NIC. Well, non standard hardware has non standard hardware issues.
-
Linux
-
How to trigger a command on Linux when disconnected from power
-
How to trigger a command on Linux when disconnected from power
When using a laptop connected to power most of the time, you may want it to power off once it gets disconnected, this can be really useful if you use it in a public area like a bar or a train. The idea is to protect the laptop if it gets stolen while in use and unlocked.
Here is how to proceed on Linux, using a trigger on an udev rule looking for a change in the power_supply subsystem.
For OpenBSD users, it is possible to use apmd as I explained in this article:
https://dataswamp.org/~solene/2024-02-20-rarely-known-openbsd-features.html#_apmd_daemon_hooks => Rarely known OpenBSD features: apmd daemon hooks
In the example, the script will just power off the machine, it is up to you to do whatever you want like destroy the LUKS master key or trigger the coffee machine :D
-
-
-
* Gemini (Primer) links can be opened using Gemini software. It's like the World Wide Web but a lot lighter.
