How can I get phone notifications when my laptop is unplugged?
Asked by
CuriousTraveler42
I often travel to cafes, and when I need to step away from my laptop, I worry about leaving it unattended. I'm looking for a way to set up a system that alerts my phone if my laptop gets unplugged from the charger. Is there a specific method or a tutorial on YouTube that could guide me on how to do this?
Answers
Honestly, I'd find it hard to leave my laptop alone in a public place. It could disappear so fast that by the time you get an alert, it could already be gone!
Reply to this answer
Another simple solution could be to set up your laptop to send an email when it gets unplugged, and you can check that on your phone.
Reply to this answer
A practical tip would be to use the security slot on your laptop. You can attach it to a chair or a heavy object to deter theft.
Reply to this answer
You might want to consider using a script with Bash or Python, combined with a service like Pushbullet. You could use a program called `acpi`โrunning `acpi -b` will let you know if itโs charging or unplugged. You could set it to check every second, and when it detects unplugging, it sends a notification to your phone. Iโll think about a more efficient approach later when I have more time!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions