Help LCD HD44780 Through I2C Port using the latest repo # 2 again

My “how to” 2
i did exactly same installation on latest repo.
The problem is, when turn on the system the LCD screen blank
only see the two row again.

Kernel: 4.19.122-2-osmc
Kodi 18.9

the error codes:

osmc@osmc:~$ sudo /etc/init.d/LCDd restart

[....] Restarting LCDd (via systemctl): LCDd.serviceWarning: The unit file, source configuration file or drop-ins of LCDd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for LCDd.service failed because the control process exited with error code.
See "systemctl status LCDd.service" and "journalctl -xe" for details.
 failed!
osmc@osmc:~$ sudo journalctl -xe

-- The unit LCDd.service has successfully entered the 'dead' state.
Jul 16 19:31:33 osmc systemd[1]: Stopped LCD display daemon.
-- Subject: A stop job for unit LCDd.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit LCDd.service has finished.
--
-- The job identifier is 755 and the job result is done.
Jul 16 19:31:33 osmc systemd[1]: Starting LCD display daemon...
-- Subject: A start job for unit LCDd.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit LCDd.service has begun execution.
--
-- The job identifier is 755.
Jul 16 19:31:33 osmc sleep[827]: /bin/sleep: invalid time interval <E2><80>
Jul 16 19:31:33 osmc sleep[827]: /bin/sleep: invalid time interval <E2><80>
Jul 16 19:31:33 osmc sleep[827]: /bin/sleep: invalid time interval <E2><80>
Jul 16 19:31:33 osmc sleep[827]: Try '/bin/sleep --help' for more informati
Jul 16 19:31:33 osmc systemd[1]: LCDd.service: Control process exited, code
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStartPre= process belonging to unit LCDd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jul 16 19:31:33 osmc systemd[1]: LCDd.service: Failed with result 'exit-cod
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit LCDd.service has entered the 'failed' state with result 'exit-c
Jul 16 19:31:33 osmc systemd[1]: Failed to start LCD display daemon.
-- Subject: A start job for unit LCDd.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit LCDd.service has finished with a failure.
--
-- The job identifier is 755 and the job result is failed.
Jul 16 19:31:33 osmc sudo[816]: pam_unix(sudo:session): session closed for
Jul 16 19:33:42 osmc wpa_supplicant[210]: wlan0: Failed to initiate sched s
Jul 16 19:34:32 osmc sudo[859]:     osmc : TTY=pts/0 ; PWD=/home/osmc ; USE
Jul 16 19:34:32 osmc sudo[859]: pam_unix(sudo:session): session opened for
Jul 16 19:34:32 osmc systemd[1]: Reloading.
Jul 16 19:34:33 osmc systemd[1]: /lib/systemd/system/lircd_helper@.service:
Jul 16 19:34:33 osmc systemd[1]: Reloading.
Jul 16 19:34:33 osmc systemd[1]: /lib/systemd/system/lircd_helper@.service:
Jul 16 19:34:33 osmc systemd[1]: Reloading.
Jul 16 19:34:34 osmc systemd[1]: /lib/systemd/system/lircd_helper@.service:
Jul 16 19:34:34 osmc sudo[859]: pam_unix(sudo:session): session closed for
Jul 16 19:36:20 osmc sudo[917]:     osmc : TTY=pts/0 ; PWD=/home/osmc ; USE
Jul 16 19:36:20 osmc sudo[917]: pam_unix(sudo:session): session opened for
lines 1581-1637/1637 (END)

osmc@osmc:~$ systemctl status LCDd

