All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

How to Trigger a Command on Linux When Disconnected from Power

By

Mr_Minderbinder

10mo ago· 3 min readen

Summary

The article explains how to set up a command on Linux to trigger an action, such as powering off, when a laptop is disconnected from its power supply. This is useful for security purposes, especially in public spaces where theft might occur. The guide provides step-by-step instructions for implementing this feature on Linux systems.

Key quotes

· 3 pulled
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.
Snippet from the RSS feed
In this blog post, you will learn how to trigger a command when a laptop is disconnected from power supply

You might also wanna read