Git Product home page Git Product logo

lgtvcontroller's Introduction

LG TV Serial Controller

This is a small program written in plain C for Linux to control my LG TV from the command line. It has been tested under Ubuntu 16.04 Xenial Xerus only.

Compiling

Run make in the folder. No really, that's it.

Executing

Run ./lgtv --device=<device> [OPTIONS] [COMMAND]. If you do not get any output from this command, it means no TV is connected to the selected serial port. If a compatible TV is connected, you should see a X 01 NGSSx reply, where SS is the Set ID (in Hexadecimal) of your television

Options

Short Option Long Option Argument Description
-d --device File Device Selects the file device used to communicate with the TV
-e --echo None Echoes the data sent to your TV in the terminal. This can help you quickly see the commands sent to your TV
-h --help None Shows an help screen for the appliation
-s --setid Set ID Sets the Set ID of the TV with which you want to communicate. If this is not set it defaults to 0, which is the all-call Set ID

Commands

Name Values Description
<none> <none> Send invalid command to TV (identify)
power <none> Get TV is powered on
power on, off Power TV (On/Off)
input <none> Get current input source
input tv, video1, video2, component1, component2, rgb, dvi Select input source
aspect <none> Get current aspect ratio
aspect normal, wide, horizon, zoom Change aspect ratio
screen-mute <none> Get screen mute (on/off)
screen-mute on, off Set screen mute (on/off)
volume-mute <none> Get volume mute (on/off)
volume-mute on, off Set volume mute (on/off)
mute <none>, on, off Same as volume mute
volume <none> Get TV Volume
volume 0-100 Set TV Volume to specified value

lgtvcontroller's People

Contributors

newlunarfire avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.