This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I2C service not running ...Work Around
#19
(2025-04-15, 11:27 AM)Jay_cd33 Wrote: SOLUTION FOR ME!!!     But it's a HACK!

DISCLAIMER:  I'm not a programmer/developer.  What I'm detailing here is a pure hack.  It may break other things on your system and will probably not survive reinstalls or software updates.  This did work for me and has not caused any other problems with my openplotter setup.  I'm only trying to help others in this community.  Your mileage may vary.

Using the following command in a terminal shows the messages from systemd on starting the openplotter-i2c-read service.

Code:
journalctl -u openplotter-i2c-read.service -f

Use ctrl c to stop the output.  The openplotter-i2c-read service will try to restart every 3 sec. Here's the output for a single restart.


Of particaular interest is this message:


The lgpio.py library is trying to access a file that doesn't exist.  This file is associated with notifications which I don't believe are used in our applications.

So my solution was to comment out this line of the lgpio.py library (I know it's a hack!). But it works.

So do this.
Code:
cd /usr/lib/python3/dist-packages
sudo cp lgpio.py lgpio.org
sudo nano lgpio.py

Show line numbers with Alt+Shift+3.
Navigate to line number 504 with Ctrl+/
Comment out line 504 with # as show in this screenshot



Save changes with Ctrl+x and y.

Then reboot system.  


If you need to change back to the original setup:
Code:
cd /usr/lib/python3/dist-packages
sudo rm lgpio.py
sudo mv lgpio.org lgpio.py

This worked for me.   Hope it helps you

Jay 
S/V Priority

Brilliant!!!!  I tried Skog's solution  (later in the thread) but no joy.  Thank you so much for teasing this out!
Reply


Messages In This Thread
RE: I2C service not running ...latest - by TwistedAnkles - 2025-06-10, 09:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)