Kodi Community Forum
CEC remote on Vizio P Series Quantum - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: CEC remote on Vizio P Series Quantum (/showthread.php?tid=345031)



CEC remote on Vizio P Series Quantum - rpieket - 2019-06-30

I upgraded my 2014 Vizio E series to a new Vizio P Series Quantum. I have a Mac mini running Kodi and a Pulse-Eight CEC adapter.
On my old TV, I could control basic functions with my regular TV remote. Not quite as lucky on my new TV. CEC is enabled on the TV and in the Kodi settings. The TV even lists Kodi under CEC discovered devices. So the connection exists - it just doesn't work.

Has anyone successfully set up Kodi control via CEC on a recent Vizio? What's the secret?

-Ron.


RE: CEC remote on Vizio P Series Quantum - joker4225 - 2019-07-07

(2019-06-30, 00:22)rpieket Wrote: I upgraded my 2014 Vizio E series to a new Vizio P Series Quantum. I have a Mac mini running Kodi and a Pulse-Eight CEC adapter.
On my old TV, I could control basic functions with my regular TV remote. Not quite as lucky on my new TV. CEC is enabled on the TV and in the Kodi settings. The TV even lists Kodi under CEC discovered devices. So the connection exists - it just doesn't work.

Has anyone successfully set up Kodi control via CEC on a recent Vizio? What's the secret?

-Ron.

Try changing <setting id="device_type" value="4" /> If you're running libreelec, the file you want is .kodi/userdata/peripheral_data/rpi_2708_1001.xml


RE: CEC remote on Vizio P Series Quantum - eatkinola - 2019-07-08

(2019-07-07, 07:55)joker4225 Wrote: Try changing <setting id="device_type" value="4" /> If you're running libreelec, the file you want is .kodi/userdata/peripheral_data/rpi_2708_1001.xml

This seems to work for a vizio px65. I'm not sure why it worked (tried to find the enumeration of device_type), but I can now use my vizio remote to control kodi/osmc.


RE: CEC remote on Vizio P Series Quantum - eatkinola - 2019-07-08

(2019-07-08, 04:44)eatkinola Wrote:
(2019-07-07, 07:55)joker4225 Wrote: Try changing <setting id="device_type" value="4" /> If you're running libreelec, the file you want is .kodi/userdata/peripheral_data/rpi_2708_1001.xml

This seems to work for a vizio px65. I'm not sure why it worked (tried to find the enumeration of device_type), but I can now use my vizio remote to control kodi/osmc. 
Okay, as far as I can gather CEC device_type 0 is for a "sink" (i.e., TV) and device_type 4 is for one type of "source" (makes sense kodi would be a source). In my config file, device_type was set to 0 and setting it to 4 as suggested by joker4225 fixed the problem. This link explains a bit more about HDMI-CEC device types.

https://blog.tinyelectrons.com/understanding-hdmi-cec-frame


RE: CEC remote on Vizio P Series Quantum - EdwardLarkin - 2020-04-01

(2019-07-08, 17:04)eatkinola Wrote:
(2019-07-08, 04:44)eatkinola Wrote:
(2019-07-07, 07:55)joker4225 Wrote: Try changing <setting id="device_type" value="4" /> If you're running libreelec, the file you want is .kodi/userdata/peripheral_data/rpi_2708_1001.xml

This seems to work for a vizio px65. I'm not sure why it worked (tried to find the enumeration of device_type), but I can now use my vizio remote to control kodi/osmc.  
Okay, as far as I can gather CEC device_type 0 is for a "sink" (i.e., TV) and device_type 4 is for one type of "source" (makes sense kodi would be a source). In my config file, device_type was set to 0 and setting it to 4 as suggested by joker4225 fixed the problem. This link explains a bit more about HDMI-CEC device types.

https://blog.tinyelectrons.com/understanding-hdmi-cec-frame 

I am having the same issue with a different VIZIO TV that I expect is related to the device type being of type 1 (recording) and should be of type 4 (playback.) I've tried to implement this solution by editing the config file in peripheral_data, but it has no impact on the operation. I can easily make the change in the file (it writes the change to disk without any issue,) but upon reboot, the changes re reverted back to default (recording device type.) It seems to me that the entire configuration file is getting overwritten every reboot. The main difference from what I can see in this thread is that I have a generic x86 computer (running LibreELEC) and a Pulse Eight UB-CEC Adapter, rather then a CEC Adapter built into a RPI. Thus, the file name in the peripheral_data folder is different. My config file is named ~/.kodi/userdata/peripheral_data/usb_2548_1002_CEC_Adapter.xml.

Can anyone suggest another location to make this change that is persistent across reboot? Or, is there something about the USB-CEC adapter that's causing an issue? I've also attempted to implement the change in /usr/share/kodi/system/peripherals.xml. I'm successful in making the change and keeping it persistent across reboots, but it seems to have no impact on the actual CEC Adapter operation (log files continue to show the adapter registering as a "recording" device.) And the config file in peripheral_data continues to show device type 1 (recording device.)

For reference, I started by asking this question in the LibreELEC forum where we went down the path of editing peripherals.xml. I've also created a new thread here in the Kodi forums as I thought this was significantly different, but that may have been a mistake. In any case, they're linked below for reference.

Kodi Forum: CEC Control From VIZIO TV - Change Device Type to Playback (4)
LibreELEC Forum: CEC Control From VIZIO TV - Change Device Type to Playback (4)


RE: CEC remote on Vizio P Series Quantum - EdwardLarkin - 2020-04-01

I should add that I have logs posted in the other forum threads as I know they will most likely be requested.


RE: CEC remote on Vizio P Series Quantum - EdwardLarkin - 2020-04-02

Well, it turns out the solution was simple. We got to a solution over at the LibreELEC forum today. I just wasn't stopping Kodi properly before editing the file. I'm definitely showing my novice status. For documentation purposes, the full solution was as follows (this is LibreELEC specific.)
  1. Stop Kodi via the GUI or terminal with "systemctl stop kodi".
  2. Edit the CEC Adapter config file in "/storage/.kodi/userdata/peripheral_data/ via the terminal". This configuration file name varies based on the adapter. For example, for RPI, it seems to be "rpi_2708_1001.xml", and for a Pulse Eight CEC-Adapter, it seems to be "usb_2548_1002_CEC_Adapter.xml".
  3. Change <setting id="device_type" value="1" /> line to <setting id="device_type" value="4" />. To force the adapter to register as a Playback device rather than a Recording device.
  4. Restart Kodi by restarting the machine or running "systemctl start kodi" in the terminal.

Note: You may need to restart the TV, or disable/enable CEC in the TV settings for the change to take effect.


RE: CEC remote on Vizio P Series Quantum - EdwardLarkin - 2020-04-02

I've gone ahead and put in a feature request to add a line to the CEC Adapter settings GUI to make this setting easier. Here's hoping it gets picked up. I can't imagine it would be too difficult.

Add Device Type Setting to CEC Adapter Settings GUI