Updating works differently from now on. The built-in lgpowercontrol update command has been removed, so this is the last release your current installation can fetch for you. Settings and TV pairing carry over automatically when you update to it. After that, updating means pulling the repository and running the installer:
git clone https://github.com/bassidus/lgpowercontrol.git
cd lgpowercontrol
nano lgpowercontrol.conf
sudo ./install.pyRemoved
lgpowercontrol update, along with the daily update check and its notification.- The standalone
lgpowercontrol-wol,lgpowercontrol-authorizeandlgpowercontrol-updatecommands. The first two are subcommands now:lgpowercontrol wol,lgpowercontrol authorize. Scripts calling the old names need updating.
Changed
- The installation no longer runs from a Python virtual environment. It is an ordinary package directory under the system Python, so an operating system upgrade to a new Python version can no longer leave the installation unable to start. This affects rolling-release distributions as much as immutable ones.
/opt/lgpowercontrol/lgpowercontrol.confis now replaced by the repository's copy on every install, which makes reinstalling a way to repair a damaged configuration file. Edit the copy in your clone and reinstall, rather than editing the installed one.- The installer now checks the machine before installing: leftovers from older versions are removed automatically, and it stops if LG_Buddy is present, since the two cannot share a machine.
- Uninstalling no longer asks about Wake-on-LAN on your network card. Change it with
sudo lgpowercontrol wol --enableor--disable.
Fixed
- A
404 no such service or methodreply from the TV crashed the command instead of being reported as an error. lgpowercontrol ONandOFFprinted a traceback when run without sudo. They now degrade quietly, so the commands stay usable by hand.
Note for installations older than 3.0
Updating straight to this release is supported: your settings and pairing key are carried across. Once it is installed you will no longer have the old update command, so keep the clone instructions above.