Code Monkey home page Code Monkey logo

couch-slouch's Introduction

What is it?

Couch Slouch allows, with the appropriate hardware, control of your Mac through the Consumer Electronics Control (CEC) protocol on the HDMI bus. More info on CEC here.

In plain English: Use your TV's remote control to control your Mac!

Couch Slouch requires Mac OS X 10.10 (Yosemite) to build and run. If you just want to run Couch Slouch on your Mac, you can download it from the Couch Slouch website.

What is the "appropriate hardware"?

Currently, the only supported device is the USB-CEC Adapter by Pulse-Eight.

License

Couch Slouch is licensed under three-clause BSD. The license document can be found here.

Building

  1. Clone Couch Slouch using git clone --recursive git://github.com/iKenndac/Couch-Slouch.git to make sure you get all the submodules too.
  2. If you got excited and cloned the repo before reading this, run git submodule update --init in the Couch Slouch directory to grab the submodules. If I get tickets about it not building and you haven't got the submodules checked out, you lose 5 internet points!
  3. Build away!

couch-slouch's People

Contributors

ikenndac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

couch-slouch's Issues

cec 3.0.1

is this project abbandoned?

would be nice to have the latest cec 3.0.1 in couch slouch

How do I engage the Mouse Grid feature?

The website says "An application's keyboard navigation support getting you down? Use Mouse Grid (right) to quickly and easily jump the cursor around the screen and click on what you need."

But how do I do that? Every button on the TV remote operates on the TV and nothing happens on the computer. I know that the CEC adapter is working because the CEC menu on the TV now shows my computer's name and I can do things with the cec-client executable on the command line, like change HDMI inputs and put the TV in standby mode (though for some reason, I can't turn on the TV).

How do I know if my TV/remote is just incompatible or if I just don't know how to activate the mouse grid function? I couldn't find any instructions on how to get the mouse grid to work. Is that something I have to script myself?

Mojave compatibility

I've just got USB-CEC Adapter by Pulse-Eight today and it doesn't work for me on Mojave (10.14).
When I change this line, it helps recognizing CEC and Mac can turn off TV, but apps do not respond to TVs RC commands:
Pulse-Eight/libcec#434

Couch Slouch Change HDMI Inputs

Can Couch Slouch change HDMI inputs?
Libcec code is echo"tx 4F:82:30:00" | cec-client -s
But how do you get applescript to execute a Libcec code?

The Couch Slouch.log file is from a (mostly) perfectly functioning app, connecting to a Panasonic TV.

The Couch Slouch.log file is from a (mostly) perfectly functioning app, connecting to a Panasonic TV.

It looks like you are trying to run two copies of Couch Slouch at once, which isn't supported โ€” the second one will fail to connect to the device and give the errors you see.

Usually when Couch Slouch launches, it doesn't present any UI. Look for the Couch Slouch icon in the top right of your menu bar โ€” it looks like a little TV. If it's present, you can't launch another one.

Originally posted by @iKenndac in #5 (comment)

Mac is "not" active TV source on startup

So I've had Clouch-Slouch installed for awhile, but I didn't have a CEC adapter until now. I got one for Christmas and just hooked it up. After connecting, I launched Couch Slouch and it said that the Mac wasn't the active TV source (though I was viewing that message on the TV). I tried rebooting the mac and got the same message. Once I switched the HDMI source to a different HDMI port and back though, the icon turned from yellow to green and said I was connected. Is this a bug?

Also... sorry for the noob questions, but:

I tried using the virtual remote, but none of the buttons seem to do anything.

The other thing is the the adapter came with no instructions. It has a USB connection. I connected that to a USB port on my computer, but I don't know if that's necessary.

I've been using the cec-lib install on my raspberry Pi to turn on/off (or rather sleep) the TV and switch HDMI inputs through HDMI 1, so I know sending instructions is possible, but it's pretty slow and I was hoping to see if I could do this via couch slouch from the Mac any faster.

I also would like to learn how to program it so that buttons on the TV remote do specific things on the computer.

So I have a few questions:

  1. Does the cec adapter's USB need to be connected to a power source or the computer itself or at all? (I'm short on USB ports and right now, I have the keyboard/mouse unplugged so I can have the adapter plugged in - I don't really use the USB keyboard anyway, but it's nice as a backup)
  2. Do I need a driver for the CEC adapter?
  3. Should the virtual remote buttons be able to do anything out of the box (like turn on/off the TV)?
  4. How do I send an instruction from the computer to the TV to switch HDMI inputs and/or turn on/off(/sleep) the TV?

These are all of course noob questions, so perhaps directing me to documentation is what I need?

no divce found

please help me

Last login: Tue Feb 26 00:27:47 on console
/Applications/Couch\ Slouch\ copy.app/Contents/MacOS/Couch\ Slouch ; exit;
MACs-Mac-mini:~ DELLAS$ /Applications/Couch\ Slouch\ copy.app/Contents/MacOS/Couch\ Slouch ; exit;
2019-02-26 01:08:55.206 Couch Slouch[782:99072] Launcher 'org.danielkennett.CouchSlouchLoginHelper' is configured to start at login
2019-02-26 01:08:58.638 Couch Slouch[782:99072] error opening serial port '/dev/cu.usbmodemv51': Couldn't lock the serial port
2019-02-26 01:08:58.638 Couch Slouch[782:99072] could not open a connection (try 1)
2019-02-26 01:09:01.464 Couch Slouch[782:99072] error opening serial port '/dev/cu.usbmodemv51': Couldn't lock the serial port
2019-02-26 01:09:01.464 Couch Slouch[782:99072] could not open a connection (try 2)
2019-02-26 01:09:03.350 Couch Slouch[782:99072] error opening serial port '/dev/cu.usbmodemv51': Couldn't lock the serial port
2019-02-26 01:09:03.350 Couch Slouch[782:99072] could not open a connection (try 3)
2019-02-26 01:09:04.605 Couch Slouch[782:99072] error opening serial port '/dev/cu.usbmodemv51': Couldn't lock the serial port
2019-02-26 01:09:04.605 Couch Slouch[782:99072] could not open a connection (try 4)
2019-02-26 01:09:05.692 Couch Slouch[782:99072] could not start CEC communications
2019-02-26 01:09:09.081 Couch Slouch[782:99072] TRANSMIT_FAILED_ACK
2019-02-26 01:09:10.167 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1521
2019-02-26 01:09:10.179 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1485
2019-02-26 01:09:10.191 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1480
2019-02-26 01:09:10.197 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1528
2019-02-26 01:09:10.210 Couch Slouch[782:99072] HIGH_ERROR line:189 time:646
2019-02-26 01:09:10.221 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1521
2019-02-26 01:09:10.233 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1479
2019-02-26 01:09:10.244 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1529
2019-02-26 01:09:10.250 Couch Slouch[782:99072] HIGH_ERROR line:189 time:1528
2019-02-26 01:09:10.262 Couch Slouch[782:99072] HIGH_ERROR line:189 time:646
2019-02-26 01:09:10.280 Couch Slouch[782:99072] RECEIVE_FAILED

Still works?

I try with Samsung Anynet and MacOS BigSur 11.2.1 (20D74) and not works
Screen Shot 2021-03-17 at 9 19 24 PM

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.