What I am observing is the following.
systemctl status openvfd.service
× openvfd.service - OpenVFD Service
Loaded: loaded (/usr/lib/systemd/system/openvfd.service; disabled; preset:
Active: failed (Result: exit-code) since Thu 2023-02-16 23:40:59 IST; 1min
Duration: 366ms
Process: 3330 ExecStart=/usr/lib/coreelec/openvfd-start (code=exited, status
Process: 3388 ExecStopPost=/usr/sbin/rmmod openvfd (code=exited, status=0/SU
Main PID: 3330 (code=exited, status=1/FAILURE)
cat /sys/kernel/debug/gpio
CoreELEC:~ # cat /sys/kernel/debug/gpio
gpiochip1: GPIOs 410-495, parent: platform/pinctrl@ff634480, periphs-banks:
gpio-448 ( |amlsd ) out hi
gpio-458 ( |amlsd ) in lo
gpio-482 ( |sdio_wifi ) out hi
gpio-483 ( |sdio_wifi ) in hi
gpio-493 ( |bt_rfkill ) out hi
gpio-495 ( |bt_rfkill ) out hi
gpiochip0: GPIOs 496-511, parent: platform/pinctrl@ff800014, aobus-banks:
gpio-498 ( |avout_mute ) out hi
gpio-499 ( |key ) in hi
gpio-507 ( |? ) out lo
The vfd.conf file updated with vfd_gpio_dat=‘1,10,0x10’ and any value other than vfd_gpio_clk=‘1,11,0x10’ keep the openvfd service in running status. If these values are interchanged or modified then openvfd service fails.
Example: Below given keep the openvfd service in running status however the values are showing as in hi and in lo instead of out hi which is expected behaviour to keep the VFD on. I am unable to update the vfd.conf with the value 11. If I do that then the service is failing.
vfd_gpio_clk='1,12,0x10'
vfd_gpio_dat='1,10,0x10'
vfd_gpio_stb='0,0,0xFF'
openvfd.service - OpenVFD Service
Loaded: loaded (/usr/lib/systemd/system/openvfd.service; disabled; preset:
Active: active (running) since Thu 2023-02-16 23:44:57 IST; 3min 40s ago
Main PID: 4122 (openvfd-start)
Tasks: 4 (limit: 3724)
Memory: 1.0M
CGroup: /system.slice/openvfd.service
├─4122 /bin/sh /usr/lib/coreelec/openvfd-start
└─4137 /usr/sbin/OpenVFDService -s CE20
Feb 16 23:44:57 CoreELEC systemd[1]: Started openvfd.service.
CoreELEC:~ # cat /sys/kernel/debug/gpio
gpiochip1: GPIOs 410-495, parent: platform/pinctrl@ff634480, periphs-banks:
gpio-448 ( |amlsd ) out hi
gpio-458 ( |amlsd ) in lo
gpio-482 ( |sdio_wifi ) out hi
gpio-483 ( |sdio_wifi ) in hi
gpio-493 ( |bt_rfkill ) out hi
gpio-495 ( |bt_rfkill ) out hi
gpiochip0: GPIOs 496-511, parent: platform/pinctrl@ff800014, aobus-banks:
gpio-498 ( |avout_mute ) out hi
gpio-499 ( |key ) in hi
gpio-506 ( |openvfd ) in hi
gpio-507 ( |? ) out lo
gpio-508 ( |openvfd ) in lo