CEC HDMI ETLA

I’m extremely lazy, so using a remote control to switch the TV on or off is just out of the question. The remote is just languishing in a cupboard somewhere, and the TV is always on. Which seems like a waste, since I only use it (like) a couple of days a week or something.

Most of the time it just functions as an xscreensaver-enabled display to show the sleeve of whatever album’s playing on the stereo.

But then! The other week a friend told me about something magical called “CEC”, which is apparently short for Consumer Electronics Control. It allows sending commands via HDMI (High-Definition Multimedia Interface) from your VIDEO (Visual Ideas Directed Except Oldskool) card to the TV (Television).

However, virtually no video cards support this natively. The notable exception is the graphics card in the Raspberry Pi (RPI).

Fortunately, Pulse-Eight sells CEC injectors. It a tiny thing you put in between your computer and your TV. And today it arrived:

Very small and cute.

It’s a bit more extensive with the wiring. The product page said that you can’t use it reliably if you have a very long HDMI cable to your TV, but mine is seven meters, and it seems to work fine…  Oh, perhaps I should try playing something that takes a lot of bandwidth…  Let’s see…  Captain America: Civil War Bluray…  Yup, there’s the captain.  No extra latency or anything that as far as I can tell.

There’s a USB port that you communicate over. The device shows up as a serial device in Linux, and you talk to it via a program called cec-client.

This excellent blog posts details how you use cec-client from Linux, but basically you just say

$ echo 'standby 0' | cec-client -s /dev/ttyACM0

and the TV goes to standby mode.

OR DOES IT?

Mine didn’t, and it’s a five year old Samsung TV. After googling a bit more, it turns out that you have to enable this stuff under the “Anynet+” setting in the menus. Let’s just walk through this quickly, if anybody has problems finding the menu (which is something I had):

It’s way down in the main menu. Enter the “Content View” thing…

… and then choose “Anynet+”…

… and setup..

… and the thing you’re looking for is “Auto Turn Off”. If that’s on, then you can put the TV into standby mode via CEC. Makes sense, huh? HUH?!

So now all the bits are in place, and I can use this stuff. I chose to have xscreensaver wake the screen up with a -watch script modeled after this one.

So when I hit something on the TV machine keyboard, it unblanks xscreensaver and turns the TV on. (This takes an annoyingly long time, though… like 10 seconds? What’s up with TV makers and the incredible slowness involved with anything?)

To switch the TV off, I just hooked it up into my general go out/switch off everything before going to sleep actions.

Emacs is for automation.

There you go.

WFC Croatia: Ta divna splitska noć

Hm… This sort of playful artsy fartsy film is right up my alley, but I just didn’t feel it. So I instead spent most of the time wondering why the scenes just didn’t connect (for me). Some of the actors are really good (the mother and the boy) and some are kinda meh (that scraggly-bearded one)… The cinematography is good… The editing is fun…

Perhaps it’s all the macho posturing and the way everybody goes all overwraught at the drop of a hot.

It’s like it’s almost great but instead it’s just annoying.

A Wonderful Night in Split. Arsen A. Ostojic. 2004. Croatia.

Crocktail

  • 5 parts maraschino liqueur
  • 3 parts lemon juice
  • 3 parts cherry juice

Build the cocktail in a long drink glass over ice and stir. Garnish with orange rind and a cherry.

Oops! That was supposed to be sour cherry juice, and I had sweet cherry syrup…

Oh, well.

This post is part of the World of Films and Cocktails series. Explore the map.

WFC Morocco: L’armée du salut

It’s a captivating and bewildering film. Very original from a storytelling and structural point of view. And very nicely shot.

I can’t quite make out whether the actors are meant to be this stylised and stiff or whether they’re just not, er, all that good, but it kinda works anyway. The mother’s great.

The film loses tension after a while, though, and my attention started wandering.

Salvation Army. Abdellah Taia. 2013. Morocco.

Dolomint

  • 1 part gin
  • 1 part Galliano
  • 1 part lime juice
  • soda water
  • mint leaves

Pour all ingredients over ice and stir. Top up with soda water. Crush some mint leaves and rub along the edge of the glass. Garnish with a sprig of mint.

This post is part of the World of Films and Cocktails series. Explore the map.