All Projects → JPersson77 → LGTVCompanion

JPersson77 / LGTVCompanion

Licence: MIT license
Power On and Off WebOS LG TVs together with your PC

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to LGTVCompanion

Windows11 Hardening
My Windows 11 x64 security hardening guide
Stars: ✭ 267 (-36.43%)
Mutual labels:  windows10, windows11
BetterWindows
Some windows tips to improve your UX experience when using windows
Stars: ✭ 27 (-93.57%)
Mutual labels:  windows10, windows11
lgtv2mqtt
Interface between LG WebOS Smart TVs and MQTT 📺
Stars: ✭ 90 (-78.57%)
Mutual labels:  lg, webos
Amazon-Alexa-As-LG-TV-Remote
Control your LG WebOS 3.0+ TV with Amazon Alexa
Stars: ✭ 22 (-94.76%)
Mutual labels:  lg, webos
MSEdgeRedirect
A Tool to Redirect News, Search, Widgets, Weather and More to Your Default Browser
Stars: ✭ 1,381 (+228.81%)
Mutual labels:  windows10, windows11
MediaCreationTool.bat
Universal MCT wrapper script for all Windows 10/11 versions from 1507 to 21H2!
Stars: ✭ 3,836 (+813.33%)
Mutual labels:  windows10, windows11
wintenApps
Windows App Essentials NVDA add-on
Stars: ✭ 20 (-95.24%)
Mutual labels:  windows10, windows11
EVTX-ETW-Resources
Event Tracing For Windows (ETW) Resources
Stars: ✭ 142 (-66.19%)
Mutual labels:  windows10, windows11
EventTranscript.db-Research
A repo for centralizing ongoing research on the new Windows 10/11 DFIR artifact, EventTranscript.db.
Stars: ✭ 33 (-92.14%)
Mutual labels:  windows10, windows11
homey-webos-plus
Improved LG WebOS integration for Homey
Stars: ✭ 17 (-95.95%)
Mutual labels:  lg, webos
springboot-microservice-with-spring-cloud-netflix
msa backend service example with springboot REST API
Stars: ✭ 36 (-91.43%)
Mutual labels:  service
tower-lsp
Language Server Protocol implementation written in Rust
Stars: ✭ 455 (+8.33%)
Mutual labels:  service
super-mario-message
Display custom messages in a Super Mario Bros environment
Stars: ✭ 18 (-95.71%)
Mutual labels:  service
webApi-angularjs
⚓ Definitely simplifies your work with server side & organizes webApi layout to further managing.
Stars: ✭ 15 (-96.43%)
Mutual labels:  service
Manhunt-fix-Windows-10
Manhunt fix for Windows 10 Updated for Windows 10 latest versions
Stars: ✭ 24 (-94.29%)
Mutual labels:  windows10
windows10
MS Windows 10 cheat-sheet
Stars: ✭ 13 (-96.9%)
Mutual labels:  windows10
oculante
A minimalistic crossplatform image viewer written in rust
Stars: ✭ 169 (-59.76%)
Mutual labels:  windows10
gps-permission-checks-livedata
Sample project to demonstrate how GPS and Runtime Location Permission checks can be done on UI and Background Service using LiveData
Stars: ✭ 37 (-91.19%)
Mutual labels:  service
ember-contextual-services
Services in Ember are scoped to the app as a whole and are singletons. Sometimes you don't want that. :) This addon provides ephemeral route-based services.
Stars: ✭ 20 (-95.24%)
Mutual labels:  service
UACWhitelistTool
📃 UAC 白名单小工具!
Stars: ✭ 252 (-40%)
Mutual labels:  windows10

LGTV Companion

Download instructions

The installer for the latest version can be downloaded from the Releases page.

Overview

This application (UI and service) controls LG WebOS TVs and displays.

This application aim to be a set and forget application to:

  • provide automatic management for your WebOS display, to shut off and turn on in reponse to to the PC shutting down, rebooting, entering low power modes and when user is afk (idle) as well as in response to changes in the windows monitor topology, in a multi-monitor environment.
  • provide the user with a command line tool to turn displays on or off.

Background

With the rise in popularity of using OLED TVs as PC monitors, it is apparent that standard functionality of PC-monitors is missing. Particularly turning the display on or off in response to power events in windows. With OLED monitors this is particularly important to prevent "burn-in", or more accurately pixel-wear.

What other people say

Installation and usage

  1. Important prerequisites:
    • Power ON all TVs and ensure they are connected to your local area network via Wi-Fi or cable.
    • Ensure that the TV can be woken via the network. For the CX line of displays this is accomplished by navigating to Settings (cog button on remote)->All Settings->Connection->Mobile Connection Management->TV On with Mobile, and then enable 'Turn On via Wi-Fi'. For C1 and C2 it's All Settings->General->Devices->External Devices->TV On With Mobile->Turn on via Wi-Fi.
    • Open the administrative interface of your router, and set a static DHCP lease for your WebOS devices, i.e. to ensure that the displays always have the same IP-address on your LAN.
  2. Download the latest version of the setup package from the releases page ( Click here ) and install it. This will install and start the service (LGTVsvc.exe), install the user interface (LGTV Companion.exe) as well as the desktop user mode daemon (LGTVdaemon.exe).
  3. Open the user interface from the Windows start menu, LGTV Companion.

