Coder Social home page Coder Social logo

jboxberger / cecpctv Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 61 KB

This project allows your TV to behave like a real pc monitor with automatically turning on on an off controlled by the hdmi cec protocoll. This is especially designed for OLEDs which needs to stay powered on for the pixel refresh cycle and therefor can not be powered off with an advanced powerstrip.

License: GNU General Public License v3.0

Shell 98.45% Smarty 1.55%
tv oled cec hdmi power standby lg television

cecpctv's Introduction

cecpctv

You need a hdmi-cec capable device (e.g. raspberry pi) to get this application running.

setup raspberry pi as service

# grand acess to the gpio header
sudo usermod -a -G gpio $USER

# install cec-utils
sudo apt update && sudo apt upgrade
sudo apt install cec-utils
sudo reboot

# install cecpctv as service (log: /var/log/cecpctv)
./cecpctv service install
./cecpctv service enable
sudo reboot

# testing script (on|off|standby)
ssh pi@pimon "~/cecpctv/cecpctv standby"

setup client

# USER=pi
# SERVER=pimon
# plase change accordingly

# generate ssh keys
ssh-keygen -t ed25519 -f ~/.ssh/pimon
ssh-copy-id -i ~/.ssh/pimon pi@pimon

#test
ssh pi@pimon

# run client watcher on logon
# modify Icon and Exec path in the cecpctv-client.desktop as needed
cp ./cecpctv-client.desktop /home/jbo/.config/autostart/cecpctv-client.desktop
sudo reboot

# testing client script (on|off|standby)
/usr/bin/sleep 0.5 && /usr/bin/xset dpms force standby

cecpctv's People

Stargazers

 avatar

Watchers

 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.