Page 1 of 1

CEC-client will turn TV on but not off

Posted: Tue Sep 16, 2014 5:59 pm
by jessemillerjom
I am using cec-client library on Raspbain to communicate with my Samsung TV. I install with instructions from here: http://nyxi.eu/blog/2013/04/15/raspbian-libcec/

I can get the TV to turn on just fine using

Code: Select all

echo "on 0" | cec-client -s -d 0
But I cannot get it to go into standby using

Code: Select all

echo "standby 0" | cec-client -s -d 0
Here is the output:

Code: Select all

opening a connection to the CEC adapter...
DEBUG:   [             338]	unregistering all CEC clients
DEBUG:   [             339]	Broadcast (F): osd name set to 'Broadcast'
DEBUG:   [             341]	InitHostCEC - vchiq_initialise succeeded
DEBUG:   [             342]	InitHostCEC - vchi_initialise succeeded
DEBUG:   [             342]	InitHostCEC - vchi_connect succeeded
DEBUG:   [             344]	logical address changed to Broadcast (f)
DEBUG:   [             351]	RegisterLogicalAddress - registering address e
DEBUG:   [             532]	logical address changed to Recorder 1 (1)
DEBUG:   [             533]	logical address changed to Free use (e)
DEBUG:   [             533]	Open - vc_cec initialised
NOTICE:  [             533]	connection opened
DEBUG:   [             534]	processor thread started
DEBUG:   [             535]	<< Broadcast (F) -> TV (0): POLL
DEBUG:   [             538]	initiator 'Broadcast' is not supported by the CEC adapter. using 'Free use' instead
TRAFFIC: [             539]	<< e0
DEBUG:   [             571]	>> POLL sent
DEBUG:   [             571]	TV (0): device status changed into 'present'
DEBUG:   [             572]	<< requesting vendor ID of 'TV' (0)
TRAFFIC: [             572]	<< e0:8c
TRAFFIC: [             776]	>> 0f:87:00:00:f0
DEBUG:   [             776]	>> TV (0) -> Broadcast (F): device vendor id (87)
DEBUG:   [             776]	TV (0): vendor = Samsung (0000f0)
DEBUG:   [             778]	expected response received (87: device vendor id)
DEBUG:   [             778]	replacing the command handler for device 'TV' (0)
NOTICE:  [             779]	registering new CEC client - v2.1.4
DEBUG:   [             780]	detecting logical address for type 'recording device'
DEBUG:   [             780]	trying logical address 'Recorder 1'
DEBUG:   [             781]	<< Recorder 1 (1) -> Recorder 1 (1): POLL
TRAFFIC: [             781]	<< 11
DEBUG:   [             788]	UnregisterLogicalAddress - releasing previous logical address
DEBUG:   [             791]	logical address changed to Broadcast (f)
DEBUG:   [             791]	RegisterLogicalAddress - registering address 1
DEBUG:   [             972]	logical address changed to Free use (e)
DEBUG:   [             973]	logical address changed to Recorder 1 (1)
TRAFFIC: [             973]	<< 11
DEBUG:   [             973]	>> POLL not sent
DEBUG:   [             973]	using logical address 'Recorder 1'
DEBUG:   [             973]	Recorder 1 (1): device status changed into 'handled by libCEC'
DEBUG:   [             973]	Recorder 1 (1): power status changed from 'unknown' to 'on'
DEBUG:   [             973]	Recorder 1 (1): vendor = Pulse Eight (001582)
DEBUG:   [             974]	Recorder 1 (1): CEC version 1.4
DEBUG:   [             974]	AllocateLogicalAddresses - device '0', type 'recording device', LA '1'
DEBUG:   [             974]	Recorder 1 (1): osd name set to 'CECTester'
DEBUG:   [             974]	Recorder 1 (1): menu language set to 'eng'
DEBUG:   [             975]	GetPhysicalAddress - physical address = 1000
DEBUG:   [             976]	AutodetectPhysicalAddress - autodetected physical address '1000'
DEBUG:   [             982]	Recorder 1 (1): physical address changed from ffff to 1000
DEBUG:   [             982]	<< Recorder 1 (1) -> broadcast (F): physical adddress 1000
TRAFFIC: [             982]	<< 1f:84:10:00:01
NOTICE:  [            1134]	CEC client registered: libCEC version = 2.1.4, client version = 2.1.4, firmware version = 1, logical address(es) = Recorder 1 (1) , physical address: 1.0.0.0, host: armv6l-unknown-linux-gnueabihf, features: 'P8 USB' 'P8 USB detect' 'RPi', git revision: a560d24, compiled on: Mon Sep 15 22:22:58 UTC 2014 by [email protected] on Linux 3.12.28+ (armv6l)
DEBUG:   [            1135]	<< Recorder 1 (1) -> TV (0): OSD name 'CECTester'
TRAFFIC: [            1135]	<< 10:47:43:45:43:54:65:73:74:65:72
DEBUG:   [            1436]	<< requesting power status of 'TV' (0)
TRAFFIC: [            1436]	<< 10:8f
TRAFFIC: [            1580]	>> 01:90:00
DEBUG:   [            1580]	>> TV (0) -> Recorder 1 (1): report power status (90)
DEBUG:   [            1580]	TV (0): power status changed from 'unknown' to 'on'
DEBUG:   [            1591]	expected response received (90: report power status)
NOTICE:  [            1592]	<< putting 'TV' (0) in standby mode
TRAFFIC: [            1593]	<< 10:36
DEBUG:   [            1654]	unregistering all CEC clients
NOTICE:  [            1654]	unregistering client: libCEC version = 2.1.4, client version = 2.1.4, firmware version = 1, logical address(es) = Recorder 1 (1) , physical address: 1.0.0.0, host: armv6l-unknown-linux-gnueabihf, features: 'P8 USB' 'P8 USB detect' 'RPi', git revision: a560d24, compiled on: Mon Sep 15 22:22:58 UTC 2014 by [email protected] on Linux 3.12.28+ (armv6l)
DEBUG:   [            1654]	Recorder 1 (1): power status changed from 'on' to 'unknown'
DEBUG:   [            1654]	Recorder 1 (1): vendor = Unknown (000000)
DEBUG:   [            1654]	Recorder 1 (1): CEC version unknown
DEBUG:   [            1655]	Recorder 1 (1): osd name set to 'Recorder 1'
DEBUG:   [            1655]	Recorder 1 (1): device status changed into 'unknown'
DEBUG:   [            1655]	unregistering all CEC clients
DEBUG:   [            2553]	UnregisterLogicalAddress - releasing previous logical address
DEBUG:   [            2553]	logical address changed to Broadcast (f)


Re: CEC-client will turn TV on but not off

Posted: Fri Jan 30, 2015 9:32 pm
by balkcivil
I am just starting trying to figure out how to get a RPi to control my Samsung TV over HDMI-CEC. Did you figure out your issue? Is that link/post you included the best place to start?

Re: CEC-client will turn TV on but not off

Posted: Fri Feb 06, 2015 2:16 pm
by balkcivil
Using that post I was able to get it working for Power On and Stand By. You have to be sure to have the HDMI plugged in before booting up the RPi thought or I got errors.

Re: CEC-client will turn TV on but not off

Posted: Sun Oct 23, 2016 7:25 pm
by madrian
Any update to this? I am unable to turn off my Samsung TV. :cry:

Re: CEC-client will turn TV on but not off

Posted: Sun May 14, 2017 6:35 pm
by zedd_
Let's break open this old thread - I hope.
Anyone ever been able to turn off a Samsung TV through cec-client?
Turning it on is no problem, off still not working.