Warning: The unit file, source configuration file or drop-ins of LCDd.service
* LCDd.service - LCD display daemon
   Loaded: loaded (/etc/systemd/system/LCDd.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since Sat 2022-07-16 19:48:09 CEST; 6mi
     Docs: man:LCDd(8)
           http://www.lcdproc.org/

Jul 16 19:48:09 osmc systemd[1]: Starting LCD display daemon...
Jul 16 19:48:09 osmc sleep[751]: /bin/sleep: invalid time interval <E2><80>
Jul 16 19:48:09 osmc sleep[751]: /bin/sleep: invalid time interval <E2><80>
Jul 16 19:48:09 osmc sleep[751]: /bin/sleep: invalid time interval <E2><80>
Jul 16 19:48:09 osmc sleep[751]: Try '/bin/sleep --help' for more information
Jul 16 19:48:09 osmc systemd[1]: LCDd.service: Control process exited, code=e
Jul 16 19:48:09 osmc systemd[1]: LCDd.service: Failed with result 'exit-code'
Jul 16 19:48:09 osmc systemd[1]: Failed to start LCD display daemon.

I would be grateful if someone could help!
@ dillthedog ar you alive ?

EDIT: If i run lcd_20x4_test.py then LCD show test lines.

[Service]
User=root
ExecStart=/usr/sbin/LCDd -s 1 -f -c /etc/LCDd.conf
#ExecStartPre=/bin/sleep 5 # disabled this line

and did those CMD’s

sudo systemctl enable LCDd.service
sudo /etc/init.d/LCDd restart

got works, but when turn off and on
same above the problem :confused:

debug log:
https://paste.osmc.tv/eyoburoraj

tried on more built, same problem

OSMC_TGT_rbp2_20191118.img
https://paste.osmc.tv/eyoburoraj

OSMC_TGT_rbp2_20201227.img
https://paste.osmc.tv/egayerutab

OSMC_TGT_rbp2_20210808.img
https://paste.osmc.tv/lovalucafe

Hi,

Could you please provide the full contents of:

/etc/systemd/system/LCDd.service

&

/etc/init.d/LCDd restart

Also from you post you haven’t stated if you issued:

sudo systemctl daemon-reload

after editing LCDd.service, I don’t think this is causing the issue; but the command should be ran after editing service and systemd config files.

Thanks Tom.

Hey @Tom_Doyle, thanks the reply :slight_smile:

The provide the full contents of:
-bash: /etc/systemd/system/LCDd.service: Permission denied
and

sudo systemctl daemon-reload = i nothing see any changes.

Also i need disable this line
#ExecStartPre=/bin/sleep 5 # i need disabled this line
othervise the “/etc/init.d/LCDd restart” cmd does’n works’
if enable get this above error messages:
[…] Restarting LCDd (via systemctl): LCDd.serviceWarning:
blah blah

so same problem happened, like previously parts
@dillthedog said “Sounds like it might be a timing (race) problem.”
it always happen when i upgrade to new repo
so something changed in newer repo

NEXT:
I did fresh install and the last steps: i got it works the lcd, but!
https://paste.osmc.tv/icotepejag

Turned off and on the system = blank lcd display again

debug log: (with blank lcd display)
https://paste.osmc.tv/apalutepur

In blank lcd display i did this command
sudo systemctl enable LCDd.service
sudo /etc/init.d/LCDd restart
and sudo reboot then LCD works again

and again turn off/on the system = it starts all over again :confused:
debug log: https://paste.osmc.tv/kuyozocaje

(my hair going to gray)

Hi,

you see the contents of the files with cat or less. Easiest way to post to forums is with paste-logs:

cat /etc/systemd/system/LCDd.service| paste-log

&

cat /etc/init.d/LCDd| paste-log

And post the links given.

Thanks Tom.

Hi :slight_smile:
cat /etc/systemd/system/LCDd.service| paste-log
https://paste.osmc.tv/forenilili
&
cat /etc/init.d/LCDd| paste-log
https://paste.osmc.tv/mofizefobi

Thanks Lajos.

Hi,

I thinks its failing after a restart, because the enable isn’t working as LCDd.service doesn’t have an `[Install]’ section, which is required to enable a service. I would try something like this:

Update /etc/systemd/system/LCDd.service to:

[Unit]
Description=LCDd
After=network.target

[Service]
User=root
ExecStart=/usr/sbin/LCDd -s 1 -f -c /etc/LCDd.conf

[Install]
WantedBy=default.target

Then issue:

sudo systemctl daemon-reload
sudo systemctl enable LCDd.service
sudo /etc/init.d/LCDd restart

Thanks Tom.

1 Like

Well done, i really appreciated !
Thank you very much your help Tom …
End of the pain :slight_smile:

Update /etc/systemd/system/LCDd.service to:

[Unit]
Description=LCDd
After=network.target

[Service]
User=root
ExecStart=/usr/sbin/LCDd -s 1 -f -c /etc/LCDd.conf

[Install]
WantedBy=default.target

Tried on more repo, works well with updated lines.

Lajos.

1 Like