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
#15
Photo 
Perhaps a bit late to this discussion, but I just had the same problem, but I think I found a different solution, for those who do not want to modify the lgpio.py file.
The problem in lgpio is that it is trying to open a "named pipe", not a file. It uses this pipe to communicate with other processes. For everything to work as intended, you may want to allow it to create that pipe. The issue is that the directory that it tries to make this pipe is not a location it is allowed to write the file. You want it to write the file in /tmp.
Here is what worked for me:

  1. Check if in /tmp there is a file called ".lgd-nfy0" (Do "ls -al /tmp") If the file is there, delete it, since it may have the wrong ownership or permissions.
  2. Set the environment variable "LG_WD" to "/tmp" for every bash process. Best way to do this is to create a file in /etc/profile.d/ called lgpio.sh, which sets the variable. (Do "sudo nano /etc/profile.d/lgpio.sh", then in the editor window type "export LG_WD=/tmp", then save the file with control-o, followed by return, then close the window with control-x
  3. Reboot.

This will allow the lgpio processes to work correctly. For me the i2c process now functions correctly.

Cheers!


Attached Files Image(s)
   
Reply


Messages In This Thread
RE: I2C service not running ...Work Around - by Sailing.Skog - 2025-04-22, 08:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)