OpenVFD and resuming from suspend

I normally have the VFD interface blank. The only time I see it is when powering up the “CE21” image appears and then the time briefly appears and then screen goes blank when Kodi is loaded. I find the icons and time etc to be distracting.

I recently changed my default CEC settings to “Suspend” from “Shutdown” and what I find is that when resuming from suspend, the VFD screen is populated with the time, and a lot (if not all) the icons. If I re-visit the OpenVFD addon → configure → then press OK, my settings are used, the icons disappear and the screen is blank again.

It seems that when resuming from suspend, the OpenVFD addon service is bypassed or ignored?? Is there a way for my settings to be reloaded when waking from suspend?

I have 3 devices all exhibit same behaviour. I am attaching the conf files for all 3 devices. The device name is used as a suffix at the end of vfd.conf file name purely for uploading purposes. The file is called “vfd.conf” and is in the “.config” folder on each box,

Maybe I should just rename the vfd.conf files to “vdf.confx”?? I would prefer a way to keep them and find a solution to reloading the settings when waking from suspend if possible.

TIA
vfd.conf.a95x (1.2 KB)
vfd.conf.g7max (1.5 KB)
vfd.conf (1.2 KB)

EDIT: I’ve just found the following article and I will try the things suggested first and update this topic with the results:-
Running scrpt at wake - General Support - LibreELEC Forum
I am guessing I could run a script to stop and start the openvfd addon service and this may reload my openvfd settings??

UPDATE: Based on the previous link I posted, I tried creating a script “restartopenvfd.power”
restartopenvfd.power (211 Bytes)
I made sure it had “rwx” properties and placed this file in “/storage/.config/sleep.d” and also placed a copy in “/storage/.config/sleep.conf.d” directories (just to be sure). However, when resuming from suspend this script does not appear to run. If I SSH in to the session and type “systemctl stop openvfd” and then “systemctl start openvfd” I get the desired result. (NB “systemctl restart openvfd” partially works but it ends up replacing all the icons with “CE 21” image). So I must be missing something. Anybody with any ideas??

UPDATE2: I have uploaded the kodi.log. Line 405 mentions running sleep jobs and line 411 mentions resume jobs. I don’t see any errors or reference to my script?
kodi.log (53.3 KB)

SUCCESS: Problem was with my script file. Corrected version here:-
restartopenvfd.power (135 Bytes)
The problem was that I use Notepad++ and it defaults the end of line format to be windows rather than linux. I changed that setting in Notepad++ and resaved the script file (also removed the unnecessary “sleep 5” and just tidied it up a little). All works like a dream now. Oh and the script needs to be only in the “/storage/.config/sleep.d” directory.

I think the “end of line” formatting has caught me out before - very easy to forget that!

TIA

Why dont you just remove or rename the vfd file in 'ConfigFiles" if you dont like to see it?

I thought about that, but although I don’t like the icons on the screen, I do like the “CE 21” image appearing during bootup. I may end up renaming the vfd.conf file, but I learned something new about the “sleep.d” directory and suspend/resume.

Install the addon from CE repo and check what options are available there.

It’s all working perfectly now on CE22-NO, thx.
The addon itself does not have any options related to suspend/resume.
The script restartopenvfd.power in the /storage/.config/sleep.d/ directory appears to work every time now on CE22-NO.