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
#20
Hi all,

I had the same issue and found a better solution (to my opinion).

Following this issue : https://github.com/joan2937/lg/issues/12 it seems that the service is not aware of the temporary folder location.

So we need to provide it in its configuration:

Edit the config file:
sudo vi /etc/systemd/system/openplotter-i2c-read.service

Add the line '  Environment="LG_WD=/tmp'

In my case, it become:
```
[Service]
Environment=OPrescue=0
Environment="LG_WD=/tmp"
EnvironmentFile=/boot/firmware/config.txt
ExecStart=openplotter-i2c-read $OPrescue
User=pi
Restart=always
RestartSec=3

[Install]
WantedBy=local-fs.target
```

Reload the update file with the command:
`sudo systemctl daemon-reload`

It works and can access all the required files.
Reply


Messages In This Thread
RE: I2C service not running ...latest - by pkernevez - 2025-06-12, 12:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)