LGTV1

  1. Click the 'Scan' button to let the application try and automatically find network attached WebOs devices (TVs) (This button is called 'Configure' in the screenshot above)
  2. Optionally, click the drop down button to manually add, remove, configure the parameters of respective devices, this includes the network IP-address, the physical address, i.e. the MAC(s). This information can easily be found in the network settings of the TV. Also, the default wake-on-lan network options should work for most configurations, but if your TV has difficulties powering on try the other options. Click the 'What's this?' link in the app to read more.

LGTV2

  1. In the main application window, ensure the 'Manage this device' checkbox is checked so the application will automatically respond to power events (shutdown, restart, suspend, resume, idle) for the respective devices.
  2. Optionally, tweak additional settings, by clicking on the hamburger icon. Note that enabling logging can be very useful if you are facing any issues. Also, consider enabling the option to "automatically blank displays..."as this option works seprately from all other windows power options and can be really useful to provide maximum protection against screen burn-in and also some power savings.

LGTV3

if your OS is not localised in english, you must in the 'additional settings' dialog click the correct checkboxes to indicate what words refer to the system restarting/rebooting (as opposed to shutting down). This is needed because there is no better (at least known to me) way for a service to know if the system is being restarted or shut down than looking at a certain event in the event log. But the event log is localised, and this approach saves me from having to build a language table for all languages in the world. Note that if you don't do this on a non-english OS the application will not be able to determine if the system is being restarted or shut down. The difference is of course that the displays should not power off when the system is restarted.

  1. Click Apply, to save the configuration file and automatically restart the service.

  2. At this point your respective WebOS TV will display a pairing dialog which you need to accept.

All systems are now GO! 👍

  1. Please go ahead and use the drop down menu again and select 'Test', to ensure that the displays properly react to power on/off commands.

Limitations

  • LG OLED displays can sometimes not be turned on via network when an automatic pixel refresh is being performed. You can hear an internal relay click after the pixel refresh, when the display is actually powered down, at which point it can be turned on again at any time by this application.
  • The WebOS displays can only be turned on/off when both the PC and the display is connected to a network.
  • The TV cannnot be on a different subnet/VLAN from your PC. This is because the TV is powerd on by means of broadcasting a magic packet, aka Wake-on-lan, which is restricted to layer 2, i.e. same subnet only. There are ways to bypass this limitation but it is outside the scope of this application, even though you can probably make it work. Let me know if you need help to make it work for you.

Troubleshooting

If your display has trouble powering on, these are the things to check first:

  • When connecting the TV via Wi-Fi it seems some users must enable "Quickstart+" (up to 2021 models) or "Always ready" (2022 and forward models) and disable "HDD Eco mode" to avoid the NIC becoming inactive. (physical network cable does not seem to need this)
  • Try reconfiguring the device and use one of the other wake-on-lan network options, primarily use option two, send to IP-address.
  • Ensure the network is not dropping WOL-broadcasts.
  • The MAC-address configuration for the device in the application is erroneous.
  • In the case of Wi-Fi, if the connection between the TV and the Wi-Fi access point is lost for any reason (e.g. router reboot, power outage, firmware update, etc.) while the TV is off, the TV will not automatically reconnect and therefore won't react to attempts to turn it on via Wi-Fi. You will need to turn the TV on manually at least once so that it can reconnect to your Wi-Fi network.
  • In case of issues with devices not turning on in response to changes in the windows monitor topology configuration ensure that "Quickstart+" (up to 2021 models) or "Always ready" (2022 and forward models) is enabled.

If your display has trouble powering off it is most likely because:

  • The IP configuration might be erroneous. Please check the configuration and make sure the TV has a static DHCP lease in your routers admin pages.
  • The application has not yet received a pairing key. Try removing the device in the UI, click apply and then re-add the device to force re-pairing.

HOT tip! Enable the built in logger and check the output, it can be very useful for understanding where problems are.

System requirements

  • The application must be run in a modern windows environment, and any potato running Windows 10 or 11 is fine.
  • A Local Area Network (LAN)

Commandline arguments

The 'LGTV companion.exe" also accepts command line arguments for integration in scripts or similar.

LGTV Companion.exe -[poweron|poweroff|screenon|screenoff|autoenable|autodisable|sethdmi1|sethdmi2|sethdmi3|sethdmi4] [Device1|Name] [Device2|Name] ... [DeviceX|Name]

  • -poweron - power on a device.
  • -poweroff - power off a device
  • -screenon - power on and enable the emitters, i e disable internal power saving mode and do not blank screen.
  • -screenoff - disable emitters, i.e. enable internal power saving mode whereby the display is blanked.
  • -sethdmi1 - set HDMI input 1
  • -sethdmi2 - set HDMI input 2
  • -sethdmi3 - set HDMI input 3
  • -sethdmi4 - set HDMI input 4
  • -autoenable - temporarily enable the automatic management of a device, i.e. to respond to power events. This is effective until next restart of the service. (I personally use this for my home automation system).
  • -autodisable - temporarily disable the automatic management of a device, i.e. to respond to power events. This is effective until next restart of the service.
  • [DeviceX|Name] - device identifier. Either use Device1, Device2, ..., DeviceX or the friendly device name as determined in the User Interface, for example OLED48CX.

Example usage: LGTV Companion.exe -poweron Device1 Device2 "LG OLED48CX" -autodisable Device2

This command will power on device 1, device 2 and the device named LG OLED48CX, and additionally device2 is thereafter set to temporarily not respond to automatic power events (on/off). Note the usage of "quotes" for the device name.

License

Copyright © 2021-2022 Jörgen Persson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Discussions

Please use the Github issue tracker for potential bug reports or feature requests

Thanks to

Copyright

Copyright © 2021-2022 Jörgen Persson

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].