The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 512     Votes:  3     ✅ Solution
Tag : power-management  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1183902
Title: software to switch from AC to battery
ID: /2019/10/26/software-to-switch-from-AC-to-battery
Created: October 26, 2019    Edited:  October 26, 2019
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


This is suitable for people that like to let their laptop batteries discharge automatically and then recharge at a certain percentage.

Hardware component (20 bucks)

First you need an TP-Link HS100 compatible smart plug like this one:

tp-link hs-100 smart plug.png


Software component (Free)

Then you need some free Linux software like tp-link Wi-Fi Smart Plug HS100:

Switch plug on:

hs100.sh on

Switch plug off:

hs100.sh on

Check if plug is on or off:

hs100.sh check

Print plug system status:

hs100.sh status

Blog about developing hs100.sh including full bash script

⇧ Can't boot Acer laptop into Ubuntu 19.10 after dual boot install Disable Dropbox integration with GNOME Files (without disabling Dropbox sync)?  ⇩