CEC name changes doesn't persist through reboot

i can edit my CEC name using sudo nano /home/osmc/.kodi/userdata/peripheral_data/rpi_2708_1001.xml, and i can save (CTRL O), however whenever i reboot the CEC name reverts back to ‘Kodi’.

Does anyone know how to make a modified CEC name change persist through a reboot?

Cheers, Geoff.

Try stopping Kodi first

(sudo systemctl stop mediacenter)

hi Sam and Team

I rebuilding my OSMC, and trying to remember how I edited CEC name 6 months ago…

Now, if I enter command ‘sudo nano /home/osmc/.kodi/userdata/peripheral_data/rpi_2708_1001.xml’, all I get is a blank nano page with no existing entries to edit. If I think back to Oct 16, if memory serves (and it often doesn’t!) it was a simple edit (once I got my head around how to ls hidden files and to stop mediacenter so change persisted through reboot).

Has the location of the CEC config file been moved? If I navigate (cd) to peripheral_data dir and view ls -a, I just get . and …, not rpi_2708_1001.xml’ as I think I used to.

I seem to recall something about the kodi dir being hidden (denoted by .kodi), but somehow is the file ‘rpi_2708_1001.xml’ hidden with . or … (sorry could be a noob Linux question) ?

I’m on Kodi 17.1.

Cheers, Geoff.

Still exists on my install! Have you tried to change some CEC settings in the GUI? Maybe it is only been created after some values are customized!

osmc@osmc:~$ ls -lah .kodi/userdata/peripheral_data/
total 12K
drwxr-xr-x 2 osmc osmc 4.0K Dec 10 18:02 .
drwxr-xr-x 9 osmc osmc 4.0K Mar 22 21:15 ..
-rw-r--r-- 1 osmc osmc 1.3K Mar 22 21:16 rpi_2708_1001.xml

osmc@osmc:~$ cat .kodi/userdata/peripheral_data/rpi_2708_1001.xml 
    <setting id="activate_source" value="0" />
    <setting id="button_release_delay_ms" value="0" />
    <setting id="button_repeat_rate_ms" value="0" />
    <setting id="cec_hdmi_port" value="1" />
    <setting id="cec_standby_screensaver" value="0" />
    <setting id="cec_wake_screensaver" value="0" />
    <setting id="connected_device" value="36037" />
    <setting id="device_name" value="Kodi" />
    <setting id="device_type" value="1" />
    <setting id="double_tap_timeout_ms" value="300" />
    <setting id="enabled" value="1" />
    <setting id="pause_or_stop_playback_on_deactivate" value="231" />
    <setting id="pause_playback_on_deactivate" value="0" />
    <setting id="physical_address" value="0" />
    <setting id="power_avr_on_as" value="0" />
    <setting id="send_inactive_source" value="0" />
    <setting id="standby_devices" value="231" />
    <setting id="standby_devices_advanced" value="" />
    <setting id="standby_pc_on_tv_standby" value="36028" />
    <setting id="standby_tv_on_pc_standby" value="0" />
    <setting id="tv_vendor" value="0" />
    <setting id="use_tv_menu_language" value="0" />
    <setting id="wake_devices" value="231" />
    <setting id="wake_devices_advanced" value="" />

yeah, that looks familiar, and what I recall from 6 months ago.

Now looks like this - totally blank. mmm.

and here is my putout from /home/osmc/.kodi/userdata/peripheral_data …blank 'cept for a dot and 2 dots blue…is that a hidden dir in need to enter? …mmm.